public VistaTreeView() { //make it a Vista style tree view Win32Api.SetWindowTheme(this.Handle, "explorer", null); this.HotTracking = true; //important this.ShowLines = false; Win32Api.SendMessage(this.Handle, Win32Api.TVM_SETEXTENDEDSTYLE, 0, Win32Api.TVS_EX_FADEINOUTEXPANDOS); }
private void SetCueText() { //tell windows to show the cue Win32Api.SendMessage(this.Handle, Win32Api.EM_SETCUEBANNER, IntPtr.Zero, strCue); }