包含静态和动态对话框分割的代码如下:
#define DYN
BOOL CDlgSplitDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Because the CFrameWnd needs a window class
// Create the frame window with "this" as the parent
CRect rc;
GetDlgItem(IDC_CUTSOM_WINDOW)->GetWindowRect(&rc);
ScreenToClient(&rc);
int Wid=rc.Width()/2;
int Hei=rc.Height()/2;
//
m_pMyFrame = new CFrameWnd;
m_pMyFrame->Create("#32770"/* dialog */,"", WS_CHILD, rc, this);
// m_pMyFrame->MoveWindow(&rc);
// Initializ