我用的是新建对话框资源的方法问题是我设置好了,但是启动画面都是在屏幕的左侧显示,调用什么函数能让我的启动画面在屏幕中央显示????
解决方案 »
- 关于BMP图像保存的问题MFC
- msvcp80.dll在winsxs下已经存在,为何仍然提示找不到。
- CSocket类使用:怎样改变发送包的协议类型?如走sctp协议,请大虾们赐教!
- 怎样将系统读文件的操作转向读内存?
- 请问要让用户能动态改变一窗口中CTreeCtrl和CListCtrl的大小应该如何做?
- 编译都过不了--小师妹的简单问题
- up有分,十万火急!!!!ADO数据库编程备份SQL数据库问题!!!
- 急!!! 如何定期检测两台pc间网络是否连通良好?
- 如果改变cpu的占用率?急~~~~
- 有谁能畅谈一下C++中关于rtti(运行时类型识别)的用处?
- vs2010中怎么使用libuidk?
- 如何实现当鼠标划过选择皮肤菜单项时,自动预览皮肤?
void CenterWindow( CWnd* pAlternateOwner = NULL );ParameterspAlternateOwnerPointer to an alternate window relative to which it will be centered (other than the parent window).ResCenters a window relative to its parent. Usually called from CDialog::OnInitDialog to center dialog boxes relative to the main window of the application. By default, the function centers child windows relative to their parent window, and pop-up windows relative to their owner. If the pop-up window is not owned, it is centered relative to the screen. To center a window relative to a specific window which is not the owner or parent, the pAlternateOwner parameter may be set to a valid window. To force centering relative to the screen, pass the value returned by CWnd::GetDesktopWindow as pAlternateOwner.ExampleBOOL CAboutDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CenterWindow();
return TRUE;
}