|
-
May 7th, 2008, 09:54 AM
#1
Overriding the maximize button for the main window in a MDI application
I am looking for a way to override the maximize button for the main window in an MDI application. I have found several articles telling me how to override the maximize button for the child window, but not the main window. What I need is when the User clicks on the maximize button the application maximizes itself to two monitors instead of just one monitor. I hope that somebody can help me.
-
May 7th, 2008, 11:01 AM
#2
Re: Overriding the maximize button for the main window in a MDI application
Victor Nijegorodov
-
May 7th, 2008, 02:33 PM
#3
Re: Overriding the maximize button for the main window in a MDI application
 Originally Posted by berger_the_great
I am looking for a way to override the maximize button for the main window in an MDI application. I have found several articles telling me how to override the maximize button for the child window, but not the main window. What I need is when the User clicks on the maximize button the application maximizes itself to two monitors instead of just one monitor. I hope that somebody can help me.
Are you talking about the frame window (CMainFrame)? Handle the WM_SYSCOMMAND message (OnSysCommand() in the main frame window) and intercept the SC_MAXIMIZE command.
-
May 9th, 2008, 10:19 AM
#4
Re: Overriding the maximize button for the main window in a MDI application
 Originally Posted by hoxsiew
Are you talking about the frame window (CMainFrame)? Handle the WM_SYSCOMMAND message (OnSysCommand() in the main frame window) and intercept the SC_MAXIMIZE command.
Thank you that was extremely helpful
-
May 9th, 2008, 10:34 AM
#5
Re: Overriding the maximize button for the main window in a MDI application
Perhaps handling the WM_GETMINMAXINFO message would help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|