Print Page | Close Window

CXTPComboBox button color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=19837
Printed Date: 28 November 2024 at 4:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPComboBox button color
Posted By: cpede
Subject: CXTPComboBox button color
Date Posted: 04 June 2012 at 6:13am
How do I change the color of the drop-down button in a CXTPComboBox ?
 
I also want to use the Flat style.
 
When using CXTPButton I just overwrite the virtual GetButtonBackColor(), but it seems that
the CXTPComboBox is made in a totally different way :-( Consistency would be nice...
 
-cpede


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: ABuenger
Date Posted: 11 June 2012 at 8:38pm
Originally posted by cpede cpede wrote:

How do I change the color of the drop-down button in a CXTPComboBox ?


COLORREF m_clrButtonPressed;
COLORREF m_clrButtonHot;
COLORREF m_clrButtonNormal;

COLORREF m_clrButtonArrowPressed;
COLORREF m_clrButtonArrowHot;
COLORREF m_clrButtonArrowNormal;

Originally posted by cpede cpede wrote:


I also want to use the Flat style.


SetFlatStyle(TRUE);

Hope that helps, Andre.



-------------
Codejock support



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net