| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 
 |  
int WINAPI WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR     lpCmdLine,
                      int       nCmdShow)
{
 
// Création de la boite de dialogue
static CAlertDlg Dlg;
Dlg.Create(CAlertDlg::IDD);
if(Dlg.m_hWnd)
	        MessageBox(NULL, _T("Dialog crée"),_T(""),MB_ICONWARNING);
	else
		MessageBox(NULL,  _T("Dialog non crée"),_T(""),MB_ICONWARNING);
 
while (!terminate)
{
        if(condition)
        {
             	Dlg.ShowWindow(SW_SHOW);
Dlg.SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
        }
 
}
 
} | 
Partager