![]() |
CXTFlatEdit background color |
Post Reply
|
| Author | |
souren
Newbie
Joined: 05 February 2008 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTFlatEdit background colorPosted: 06 February 2008 at 3:17am |
|
I want to make CXTFlatEdit control with black background and green text color. What is the correct way of doing that?
If I override OnCtlColor and return black brush I only got black text color for the typed text, the rest is default white. Also tried to create class and use SetTheme for control class CXTFlatEditThemeLogWindow : public CXTThemeManagerStyle and override RefreshMetrics but then realized it doesn't have any member for background color. Please advise. Thanks |
|
![]() |
|
souren
Newbie
Joined: 05 February 2008 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 February 2008 at 7:42am |
|
Any ideas?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 February 2008 at 1:12pm |
|
Hi, you need catch WM_CTLCOLOR of parent window. See MSDN it has sample. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
souren
Newbie
Joined: 05 February 2008 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 February 2008 at 1:19pm |
|
That's what I have done as mentioned above.
However, all I got is just black background for the typed text, not for the whole client area of control. Perhaps the other option would be to derive class from CXTFlatEdit and override onpaint. |
|
![]() |
|
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 |