Sign in to follow this  
starfleetrp

Mouse Problems in GUI

Recommended Posts

Hi, I am currently working on creating a GUI for my game but I am having some trouble getting the mouse chords to be correct. It works perfect in full screen but the title bar seems to mess up the chords and makes everything seem to be offset by the height of the title bar. I am wondering how you have been able to fix this problem?

Share this post


Link to post
Share on other sites
you can use GetClientRect() or something like that (i might have the name slightly of) to get the size of the actauls client area (i.e. without menu and title bars and stuff) the compare this to the real size of the window to get the amount you need to adjust the mouse position by.

Hopw that helps

Share this post


Link to post
Share on other sites

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