1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| BOOL CDlgNavigRegistre::OnInitDialog()
{
CDialogEx::OnInitDialog();
m_pFrameWnd = new CFrameWnd();
if (!m_pFrameWnd->CreateEx ( 0, pNomClasse, (const char*)m_TitreVide,
WS_OVERLAPPED | WS_EX_CLIENTEDGE | WS_SYSMENU
| WS_MAXIMIZEBOX | WS_MINIMIZEBOX,
Rect, AfxGetApp()->m_pMainWnd, 0) )
{
m_pFrameWnd->DestroyWindow();
}
else
{
m_pFrameWnd->ShowWindow(SW_SHOW);
m_pFrameWnd->UpdateWindow();
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
} |