Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - How to walk through all items?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to walk through all items?

 Post Reply Post Reply
Author
Message
Martin View Drop Down
Newbie
Newbie
Avatar

Joined: 26 April 2005
Location: Netherlands
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Martin Quote  Post ReplyReply Direct Link To This Post Topic: How to walk through all items?
    Posted: 15 November 2005 at 6:58am

Hello,

I have filled a CXTPPropertyGrid with items, with just one category (parent).

Since all the items are loaded from the database I never know how many items I have in the list.

I now need to walk through the list to get access to each propertygriditem to read its values to write them back to the database.

I tried this:

CXTPPropertyGridItems *pItems = m_wndPropertyGrid.GetCategories();

I get a valid pointer but the itemcount is set to zero.

Is there any way to retrieve a pointer to the CXTPPropertyGridItems class (or similar functionality) in a similar way to access each individual propertygriditem?

TIA,

Martin

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.176 seconds.