DCompositionRedirectMouseWheelToHwnd function
Creates an Interaction/InputSink to route mouse wheel messages to the given HWND. This will fail if there is already an interaction attached to this visual. After calling this API, the device that owns the visual must be committed.
Syntax
HRESULT STDAPI DCompositionRedirectMouseWheelToHwnd(
_In_ IDCompositionVisual *visual,
_In_ HWND hwnd,
_In_ BOOL enable
);
Parameters
visual [in]
Type: IDCompositionVisual*The visual to route messages from.
hwnd [in]
Type: HWNDThe HWND to route messages to.
enable [in]
Type: BOOLBoolean value indicating whether to enable or disable routing.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Header |
Dcomp.h |
Library |
Dcomp.lib |
DLL |
Dcomp.dll |