Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximized Form
Message
De
13/08/2002 09:32:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/08/2002 09:26:08
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00689088
Message ID:
00689092
Vues:
26
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform