void CMyDlg::OnSize(UINT nType, int cx, int cy)
{
CDialogEx::OnSize(nType, cx, cy);
CRect rt;
GetClientRect(&rt);
if (m_Grid.GetSafeHwnd() != NULL)
{
m_Grid.MoveWindow(rt.top,
rt.left,
rt.Width(),
100,
TRUE);
}
}
void CMyDlg::OnSize(UINT nType, int cx, int cy)
{
CDialogEx::OnSize(nType, cx, cy);
CRect rt;
GetClientRect(&rt);
if (m_Grid.GetSafeHwnd() != NULL)
{
m_Grid.MoveWindow(rt.top,
rt.left,
rt.Width(),
100,
TRUE);
}
}