Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPComboBox button color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPComboBox button color

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: CXTPComboBox button color
    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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.