Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing pointer Icons in Dialog Box

Status
Not open for further replies.

reneb

Programmer
Aug 8, 2000
43
US
Is there a class or a method to change the pointer icon when the user moves the mouse over a dialog box. Example, I have a progress dialog box and I want the icon to change to a clock, to show that program is working. Any ideas. Thanks in advance
 
The easiest way is to create a cursor resource in Visual's resource editor, and then when you want to change the cursors icon call HCURSOR hCursor = AfxGetApp()->LoadCursor(IDC_MY_CURSOR); then call ::SetCursor(hCursor);. Check if progress controls have an OnSetCursor event, and just do the dew when it is called.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top