Posted by Jerry D on December 22, 2005
In Reply to: Setting Explorer Size and position? posted by creeek on December
There is no Delphi routine for opening an application and at the same time setting its size and position. But you can set size and position of an application's main window *after* it has been started.
The MoveWindow function sets the size and position of a single application window. For this, you have to know the window's handle (HWND).
function MoveWindow(HWND: THandle; X, Y, nWidth, nHeight: DWORD; bRepaint: BOOLEAN): BOOLEAN
The function FindWindow lpClassName, lpWindowName: PChar): THandle
H := FindWindow(PChar('IEFrame'), nil); // Internet Explorer
Related Articles and Replies