OnDrawItemConstraint Question |
Post Reply |
Author | |
Jay91
Newbie Joined: 04 January 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 04 January 2006 at 7:26am |
Hello .. I have some question for OnDrawItemConstraint I want to make Color Combo Control using CXTPPropertyGridItem...and Insert color Rectangle and string for each of the combo list item.. In Sample source, make Combo list item using Bitpmap..but i have color rectangle too much make Bitmap.. I see the manual, and find OnDrawItemConstraint... I think that it's suitable code....but don't Active... How can i Make that Control using CXTPPropertyGridItem Please Help me...!!! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, Copy this code to your application: class CPropertyGridItemColorList : public CXTPPropertyGridItemColor virtual void OnInplaceButtonDown() virtual void OnValueChanged(CString strValue)
};
usage: pSettings->AddChildItem(new CPropertyGridItemColorList(_T("BackColor"), clr)); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Jay91
Newbie Joined: 04 January 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thank you...oleg but Your Source occurs compile error.. error C2039: 'OnDrawItemConstraint' : 'CXTPPropertyGridItemColor' is not member... Why occur compile error ? my version is 9.81..... I don't know why occur error.... Please Help me.....
|
|
Jay91
Newbie Joined: 04 January 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thank you...oleg I solve my problem for your help It works Great...
|
|
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 |