Skip to main content
GameDev.net gamedev.net
🔒 Locked

Display dialogs

Started by fyhuang May 18, 2004 at 6:04 PM 1 replies 300+ views
Original Post
fyhuang
fyhuang
How can I display a dialog box (in Windows) without using MFC?
- fyhuang [ site ]
SiCrane
SiCrane
Try looking up the CreateDialog() or CreateDialogIndirect() functions.
Aprosenf
Aprosenf
There are two families of functions, CreateDialog*() for modeless dialog boxes and DialogBox*() for modal dialog boxes. The *Indirect() functions load the dialog box from dialog template in memory, whereas the others load it from a resource. The *Param() functions pass an extra parameter to the dialog message handler during the WM_INITDIALOG message, whereas the others pass a default value of 0. Most likely, you''ll want CreateDialogParam() or DialogBoxParam().

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.