[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  DialogBoxIndirect( hInstance, cMemTemplate, 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.


  <cMemTemplate>  Is a string that contains the binary description of the 
                  Dialog Box template.

  <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:

  The DialogBoxIndirect function creates a modal dialog box from a dialog box 
  template in memory. 
  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 DialogBox GetResources GetActiveWindow
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson