Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Scroll width in CExtGridWnd? Collapse All
Subject Author Date
tera t Sep 10, 2007 - 7:42 PM

Hello.

In CExtGridWnd, I want to acquire the number of the dots doing horizontal scrolling.
Please teach an acquisition method of horizontal scrolling width

tera t Sep 11, 2007 - 8:53 PM

Hello.

I want to know the number of the scroll dots now.
http://www.yukai.jp/~ifreeta/20070912/image012.jpg

Technical Support Sep 12, 2007 - 12:23 PM

If you are using Windows scroll bars, just use the GetScrollBarInfo() Win32 API to get information about different parts of the scroll bar.

In the case of CExtScrollBar or CExtZoomScrollBar, you can use the following code:

CExtScrollBar * pScrollBar = . . .
CExtPaintManager::PAINTSCROLLBARDATA _psbd( pScrollBar );
The CExtPaintManager::PAINTSCROLLBARDATA class has several CRect members describing the location and size of scroll bar’s parts.

Suhai Gyorgy Sep 11, 2007 - 4:52 AM

You should override CExtScrollItemWnd::OnSwGetLineSize method (CExtGridWnd is derived from CExtScrollItemWnd class, so overriding is possible). Check out default implementation and change it as you need in your overriden method.