Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Feb : SystemParametersInfo and resizing windows
| Subject: | SystemParametersInfo and resizing windows |
| Posted by: | "York" (nospam@nospam.com) |
| Date: | Mon, 5 Feb 2007 12:08:25 |
I am not sure if this is the right group (or may be the graphics one), so
sorry if wrong.
Here it is...
My application uses SystemParametersInfo to set the workarea width/height
like this
procedure TForm1.Button1Click(Sender: TObject);
var R: TRect;
begin
R := Rect(0, 0, 800, 600);
SystemParametersInfo(SPI_SETWORKAREA, 0, @R, SPIF_SENDCHANGE or
SPIF_UPDATEINIFILE);
end;
What I need to do is after the workarea is resized I need to resize all the
windows that are exceeding the new workarea.
The ones that are small should not be changed.
The parameter SPIF_SENDCHANGE does not resize the windows already opened.
Any suggestions appreciated.
Thanks.