CTextEdit editing colors?

Is there a way to control the background and foreground colors of the CTextEdit control? Our edit controls look fine displaying their values, but some users are having trouble reading them when selecting and editing the values. (Is this controlled by the user’s system highlight color?)

It does indeed appear to be controlled by the system, at least to some extent. Cubase and Logic use the system’s highlight color, which by default is a pale color that nearly matches our blue LED-like font colors (on black backgrounds normally), so when the text is selected, it becomes hard to see. Studio One, on the other hand, appears to change the edit control behavior somehow, so that the user’s highlight color gets set as the foreground color when the text is selected. So if the user selects a highlight color which contrasts nicely with our font color for Cubase, then in Studio One it may become harder to read! I don’t see any code in the SDK where we could step in and change the platform-specific edit control behavior, though.

We have the same problem here. I didn’t find a solution about the background, so we simply commented the part setting the Text color, keeping it black. This way, it’s can be easily read. When edited, the text is then colored by our GUI settings.