Scaling a window without obscuring image.
-
Hi, I've been given an old project written in VC6. This project uses openGL and in a window draws object meshes. The initial size is set to x = 800 , y = 800. How can i lock the window to scale evenly so x and y stay the same. I dont want to allow the window to have unequal x and y values. Is there a property i can use, i know its possible in vc7+ but i cant seem to find anything similar in vc6, do i have to hardcode such a function where it detects the event of resizing when done change the x or y depending which one is smaller to be equal to the largest value? [Eg. After user stretches the window a bit, x = 800, y = 850 so i will make x = 850?].
-
Hi, I've been given an old project written in VC6. This project uses openGL and in a window draws object meshes. The initial size is set to x = 800 , y = 800. How can i lock the window to scale evenly so x and y stay the same. I dont want to allow the window to have unequal x and y values. Is there a property i can use, i know its possible in vc7+ but i cant seem to find anything similar in vc6, do i have to hardcode such a function where it detects the event of resizing when done change the x or y depending which one is smaller to be equal to the largest value? [Eg. After user stretches the window a bit, x = 800, y = 850 so i will make x = 850?].
use WM_SIZING message
- NS - [ODBaseBtn]
-
use WM_SIZING message
- NS - [ODBaseBtn]