hide cursor in Win32Window

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

hide cursor in Win32Window

Post by luckymutt »

I'm making my app in a Win32 Window, but the standard

Code: Select all

 device->getCursorControl()->setVisible(false);
doesn't hide the mouse cursor.
Is there a Windows line of code I need to use?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

I guess that this is what this is for:
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Samples\Media\Misc\blank.cur

I remember having to get a "blank.cur" for a vb program i was making once. I've never done windows gui apps in c++ though, you might need an api call to set the cursor manually
Guest

Post by Guest »

int ShowCursor(
BOOL bShow // cursor visibility
);

compliments of the MSDN free online library
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

lol that works too.. exposing our ignorance there ;)
thanks guest
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

Yes. Thank you.
Irrlicht's, essentially, what I've learned to program in.
Incidently, I did try no knock around the MS site, but was swamped with all of the new-fangled .NET nonsense.
Guest

Post by Guest »

if you Google for MSDN, the first hit is the MSDN home page.
The Library link is at top of page second from left.
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

Yeah, as I said, that was the first stop. Didn't even need to google it.

And doing a searching around msdn these days seems to mostly return mostly the .Net Framework they are pushing on.
And I just really don't feel like wading through all of that, though I am sure what I'm looking for was in their somewhere...
...recent .NET issues I've been having is just really making me dislike it and give me an urge to run away when I see see it.

Alas, I guess we'll all eventually have to warm up to .NET

Well, thanks again.
Post Reply