Enable/Disable Frame Buttons :: MFC
Hi.
In both windows and dialog boxes, there are buttons on the upper right corner of the frame to minimize, maximize, and/or close window. Is it possible to enable or disable one or more of those buttons? For example, I would like to disable the maximize option during a certain time and then reenable it.
Thanks,
Kuphryn
Try GetSystemMenu to get system menu for a window (the one showing up if you hit the icon on caption bar), and then disable SC_MAXIMIZE item. Alternatively, you can handle WM_SYSCOMMAND and do nothing on SC_MAXIMIZE.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement