Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Always on Top
Message
De
27/08/1998 07:35:35
 
 
À
26/08/1998 19:32:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00130228
Message ID:
00130433
Vues:
10
>I just want to add that if the last parameter is 67 (SWP_NOMOVE + SWP_NOSIZE + SWP_SHOWWINDOW) instead of 64 (SWP_SHOWWINDOW), then you can ignore the hpos, vpos, width and height parameters (The window will retain its curent position and size).
>
>Vlad
>
>>Sure there's an API call for this, SetWindowPos().
>>DECLARE SHORT SetWindowPos IN Win32API;
>>  INTEGER hwnd,	INTEGER hwndInsertAfter,;
>>  INTEGER hpos, INTEGER vpos,;
>>  INTEGER width, INTEGER height,;
>>  INTEGER fuFlags
>>* lnhwnd is the window handle (hwnd property in VB)
>>* lnhpos is the horizontal location of the window
>>* lnvpos is the vertical location of the window
>>* lnwidth is the width of the window
>>* lnheight is the height of the window
>>* Call the function
>>llresult = (SetWindowPos(lnhwnd, -1, lnhpos, lnvpos,;
>>  lnwidth, lnheight, 64) # 0)
>>That's all there is to it.
>>
>>hth,

Thanks Paul. :-)
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform