次の方法で共有


SetWindowCursorPreference (Compact 2013)

3/28/2014

This function allows a top-level window to set its cursor preference.

Syntax

DWORD SetWindowCursorPreference(HWND hwnd, DWORD dwFlags);

Parameters

  • hwnd
    An HWND handle to the window to be queried.
  • dwFlags
    A DWORD value that specifies the current cursor preference:

    CURSORPREFERENCE_SYSTEM specifies that the default system preference be followed.

    CURSORPREFERENCE_TOUCH specifies that the mouse cursor be preferred.

    CURSORPREFERENCE_MOUSE specifies that the touch cursor be preferred.

Return Value

dwFlags on success. Error on failure.

Requirements

Header

pwinuser.h

See Also

Reference

Cursor Reference