Sign in to follow this  

win32 API and dialog box locations

This topic is 4478 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 am trying to figure out how to make my dialog boxes and my main window behave so that when I change resolutions or resize the start bar the app resizes itself to keep uniform look instead of gaps? Any help would be greatly appreciated. Thanks

Share this post


Link to post
Share on other sites
Thanks for the reply ZedFex. I am looking for info on resizing my OpenGL window, and my dialog box. Now would I have to get the new resize values from the main winproc()? and then send that data to the dialog boxes and have them resize themselfs? Thanks

Share this post


Link to post
Share on other sites
It all depends on where your windows are positioned: Is your dialog box a separate window or is it a child of your main window ?

If it is a child, then yes, you need to get the values from the main window; if they are both windows in their own individual rights then you can get the information for your dialog from your dlgproc function.

Share this post


Link to post
Share on other sites
Quote:
Original post by ZedFx
Subclass your dialog box then and intercept the WM_MOUSEWHEEL message, using SetWindowLong(GWL_WINDOWPROC, subclassproc).


Thanks for the help, but I just moved the WM_MOUSEWHEEL messge into the WndProc function instead of my dialog box callback.

Share this post


Link to post
Share on other sites

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