Professional UI Solutions
Site Map   /  Register


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 » Set Focus without scrolling window Collapse All
Subject Author Date
Douglas Hoppes Jun 27, 2011 - 9:02 AM

Hi all,

Seem to have a weird problem. Say that I have 10 rows in my CExtGridWnd, but am showing the first 4 rows. When I set the focus to the third row (visible on the screen), the FocusSet automatically scrolls the row to be the top row. I would like it to just select the row and not scroll it.


Technical Support Jun 27, 2011 - 11:30 AM

The CExtGridBaseWnd::FocusSet() method allows you to specify false flag in both bEnsureVisibleColumn and bEnsureVisibleRow parameters.