15,979
社区成员
发帖
与我相关
我的任务
分享
void CResizablePropertySheet::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
{
CRect rc = m_rcClient;
// Adjust it according to the window style
AdjustWindowRect(rc, GetStyle(), FALSE);
// Make sure it does not get smaller than the initial size
lpMMI->ptMinTrackSize.x = rc.Width()/2;
lpMMI->ptMinTrackSize.y = rc.Height()/2;
CPropertySheet::OnGetMinMaxInfo(lpMMI);
}
lpMMI->ptMinTrackSize.x = rc.Width()/2;
lpMMI->ptMinTrackSize.y = rc.Height()/2;
这样 初始 尺寸 可以 拖小