How can I affect the result of GetClientRect?
-
Hi. In a CScrollView as far as I realised the GetClientRect returns the size of the physical page of the view. Howe can I alter programatically that size? How can I expand the client area to fit a larger design? What will happen with the co-ordinate system and how do I correct it? Pls help as I am desperate to deliver something:( Thanks
-
Hi. In a CScrollView as far as I realised the GetClientRect returns the size of the physical page of the view. Howe can I alter programatically that size? How can I expand the client area to fit a larger design? What will happen with the co-ordinate system and how do I correct it? Pls help as I am desperate to deliver something:( Thanks
Try this. Call GetClientRect, alter the coordinates, then call MoveWindow to update. Some people see things that are and ask, Why? Some people dream of things that never were and ask, Why not? Some people have to go to work and don't have time for all that ... Author: George Carlin
-
Hi. In a CScrollView as far as I realised the GetClientRect returns the size of the physical page of the view. Howe can I alter programatically that size? How can I expand the client area to fit a larger design? What will happen with the co-ordinate system and how do I correct it? Pls help as I am desperate to deliver something:( Thanks
What are you trying to accomplish here? If you change the size of your window, the size of the client changes also. By default, the client is the size of the window, less borders, scrollbars, etc. - if you wish to make it smaller, that is possible, but it is not possible for the client area to ever be larger than the size of the window. Seeing as you're working with a
CScrollView
, you probably wantSetScrollSizes()
or some such.Shog9
I'm not the Jack of Diamonds... I'm not the six of spades. I don't know what you thought; I'm not your astronaut...