DCompositionAttachMouseWheelToHwnd 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 DCompositionAttachMouseWheelToHwnd( _In_ IDCompositionVisual *visual, _In_ HWND hwnd, _In_ BOOL enable );
Parameters
- visual [in]
-
Type: IDCompositionVisual*
The visual to route messages from.
- hwnd [in]
-
Type: HWND
The HWND to route messages to.
- enable [in]
-
Type: BOOL
Boolean 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 |
|
|---|---|
|
Library |
|
|
DLL |
|