Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Always on Top
Message
From
27/08/1998 07:35:35
 
 
To
26/08/1998 19:32:52
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00130228
Message ID:
00130433
Views:
11
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform