Hi, I have a resizable form that must maintain one of two fixed aspect ratios. Depending on menu selection, the form must be width = height or width = 2 * height. I have subclassed WM_SIZING, and have it working perfectly. Well, almost. I have yet figure out how, when changing menu settings, how to force a WM_SIZING message so that the form automatically adjusts to the new aspect ratio. Currently, I change the menu settings and have to click the mouse on the border of the form to get it to change aspect ratio. How to automate that? I'm sure it's simple, but it escapes me. TIA, Bob.
↧