LPDXUTCALLBACKMSGPROC

Application-defined function that processes messages from DXUT message pump.

LRESULT LPDXUTCALLBACKMSGPROC(
  HWND hWnd,
  UINT uMsg,
  WPARAM wParam,
  LPARAM lParam,
  bool * pbNoFurtherProcessing,
  void* pUserContext
);

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 DXUT from handling the message.
pUserContext
[in] Pointer to a user-defined value which is passed to the callback function. Typically used by an application to pass a pointer to a data structure that provides context information for the callback function. The default value is NULL

Return Values

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 Windows WindowProc function.

Requirements

Header: Declared in Dxut.h.

See Also

DXUTSetCallbackMsgProc, DXUTSetCallbackKeyboard, DXUTSetCallbackMouse, LPDXUTCALLBACKKEYBOARD, LPDXUTCALLBACKMOUSE, DXUTStaticWndProc, WindowProc