Help needed in setting the dimensions of the window, when clicked on restore?
-
Hi, I am working with SDI application in MFC. When I click on the restore button on the system menu of the MainFrame window, the window dimensions should be set to 2/3 the width and height of the screen resolutions. Can anyone please suggest, where and how to handle this event? Thanks Madhavi.
-
Hi, I am working with SDI application in MFC. When I click on the restore button on the system menu of the MainFrame window, the window dimensions should be set to 2/3 the width and height of the screen resolutions. Can anyone please suggest, where and how to handle this event? Thanks Madhavi.
void CMainFrameWnd::OnSize(UINT nType, int cx, int cy) { if(SIZE_RESTORED == nType) { // Use GetSystemMetrics function to obatin Display related information // apply your logic here for resizing } } Regards Abhi