DXUTSetCallbackMouse
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTSetCallbackMouse Function


Sets the mouse event callback function.

Syntax

VOID DXUTSetCallbackMouse(      

    LPDXUTCALLBACKMOUSE pCallbackMouse,     BOOL bIncludeMouseMove );

Parameters

pCallbackMouse
[in] Pointer to an LPDXUTCALLBACKMOUSE mouse event callback function. If supplied, the callback function will be called for mouse events.

If NULL, the sample framework will not notify the application about mouse events.
bIncludeMouseMove
[in] If TRUE, the Microsoft Windows WM_MOUSEMOVE World Wide Web link message is passed to the pCallbackMouse callback function. Default value is FALSE.

Return Value

No return value.

Remarks

The pCallbackMouse mouse event callback function will be called when any one of the following mouse events occurs:

This callback mechanism is provided to simplify handling mouse messages through the Windows message pump, but does not preclude the application from handling those messages directly through the Windows WindowProc World Wide Web link callback function.

Function Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Message Events, LPDXUTCALLBACKMOUSE, LPDXUTCALLBACKKEYBOARD, LPDXUTCALLBACKMSGPROC, DXUTSetCallbackKeyboard, DXUTSetCallbackMsgProc, WindowProc World Wide Web link


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.