Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - m_nTopIndex in CXTPPropertyGridUpdateContext
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

m_nTopIndex in CXTPPropertyGridUpdateContext

 Post Reply Post Reply
Author
Message
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post Topic: m_nTopIndex in CXTPPropertyGridUpdateContext
    Posted: 01 February 2008 at 9:36am
Hi, currently the algorithm in CXTPPropertyGrid::BeginUpdate/EndUpdate and SaveExpandingState for storing/restoring the scroll position/top index of the property grid works by storing the ID of the top-most item. However in many cases this item may not have a ID (e.g. child items of PropertyGridItemFlags, etc.) so in this case the scroll position is reset to 0.
 
I think you should add a flag that the top-index is stored/restored "raw", i.e. just using PropertyGrid->GetTopIndex/SetTopIndex. I really don't like to modify the toolkit library sources. BeginUpdate/EndUpdate is not even virtual.....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.