-
February 16th, 2010, 05:45 AM
#1
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
-
February 16th, 2010, 12:10 PM
#2
Re: DialogBox vs CreateDialog
Originally Posted by THEARTOFWEB
Is there any differences using one or another?
Yes, the first function creates modal dialog, the second - modeless.
Originally Posted by THEARTOFWEB
Should one be preferred to another?
Hmmm... If I need a modal dialog, I woul prefer the first one
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|