🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to choose the mouse pointer?

Started by
17 comments, last by Mike00 23 years, 11 months ago
How do you tell OpenGL to use a mouse pointer in fullscreen mode that you create, instead of the default windows one? Thanks!
Advertisement
HCURSOR hc;

hc = LoadCursorFromFile("cursor.cur");
SetCursor(hc);
u can use hc = GetCursor() to get the current cursor

I hope u understood!

Just a question byside:

What is a .cur file? just a renamed .bmp file ?

thx,

cya,

Phil
Visit Rarebyte! and no!, there are NO kangaroos in Austria (I got this question a few times over in the states ;) )
make sure you change the code in NeHe''s code to not load the default mouse pointer.. you should see it in one of the main functions

-TipTup
TipTup.Com
Thanks! What''s a .cur file?
You can make a .cur file in the resource editor from VC++.

ie. menu Insert -> Resource -> Cursor
btw. a cursor (.cur) is NOT a renamed BMP file.
Thanks!
Hmm, 2 questions:

1) Is there a way to import a pic into the cursor creator in VC++ or do I have to draw it in there?

2) How do I save it as a .cur? VC only has the save options of .rc, .rec, and .res....

Thanks!
.rct, not .rec

This topic is closed to new replies.

Advertisement