[Win32 API] LoadCursor Fuction

Load the cursor resource named by lpszResourceName or
                                               specified by nIDResource from the current executable file.

Syntax

HCURSOR WINAPI LoadCursor(
  __in_opt  HINSTANCE hInstance,
  __in      LPCTSTR lpCursorName
);



Parameter

  • lpszResourceName : Point to a nul-terminated string that contains the name of the cursor resource. You can use a Cstring for this argument.
  • nIDResource : ID of the cursor resource. For a list of resources, see LoadCursor in the Windows SDK.

  • ValueMeaning

    IDC_APPSTARTING

    Standard arrow and small hourglass

    IDC_ARROW

    Standard arrow

    IDC_CROSS

    Crosshair

    IDC_HAND

    Hand

    IDC_HELP

    Arrow and question mark

    IDC_IBEAM

    I-beam

    IDC_ICON

    Obsolete for applications marked version 4.0 or later.

    IDC_NO

    Slashed circle

    IDC_SIZE

    Obsolete for applications marked version 4.0 or later. Use IDC_SIZEALL.

    IDC_SIZEALL

    Four-pointed arrow pointing north, south, east, and west

    IDC_SIZENESW

    Double-pointed arrow pointing northeast and southwest

    IDC_SIZENS

    Double-pointed arrow pointing north and south

    IDC_SIZENWSE

    Double-pointed arrow pointing northwest and southeast

    IDC_SIZEWE

    Double-pointed arrow pointing west and east

    IDC_UPARROW

    Vertical arrow

    IDC_WAIT

    Hourglass
Return Value
  • A handle to a cursor if successful; otherwise NULL.

댓글

이 블로그의 인기 게시물

[Win32 API] WINAPI - 함수호출규약

JAVA Frame Icon setting

JAVA Spinner