Oki!
Thank you!
I want to display a dialog box
I'm proceding like that... but it's not the good method
quote:
LRESULT CALLBACK MyDlg(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
}
break;
}
return FALSE;
}
....
....
....
...
if(stricmp(sCommand, "/xdialog") == 0)
{
HWND hWnd=GetActiveWindow();
HINSTANCE hInst = (HINSTANCE)GetModuleHandle(NULL);
DialogBox(hInst , (LPCTSTR)IDD_DIALOG1, hWnd, (DLGPROC)MyDlg);
return TRUE;
}
Could you help me please ?