Advertisement

How to choose the mouse pointer?

Started by July 30, 2000 02:46 PM
17 comments, last by Mike00 24 years, 1 month ago
How do you tell OpenGL to use a mouse pointer in fullscreen mode that you create, instead of the default windows one? Thanks!
HCURSOR hc;

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

I hope u understood!

Advertisement
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
Advertisement
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