COccManager::IsDialogMessage

Called by the framework to determine whether a message is intended for the specified dialog box and, if it is, processes the message.

virtual BOOL IsDialogMessage( 
   CWnd* pWndDlg, 
   LPMSG lpMsg 
);

Parameters

  • pWndDlg
    A pointer to the intended target dialog of the message.

  • lpMsg
    A pointer to an MSG structure that contains the message to be checked.

Return Value

Nonzero if the message is processed; otherwise zero.

Remarks

The default behavior of IsDialogMessage is to check for keyboard messages and convert them into selections for the corresponding dialog box. For example, the TAB key, when pressed, selects the next control or group of controls.

Override this function to provide custom behavior for messages sent to the specified dialog.

Requirements

Header: afxocc.h

See Also

Reference

COccManager Class

Hierarchy Chart