How to set Cursor
-
Hello Friends, I want to change the Cursor when mouse is on Button. This I want to do in ATL. Abhijeet
-
Hello Friends, I want to change the Cursor when mouse is on Button. This I want to do in ATL. Abhijeet
You Can use
SetCursor
. UseCComModule::m_hInst
as first parameter.Prasad Notifier using ATL | Operator new[],delete[][^]
-
Hello Friends, I want to change the Cursor when mouse is on Button. This I want to do in ATL. Abhijeet
Alternatively, you can derive a class from CButton, implement a static method RegisterClass that will retrieve the BUTTON class info using GetClassInfo(Ex), then replace the class name with your class name, window procedure with yours and also the class hCursor with the desired cursor. A similar technique can be found in MSDN for custom dialog classes.