CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    Boston, Ma.
    Posts
    2

    CToolbar close button

    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.


  2. #2
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: CToolbar close button

    You can also use GetSystemMenu to get form's system menu handle and DeleteMenu to disable the button


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured