windows_programming_notes.nbk: Home | Index | Next Page: DM_SETDEFID | Previous Page: DLGTEMPLATE


 DM_GETDEFID

An application sends a DM_GETDEFID message to retrieve the identifier of the default push button control for a dialog box.

Syntax

To send this message, call the SendMessage function as follows.

    lResult = SendMessage(       // returns LRESULT in lResult
        (HWND)   hWndControl,    // handle to destination control
        (UINT)   DM_GETDEFID,    // message ID
        (WPARAM) wParam,         // = 0; not used, must be zero    
        (LPARAM) lParam          // = 0; not used, must be zero 
    );

Parameters

Return Value

If a default push button exists, the high-order word of the return value contains the value DC_HASDEFID and the low-order word contains the control identifier. Otherwise, the return value is zero.

Remarks

The DefDlgProc function processes this message.

Message Information


windows_programming_notes.nbk: Home | Index | Next Page: DM_SETDEFID | Previous Page: DLGTEMPLATE


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time