在OnShowWindow函数中完成窗口居中。
共三种方法:
(1) Center Window( ); //Relative to it's parent
(2) Center Window(CWnd:: GetDesktopWindow( )); // Relative to Screen
(3) AfxGetMainWnd( ) -> Center Window( ); //Relative to Application's MainWindow
在OnShowWindow函数中完成窗口居中。
共三种方法:
(1) Center Window( ); //Relative to it's parent
(2) Center Window(CWnd:: GetDesktopWindow( )); // Relative to Screen
(3) AfxGetMainWnd( ) -> Center Window( ); //Relative to Application's MainWindow