Sign in to follow this  

Mouse Problems in GUI

This topic is 4069 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

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

This topic is 4069 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