![]() |
使对话框在另一个窗口中居中
1.在对话框类的OnInitDialog类中调用CenterWindow()函数
CDialog::OnInitDialog(); CWind *PActiveFrame = EkGetActiveFrame(); ASSERT_VALID(pActiveFrame); CenterWindow(pActiveFrame); return TRUE; // 对话框位于活动帧窗口的中央 2. 居于整个桌面窗口的中央 CenterWindow(CWnd::GetDesktopWindow()); |
所有的时间均为北京时间。 现在的时间是 02:13 AM. |