|
-
October 2nd, 2002, 03:13 PM
#1
how to change the window's size according to the computer's screen?
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
wangnj
-
October 9th, 2002, 01:55 AM
#2
if your project is an HTML, you can change the width and height into percentage instead of absolute size.
-
October 11th, 2002, 05:40 PM
#3
WM_PAINT & co
when resolution is changing you get a WM_PAINT-msg.
now you can check the new max. window-area with
Code:
GetSystemMetrics(SM_CXSCREEN or SM_CYSCREEN)
or
Code:
SystemParametersInfo(...)
if you have special redrawing-things you have to do it yourself.
i'm not sure if this solve your problem?
mikey
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|