Disable Resize Window :: MFC

kuphryn

Senior member
Jan 7, 2001
400
0
0
Hi.

I have been wondering about the possibility of *disabling* resize feature in a window. For example, when a window is in restore setting, the user can change the size of the window via dragging one of its four size or four corners. I there a way to disable that feature completely? I am basically describing a dialog window without having to derive the class from CDialog.

In the program I am working on, I have disabled the maximize feature. The window stays restored throughout. However, the user can resize it. I would like to disable that feature too. The bottom line is the window looks better if it remains in its original settings (size).

Thanks,
Kuphryn
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Override the WM_SIZE or WM_POSITIONCHANGED handlers