![]() |
Custom Static part of CXTPControlCombo |
Post Reply
|
| Author | |
Dmitry
Groupie
Joined: 28 November 2004 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Topic: Custom Static part of CXTPControlComboPosted: 17 June 2005 at 3:47am |
|
Hi,
How does one customize what is drawn in the non-list, ie the static portion of a CXTPControlComboBox? For example, in Word, the "Line Style" combo shows lines in both drop-list and in the static part on the toolbar: (The combo box has no edit control). The customization of the drop-list part is shown in the CustomThemes demo (CControlComboBoxCustomDraw), but the static control is not customised. Regards, Dmitry |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 June 2005 at 6:58am |
|
We added virtual void CXTPControlComboBox::DrawStaticText(CDC* pDC, CRect rcText) pDC->SetTextColor(GetXtremeColor(COLOR_WINDOWTEXT)) ;
you will be able to override it for next release, patch your sources if you don;t want wait next release: in XTPOfficeTheme.cpp replace this code to pControlCombo->DrawStaticText(pDC, rcText);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Dmitry
Groupie
Joined: 28 November 2004 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 June 2005 at 7:51pm |
|
Thanks very much!
|
|
![]() |
|
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 |