CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    San Diego
    Posts
    155

    Changing Control sizes with different Screen Resolution

    Is there an easy way anyone knows of to change the Control sizes when the screen resolution is changed?

    I designed my program in 1024X728, and just found out that it will be run on 800X600 and 640X480.

    Thanks in advance


  2. #2
    Guest

    Re: Changing Control sizes with different Screen Resolution

    Yes, I have just had to something similar. You want to do something like the following:

    pStatic->GetWindowRect(rectWnd);
    pStatic->SetWindowPos(NULL,0,0,rectWnd.Width(),rectWnd.Height() + 175, SWP_NOMOVE);

    Hope this helps.

    John Williams


  3. #3
    Join Date
    Aug 1999
    Location
    San Diego
    Posts
    155

    Re: Changing Control sizes with different Screen Resolution

    I don't suppose you know how to make all the static controls in my dialog, and all the text, resize as well?


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