Discussion:
How to set cursor?
(too old to reply)
alunlee
2007-07-24 03:26:04 UTC
Permalink
In my view, there are many different graphs, and they may all change the
cursor. So I add some data members to by class(eg. CTable) for storing the
cursor handle, and call LoadCursor function. If the different graphs need the
same cursor, how can I do? All the cursors I used are provided by system.
Should I call DestroyCursor? In addition, is there need to call the
OnSetCursor in the base class view?
Tom Serface
2007-07-24 04:18:37 UTC
Permalink
This info should help you. You'll have to handle figuring out where you are
in the view to set the appropriate cursor, but you can do that by using the
nHitTest parameter.

http://support.microsoft.com/kb/131991
http://msdn2.microsoft.com/en-us/library/7ykcbyxt(VS.80).aspx

Tom
Post by alunlee
In my view, there are many different graphs, and they may all change the
cursor. So I add some data members to by class(eg. CTable) for storing the
cursor handle, and call LoadCursor function. If the different graphs need the
same cursor, how can I do? All the cursors I used are provided by system.
Should I call DestroyCursor? In addition, is there need to call the
OnSetCursor in the base class view?
alunlee
2007-07-24 08:44:03 UTC
Permalink
Thank you!!
--
There is a will, there is a way!
Post by Tom Serface
This info should help you. You'll have to handle figuring out where you are
in the view to set the appropriate cursor, but you can do that by using the
nHitTest parameter.
http://support.microsoft.com/kb/131991
http://msdn2.microsoft.com/en-us/library/7ykcbyxt(VS.80).aspx
Tom
Post by alunlee
In my view, there are many different graphs, and they may all change the
cursor. So I add some data members to by class(eg. CTable) for storing the
cursor handle, and call LoadCursor function. If the different graphs need the
same cursor, how can I do? All the cursors I used are provided by system.
Should I call DestroyCursor? In addition, is there need to call the
OnSetCursor in the base class view?
Loading...