How to Change the Cursor
-
Hello Everyone, I am using a Dialog Application, in which i am using two sliding dialogs for customizing the main dialog. I want to change the cursor for each sliding dialog. Should be Bitmap. Tell me if any one knows it.
Thanks and Regards. SANTHOSH V
-
Hello Everyone, I am using a Dialog Application, in which i am using two sliding dialogs for customizing the main dialog. I want to change the cursor for each sliding dialog. Should be Bitmap. Tell me if any one knows it.
Thanks and Regards. SANTHOSH V
Did you use of
CreateCursor
for create it andSetCursor
for set it?
WhiteSky
-
Did you use of
CreateCursor
for create it andSetCursor
for set it?
WhiteSky
I used CreateCursor and SetCursor. It is working in main dialog. But, it is not working in the sliding dailogs. There are two sliding dialogs. I am want to use company logo as a cursor.
Thanks and Regards. SANTHOSH V
-
Hello Everyone, I am using a Dialog Application, in which i am using two sliding dialogs for customizing the main dialog. I want to change the cursor for each sliding dialog. Should be Bitmap. Tell me if any one knows it.
Thanks and Regards. SANTHOSH V
It sounds like you need to handle WM_SETCURSOR in your sliding dialogs. But this would only handle the cursor on the dialog itself, not on any buttons, static controls etc. To handle all those cases would be possible by using subclassed controls also, but it sounds like rather a lot of work... You also have the separate problem of turning an arbitary bitmap into a cursor! Iain.
-
Hello Everyone, I am using a Dialog Application, in which i am using two sliding dialogs for customizing the main dialog. I want to change the cursor for each sliding dialog. Should be Bitmap. Tell me if any one knows it.
Thanks and Regards. SANTHOSH V
Are the sliding dialogs coordinates fixed? You can get the dimensions and position of the dialogs. Then get the position of the mouse according to the main frame or the desktop and, if you are inside of the region ocuped by your dialog when is visible... then change the cursor to the one you want. I made it in my project when being over one bitmap (that represents an element that can be configured in advanced window), and changing cursor depending on the element.
Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
-
I used CreateCursor and SetCursor. It is working in main dialog. But, it is not working in the sliding dailogs. There are two sliding dialogs. I am want to use company logo as a cursor.
Thanks and Regards. SANTHOSH V
santhoshv84 wrote:
But, it is not working in the sliding dailogs.
Are those dialogs responding to the
WM_SETCURSOR
message?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne