Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ck if vertical scroll bar is active
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01489310
Message ID:
01489367
Views:
69
Or you can use Win API function GetWindowLong
? IsVerticalScrollbar(ThisForm.HWnd)
RETURN

FUNCTION IsVerticalScrollbar(thWnd)
LOCAL lnStyle
#DEFINE GWL_STYLE -16
#DEFINE WS_VSCROLL 0x00200000
DECLARE Long GetWindowLong IN WIN32API HWND Long, nIndex Long
lnStyle = GetWindowLong(thWnd, GWL_STYLE)
RETURN (BITAND(lnStyle, WS_VSCROLL) <> 0)
>Does anyone know of a way to check if the vertical scroll bar is active? I have a form that can be re-sized but if the height is shorter than the contents the scroll bar becomes active (or visible) and narrows the width of the form. I need to know when this happens so I can make the form wider by sysmetric(5).
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform