CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    532

    Removing Maximize box

    How does one remove the maximize box from the application window in an App wizard generated SDI application. Modifying the Style in the OnCreate method disables it but the box is still there and the cursor still changes as if resizing were possible.



  2. #2
    Join Date
    May 1999
    Posts
    82

    Re: Removing Maximize box

    Add the following two statements to the PreCreateWindow function of your CMainFrame class

    cs.style &= ~WS_MAXIMIZEBOX;
    cs.style &= ~WS_THICKFRAME;




    This will make so the window can not be resized or maximized.


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