Tuesday, March 15, 2005

Checking Scrollbar Visibility

Call GetScrollBarInfo (NOT GetScrollInfo). Pass in a SCROLLBARINFO struct (only the cbSize field needs to be initialized in this case). On return, check the value of .rgstate[0]. If it is STATE_SYSTEM_INVISIBLE then the scroll bar is hidden. If it is STATE_SYSTEM_UNAVAILABLE, then the scroll bar has been disabled.

Min. OS req Windows 98, Windows NT 4.0 with Service Pack 6.

No comments:

About Me

My photo
C/C++ Programmer doing CAD on Windows. Some web development experience. Bangalorean.

Blog Archive

Labels