Click to See Complete Forum and Search --> : how to change the window's size according to the computer's screen?


wangnanjing
October 2nd, 2002, 03:13 PM
Hello everyone,

My project is built when the computer's screen is 1024*768
When I run it on a 800*600 ,all the windows are too large.
So can you tell me how to solve this problem without redraw
all the windows?

thanks a lot


__________________
wangnj

leesb
October 9th, 2002, 01:55 AM
if your project is an HTML, you can change the width and height into percentage instead of absolute size. :)

Mikey
October 11th, 2002, 05:40 PM
when resolution is changing you get a WM_PAINT-msg.

now you can check the new max. window-area with
GetSystemMetrics(SM_CXSCREEN or SM_CYSCREEN)
or
SystemParametersInfo(...)
if you have special redrawing-things you have to do it yourself.
i'm not sure if this solve your problem?

mikey