Mouse Cursor

Moderator: Rathinagiri

Post Reply
melliott42
Posts: 119
Joined: Wed Feb 18, 2009 2:14 pm

Mouse Cursor

Post by melliott42 »

Hello,

How do I set the Mouse Cursor (AKA Pointer) to and Hourglass and then back to the Default again?

Thanks,

Michael
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Mouse Cursor

Post by srvet_claudio »

melliott42 wrote:Hello,

How do I set the Mouse Cursor (AKA Pointer) to and Hourglass and then back to the Default again?

Thanks,

Michael
See:

Code: Select all

SetWindowCursor (Form_1.HANDLE, IDC_HAND)
SetWindowCursor (Form_1.Control_1.HANDLE, IDC_HAND)
defined in i_controlmisc.ch:

Code: Select all

// System Cursor ID
#define IDC_ARROW  (32512)
#define IDC_IBEAM  (32513)
#define IDC_WAIT  (32514)
#define IDC_CROSS  (32515)
#define IDC_UPARROW  (32516)
#define IDC_SIZENWSE  (32642)
#define IDC_SIZENESW  (32643)
#define IDC_SIZEWE  (32644)
#define IDC_SIZENS  (32645)
#define IDC_SIZEALL  (32646)
#define IDC_NO  (32648)
#define IDC_HAND  (32649)
#define IDC_APPSTARTING  (32650)
#define IDC_HELP  (32651)
#define IDC_ICON  (32641)
#define IDC_SIZE  (32640)
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
melliott42
Posts: 119
Joined: Wed Feb 18, 2009 2:14 pm

Re: Mouse Cursor

Post by melliott42 »

srvet_claudio perfect.

Thanks!
Post Reply