![]() |
owner draw combobox in a property grid |
Post Reply
|
| Author | |
vjedlicka
Senior Member
Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Quote Reply
Topic: owner draw combobox in a property gridPosted: 20 December 2007 at 4:02pm |
|
Hello, I need to add an owner draw combobox with several options to a property grid. How can I convert CXTPPropertyGridItemConstraints to a owner draw combobox? Thanks for advice
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 December 2007 at 12:57am |
|
Him
In your item override
void CXTPPropertyGridItem::OnDrawItemConstraint(CDC* pDC, CXTPPropertyGridItemConstraint* pConstraint, CRect rc, BOOL bSelected)
method.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
vjedlicka
Senior Member
Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 December 2007 at 12:55pm |
|
Thank you!
One more question:
When I create my class inherited from CXTPPropertyGridItem, let us say MyCXTPPropertyGridItem, how do I carry out the subclassing? Can I simply cast like this?
MyCXTPPropertyGridItem* pItemLanguage = (MyCXTPPropertyGridItem)pVersion->AddChildItem(new CXTPPropertyGridItem(_T("Language"), _T("English (United States)")));
|
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 December 2007 at 3:33am |
|
Hi;
You have to do it this way:
MyCXTPPropertyGridItem* pItemLanguage = (MyCXTPPropertyGridItem)pVersion->AddChildItem(new MyCXTPPropertyGridItem(_T("Language"), _T("English (United States)")));
|
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
vjedlicka
Senior Member
Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 December 2007 at 10:39am |
|
Thanks
Vaclav
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |