How to set the original size of a window?
-
How to obtain the original length and height of a window (as they were defined in the the resource file) or is there a function which restores the window to it's original size?
you can enumerate resources of the executable containing that dialog box if the window is a dialog which is created from resources. take a look at this API documentation : EnumResourceNames() but to identify which resource corresponds to that window you need to compare window names, or if the name is modified, you need to compare its contents. but about a simple API that does the job, at least I haven't heard of.
-
How to obtain the original length and height of a window (as they were defined in the the resource file) or is there a function which restores the window to it's original size?
CRect rc; GetWindowRect(rc); rc.Width(); rc.Height();