|
Style中Style为Child
Border为None
More Styles中选中Control
Extended Styles中选中Control parent
然后在父对话框中添加子对话框类成员CInsideDlg,在OnInitDialog中加入
CInsideDlg m_child;
m_child.Create(IDD_DIALOG1,this);
//m_child.ShowWindow(0);
m_child.MoveWindow(10,20,20,10,TRUE);
//m_child.ModifyStyle(0, WS_TABSTOP, 0);
m_child.ShowWindow(SW_SHOW);
编译没有问题,但执行后出来的主对话框没有显示子对话框,这什么原因啊? |
|