Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Using item data with constraints
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using item data with constraints

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

Joined: 14 April 2005
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ssimon Quote  Post ReplyReply Direct Link To This Post Topic: Using item data with constraints
    Posted: 14 April 2005 at 3:11pm

I would like to display a combo box within a CXTPPropertyGridItem and I would like to associate some item data (e.g., DWORD or void*) with each item I add to the combobox list. I presumed I should use GetConstraints() and AddConstraint(), but I can not find any way to associate item data with a constraint. I could maintain my own array of item data and map the constraint index to the index in the array, but if the constraints are sorted I assume the indices will become out of sync with my member array.

With an MFC CComboBox I would simply use SetItemData()/SetItemDataPtr(), but I can not find any like this at all with the propery grid. Does anyone know how I can do this? Is there a completely different approach I need to take for the property grid item? I have been unable to figure this out looking through the samples, help, and forums.

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2005 at 7:49am
It was added in 9.60.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.141 seconds.