Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ck if vertical scroll bar is active
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01489310
Message ID:
01489422
Vues:
51
>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).

Thanks again. Just what I was looking for.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform