|  | 
| CXTPControlComboBox | 
| Post Reply   | 
| Author | |
| andreaswill   Newbie   Joined: 29 September 2004 Status: Offline Points: 4 |  Post Options  Thanks(0)  Quote  Reply  Topic: CXTPControlComboBox Posted: 29 September 2004 at 1:01pm | 
| Hallo, 
 i have a problem with the CXTPControlComboBox. I inserted it into a CXTPToolbar. When disabling the control, no content is shown in the combobox. m_ComboRight = (CXTPControlComboBox*CXTPControlComboBox::CreateObject(); 
 I want that 'block' is shown when the Combobox is in disabled state.What do i have to do ? 
 Thanks Andreas 
 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 30 September 2004 at 12:15am | 
| you need to add custom paint maanger: 
 class CCustomPaintManager : public CXTPOfficeTheme // CXTPOffice2003Theme   if (bDraw && !pControlCombo->GetEnabled() && !pControlCombo->GetEditCtrl()) 
    CRect rcText(rc); rcText.DeflateRect(3, 1, rcBtn.Width(), 1);   return sz; }; 
 
 usage: XTPPaintManager()->SetCustomTheme(new CCustomPaintManager()); | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| 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 |