Sign in to follow this  

SetCursor problem

This topic is 4358 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i use windows cursor and i set it up with SetCursor() function at start; and add to my message handles WM_SETCURSOR: SetCursor(myCursor); it all looks fine except when i move the cursor to the corner, then it becomes standard windows arrow; help

Share this post


Link to post
Share on other sites
You can just omit the WS_THICKFRAME (or other constants with the same meaning) in your window creation routine, a normal game window with unresizable border, title and windowed mode would look like this:
WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX | WS_CLIPCHILDREN | WS_CLIPSIBLINGS

For full-screen mode:
WS_VISIBLE | WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS

WS_POPUP helps the window to be on top of the taskbar (this may not be necessary with DirectX though).

You can also get rid of the window border itself through SetClassLong () / SetWindowLong () routines.

Share this post


Link to post
Share on other sites

This topic is 4358 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this