控件随窗口大小的改变而改变
void CMyView::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);
CRect rc;
rc.left = 0;
rc.top = 0;
rc.right = cx;
rc.bottom = cy;
m_btn.MoveWindow(rc,FALSE);
}
控件随窗口大小的改变而改变
void CMyView::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);
CRect rc;
rc.left = 0;
rc.top = 0;
rc.right = cx;
rc.bottom = cy;
m_btn.MoveWindow(rc,FALSE);
}