Click to See Complete Forum and Search --> : CToolbar close button


MaxTrude
December 15th, 1999, 09:28 PM
I need to display a CToolbar without a Close box. Windows sytles allow you to remove the minimize, maximize box, but the close box is controlled by the windows class attributes. SetWindowLong does not seem to help either. I tried disabling the system Menu in precreate windows, but the create struct indicated the system menu is already disabled in a CToolbar.

Help appreciated.

AndyK
December 15th, 1999, 09:40 PM
You can also use GetSystemMenu to get form's system menu handle and DeleteMenu to disable the button