創建窗口函數中使用UI_WNDSTYLE_DIALOG
CMainWnd *win = new CMainWnd(_T("main_win.xml")); win->Create(NULL, _T("DUIWnd"), UI_WNDSTYLE_DIALOG, WS_EX_WINDOWEDGE);