# DefDlgProc

The DefDlgProc function allows to call the internal dialog callback function.

    LONG_PTR WINAPI DefDlgProc(
      HANDLE hDlg,
      int    Msg,
      int    Param1,
      LONG_PTR Param2
    );

### Parameters

hDlg
Dialog handle
Msg
One of the Dialog API messages or events.
Param1
The 1st parameter.
Param2
The 2nd parameter.

### Return value

The return value depends on the Msg parameter.

### Example

A fragment from the Reversi game dialog callback proc:

    LONG_PTR WINAPI ReversiDialogProc(HANDLE hDlg, int Msg,int Param1,LONG_PTR Param2)
    {
      ...
      return Info.DefDlgProc(hDlg,Msg,Param1,Param2);
    }

See also:
DialogEx
SendDlgMessage