[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 EndDialog( hWndDlg, nResult )-> <nil>
--------------------------------------------------------------------------------


 PARAMETER:

  <hWndDlg>    It is the handle of the DialogBox

  <nResult>    is a numeric value that will be returned by the DialogBox()
                   or DialogBoxIndirect() functions.



 DESCRIPTION:

  This function hides a modal DialogBox and causes the DialogBox function 
  to return. It is required to complete processing of a modal dialog box 
  created by the DialogBox function. An application calls EndDialog from
  within the dialog box procedure. 

  A dialog box procedure can call EndDialog at any time, even during the
  processing of the WM_INITDIALOG message. If the function is called while
  this message is being processed, the dialog box is hidden before it is
  shown and before the input focus is set. 
  EndDialog() does not destroy the dialog box immediately. Instead, it sets
  a flag that directs Windows to destroy the dialog box when the DialogBox
  function returns. 


 SOURCE:

  SOURCE\WINAPI\DLOGBOX.C



See Also: DialogBox DialogBoxIndirect
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson