CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    86

    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

  2. #2
    Join Date
    Oct 2002
    Location
    Philippines
    Posts
    2

    Smile

    if your project is an HTML, you can change the width and height into percentage instead of absolute size.

  3. #3
    Join Date
    Aug 2001
    Location
    Germany
    Posts
    166

    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
  •  





Click Here to Expand Forum to Full Width

Featured