限定窗口最大化和最小化的大小

WM_GETMINMAXINFO
void CMainFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
{
lpMMI->ptMinTrackSize.x = 300;
lpMMI->ptMinTrackSize.y = 300;
lpMMI->ptMaxTrackSize.x = 800;
lpMMI->ptMaxTrackSize.y = 600;
CFrameWnd::OnGetMinMaxInfo(lpMMI);
}

你可能感兴趣的:(限定窗口最大化和最小化的大小)