GetWindowRect
(不同于getClientRect,这个肯定获得top==0,left==0)
函数功能:该函数返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。
BOOL CNeicunDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CRect rectStatic;
m_static_testRect.GetWindowRect(&rectStatic);
ScreenToClient(&rectStatic);
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
oninitdlg()里面确实啥都做好了。就是没显示了。