Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Win32 (http://www.go4expert.com/forums/win32/)
-   -   Change Mouse Cursor in the CList Control (http://www.go4expert.com/forums/change-mouse-cursor-clist-control-t16779/)

shobhit_ra 3Apr2009 01:11

Change Mouse Cursor in the CList Control
 
Hello All

I am using MFC Dialog based aplication.
I have to change Mouse Curser when mouse move on the CList control.

Please suggest or provide the code for it.
Thanks.

shabbir 3Apr2009 08:58

Re: Change Mouse Cursor in the CList Control
 
Load the needed cursor and use SetCursor API

shobhit_ra 3Apr2009 10:02

Re: Change Mouse Cursor in the CList Control
 
Where to load the cursor?
How would I know that the cursor has moved on List control?
There is no event regarding this.

Please suggest.

shabbir 3Apr2009 11:44

Re: Change Mouse Cursor in the CList Control
 
There are mouse events related to the control like MouseIn and out as well as Hover of mouse and using them you have the get it.

Also loading the cursor can be done in the initdialog and then have them in the Variable and set / reset them as needed.

shobhit_ra 3Apr2009 12:31

Re: Change Mouse Cursor in the CList Control
 
There are LBtnClick, RBtnClick, DblClick .... events for the control.
For Clist control there is no MouseIn or MouseOut events and MouseOver event is for the dialog only.

CList get notified on following events - Setfocus (when clicking through mouse), KillFocus, SelChange....

I am not finding any event when Mouse just goes over it???

Please suggest.
Thanks for the reply

shabbir 3Apr2009 16:28

Re: Change Mouse Cursor in the CList Control
 
I guess what you are looking at is the front end and I guess you need to get into looking at MSDN rather than front end.

shobhit_ra 3Apr2009 16:43

Re: Change Mouse Cursor in the CList Control
 
I could not understand your reply.
Please explain again with more detail.

shabbir 3Apr2009 21:50

Re: Change Mouse Cursor in the CList Control
 
The Mouseevent is there for all the windows control. Its just that if you use MSDN you would get to see them and write code for them but the UI Editor does not show all of them


All times are GMT +5.5. The time now is 07:49.