-
September 22nd, 2011, 12:43 AM
#1
Resizing an MFC DialogBox
I want to DISABLE resizing of an MFC DialogBox so what kind of change do I have to make while Overriding WM_SIZE or WM_POSITIONCHANGED handlers?
-
September 22nd, 2011, 12:57 AM
#2
Re: Resizing an MFC DialogBox
Easier would be overriding (handling) the WM_POSITIONCHANGING message adding the SWP_NOSIZE flag. Similar to http://www.codeguru.com/forum/showth...HANGing&page=3
Victor Nijegorodov
-
September 22nd, 2011, 03:09 AM
#3
Re: Resizing an MFC DialogBox
...or simply get rid of WS_THICKFRAME style.
Code:
ModifyStyle(WS_THICKFRAME, 0, SWP_FRAMECHANGED);
-
September 22nd, 2011, 07:12 AM
#4
Re: Resizing an MFC DialogBox
Or even easier, just change the border style in the resource editor.
-
September 22nd, 2011, 10:01 PM
#5
Re: Resizing an MFC DialogBox
Chang the dialog border style from resizing to dialog frame or none.
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
|