Hi PB Users;
I have a question:
It is easy to create a window by the size of the entire window. What I need is the ability to calculate the needed size of my client area (which will vary) and then figure out how much bigger the actual window will have to be (including title bar and dialog frame and menu ), so my client area is the correct size.
Lets, say I need my cient area to be 600 X 400 pixels. How would I calculate the extra needed for the Title bar, dialog frame and menu, so I can send the correct size for the window to CreatewindowEX ? Lets say the title bar added 16 pixels, the frame 6 pixels on all sides and the menu 16 pixels. If I needed a 600 x 400 client area, then window would have to be (600 + 6 + 6) x (400 + 6 + 6 + 16 + 16)
or 612 x 448
Do you get it ?
I have a question:
It is easy to create a window by the size of the entire window. What I need is the ability to calculate the needed size of my client area (which will vary) and then figure out how much bigger the actual window will have to be (including title bar and dialog frame and menu ), so my client area is the correct size.
Lets, say I need my cient area to be 600 X 400 pixels. How would I calculate the extra needed for the Title bar, dialog frame and menu, so I can send the correct size for the window to CreatewindowEX ? Lets say the title bar added 16 pixels, the frame 6 pixels on all sides and the menu 16 pixels. If I needed a 600 x 400 client area, then window would have to be (600 + 6 + 6) x (400 + 6 + 6 + 16 + 16)
or 612 x 448
Do you get it ?
Comment