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 General Discussion » How to tell if row is visible Collapse All
Subject Author Date
Douglas Hoppes Mar 30, 2009 - 9:27 AM

Hi,

Hopefully, this is a pretty simple question. Using the CextGridWnd, how can I tell if the row is visible. For example, I have 20 rows in my data set, but am currently showing the first five rows. I would like to, programmatically, tell if row 10 is visible. In this situation, it would return a false. However, the user could have used the scrollbar to scroll to row 10. So, then, the value would be true.

Doug

Technical Support Mar 30, 2009 - 12:29 PM

The CExtScrollItemWnd::OnSiwGetVisibleRange() method returns a CRect object containing the row and column indices of the visible rows and columns. This method works independently of the selected scrolling strategies.