对话框的自动居中问题

CDialog::Create(lpszTemplateName, pParentWnd)
调用
CHJDlg::OnInitDialog()

在Create的时候会调用CDialog::CheckAutoCenter()检查自动居中,
所以要想把对话框移动到你想要的地方(用MoveWindow()),需要
在Create之后调用。

posted on 2005-04-30 11:11  sPhinX  阅读(476)  评论(0编辑  收藏  举报

导航