Print Page | Close Window

CXTFlatEdit background color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9506
Printed Date: 14 November 2025 at 7:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTFlatEdit background color
Posted By: souren
Subject: CXTFlatEdit background color
Date Posted: 06 February 2008 at 3:17am
I want to make forum_posts.asp?TID=9503 - 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



Replies:
Posted By: souren
Date Posted: 07 February 2008 at 7:42am
Any ideas?


Posted By: Oleg
Date 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


Posted By: souren
Date 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 forum_posts.asp?TID=9503 - CXTFlatEdit and override onpaint.



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