DialogBox vs CreateDialog
Hi,
Is there any differences using one or another?
Code:
DialogBox(hInst, MAKEINTRESOURCE(IDD_POPUP), hWnd, (DLGPROC)procPopup);
ShowWindow(
CreateDialog(hInst, MAKEINTRESOURCE(IDD_POPUP), hWnd, (DLGPROC)procPopup),
SW_SHOW
);
Should one be preferred to another?
thanks
Re: DialogBox vs CreateDialog
Quote:
Originally Posted by
THEARTOFWEB
Is there any differences using one or another?
Yes, the first function creates modal dialog, the second - modeless.
Quote:
Originally Posted by
THEARTOFWEB
Should one be preferred to another?
Hmmm... If I need a modal dialog, I woul prefer the first one :)