Cursor - LoadImage

I am embarrased to ask this, but I'll be a green-haired monkey if I can figure it out.

I moved up to VS 2010, and I want my cursor to change into that little Win 7 spinning circle.

In the first place, I can't find the ID of that little spinning circle.

In the second, the docs say that LoadImage() has replaced LoadCursor(), so what I want to do, which I had no problem doing before, but now can't get to work no matter what, is I want that little Win 7 spinning circle to show up and spin while my program is loading.

Since I stooped this low, you don't have to make me work for it... just give me the code. -:)
Last edited on
I was able to figure it out in like 1 minute with MSDN =P

It took me longer than that to make a test program to test it

The Spinning Circle thing is just the new hourglass, so you'd use IDC_WAIT:

HCURSOR curs = (HCURSOR)LoadImage(NULL,IDC_WAIT,IMAGE_CURSOR,0,0,LR_SHARED);

For your reference:

http://msdn.microsoft.com/en-us/library/ms648391%28v=vs.85%29.aspx <-- IDs of available stock cursors

http://msdn.microsoft.com/en-us/library/ms648045%28v=vs.85%29.aspx <-- How to use LoadImage
I figured it would be you or one or two others that would answer. I got tripped up mostly on the IDC _WAIT, because I wasn't using that in my previous code, and I just assumed that the circle had a new identifier.

Like I said, I was embarrased to ask the question. -:)
Topic archived. No new replies allowed.