![]() |
![]() |
![]() |
Application-defined function that processes messages from the sample framework message pump.
Syntax
typedef LRESULT (CALLBACK *LPDXUTCALLBACKMSGPROC)(
HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, bool *pbNoFurtherProcessing );
Parameters
- hWnd
- [in] Handle to the window.
- uMsg
- [in] Specifies the message.
- wParam
- [in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.
- lParam
- [in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.
- pbNoFurtherProcessing
- [out] If TRUE, prevents the sample framework from handling the message.
Return Value
Returns zero if the function has processed window messages successfully; otherwise, returns a nonzero value.
Remarks
With the use of the pbNoFurtherProcessing parameter, the application can control the framework's level of involvement in processing window messages. If the application sets pbNoFurtherProcessing to TRUE in the call to LPDXUTCALLBACKMSGPROC, the framework will not process the message and will immediately return with the value returned by LPDXUTCALLBACKMSGPROC. If the application sets pbNoFurtherProcessing to FALSE, the framework will handle window management events.
This function and its parameters are used similarly to the Microsoft Windows WindowProc
function.
Prototype Information
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
Creating a Window, Message Events, DXUTSetCallbackMsgProc, DXUTSetCallbackKeyboard, DXUTSetCallbackMouse, LPDXUTCALLBACKKEYBOARD, LPDXUTCALLBACKMOUSE, DXUTStaticWndProc, WindowProc