Click to See Complete Forum and Search --> : Changing Control sizes with different Screen Resolution


DHunter21
August 13th, 1999, 03:08 PM
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

August 14th, 1999, 01:14 PM
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

DHunter21
August 16th, 1999, 01:18 PM
I don't suppose you know how to make all the static controls in my dialog, and all the text, resize as well?