窗口居中显示:
CenterWindow();
CenterWindow( GetParent() );
CenterWindow( GetDesktopWindow() ); // center to the hpc screen.
使用示例:
AfxGetMainWnd()->CenterWindow();//将主框架窗口居中.
AfxGetMainWnd()->CenterWindow(CWnd::GetDesktopWindow()); //将窗口置于屏幕中央
界面处理相关API&MFC函数(随时更新)
最新推荐文章于 2020-08-10 02:01:15 发布