[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
DialogBox( hInstance, cTemplate, hWndOwner )-> <nResult>
------------------------------------------------------------------------------
PARAMETER:
<hInstance> Identifies an instance of the module whose executable
file contains the dialog box template. FiveWin supplies a
GetResources() function that returns the Instance of the
of the EXE or the handle of the resources DLL in use.
<cTemplate> Is the resource name given to the DialogBox template in the
resources.
<hWndOwner> Is the handle of the window which is the owner of the
DialogBox. By default it is GetActiveWindow()
RETURNS:
<nResult> is a value that the function EndDialog() needs to terminate the
execution of the Dialog Box, or -1 if the function cannot create the dialog
box.
DESCRIPTION:
DialogBox() creates and executes a Modal DialogBox from a Dialog resource
The dialog box procedure then receives a WM_SETFONT message (if DS_SETFONT
style was specified) and a WM_INITDIALOG message, and then the dialog box
is displayed.
The DialogBox function does not return control until the dialog box
procedure terminates the modal dialog box by calling the EndDialog
function. A dialog box can contain up to 255 controls.
SOURCE:
SOURCE\WINAPI\DLOGBOX.C
See Also:
EndDialog
CreateDlg
DialogBoxIndirect
GetResources
GetActiveWindow
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson