>I have a form set to maximum state. I also have a banner that scrolls accross the screen. I want to place the banner in relation to the center of the form. Is there any way to get the height of the maximized form to use in a calculation for my banner? It seems like the new form height is not set until after the form init event is ran.
Steve,
I got this from George Tasker and works reliably.
#define SM_CXSCREEN 0 && Screen width in pixels
#define SM_CYSCREEN 1 && Screen height in pixels
#define SM_CXFULLSCREEN 16 && Client area width
#define SM_CYFULLSCREEN 17 && Client area height
DECLARE INTEGER GetSystemMetrics IN Win32API;
INTEGER nIndex
* Example
? GetSystemMetrics(SM_CXSCREEN)
? GetSystemMetrics(SM_CYSCREEN)
? GetSystemMetrics(SM_CXFULLSCREEN)
? GetSystemMetrics(SM_CYFULLSCREEN)
Cetin