[求助]窗口居中问题
请问如何让窗口居中显示?
我在CMainFrame的PreCreateWindow()中加入
AfxGetMainWnd()->CenterWindow();
为什么在调试运行中说AfxGetMainWnd()没找到?
请问如何让窗口居中显示?
我在CMainFrame的PreCreateWindow()中加入
AfxGetMainWnd()->CenterWindow();
为什么在调试运行中说AfxGetMainWnd()没找到?
但是我放到OnCreate()甚至构造函数中都不行吖....