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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Cursor for a few Minutes

Status
Not open for further replies.

porto99

Technical User
Nov 1, 2004
96
0
0
GB
While I process a large MS Access table I would like to change the cursor to an Hourglass and then back again to the usual pointer.

I pump the message queue during the processing, but would now like to change the cursor also.

Cheers,

Porto
 
The call you need is SetCursor, which returns the current cursor. After your loop, you'd call SetCursor again, using that returned cursor.

I vaguely remember something about the cursor getting reset to the arrow if you "pump the message queue," so you might need to reset it after doing that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top