|T O P I C R E V I E W
||Posted - 06/14/2022 : 02:03:48 AM
I placed a groupbox in a popupwindow, and used custom colors.
The border-color of this groupbox is in de textcolor, but the text in de groupbox is still black.
This can be repeated in the popupDemo sample.
Place a groupbox in de IDD_DIALOG1 use Red (Custom) or Black.
The color of the text in the groupbox isn't the same as the text-color of the normal statics in the popup.
Is this a bug or how can I give this text the same color as its border?
|2 L A T E S T R E P L I E S (Newest First)
||Posted - 06/14/2022 : 06:32:07 AM
Thanks for the answer,
This kind of works, only when fading out, the text becomes black
||Posted - 06/14/2022 : 03:31:54 AM
By default, the Popup Window supports the following controls:
* static text
and for these controls only, the popup window changes colors.
For other controls, you need to specify the custom colors matched to the popup window color theme. E.g., if you have a group (CBCGPGroup) in CBCGPPopupDlg-derived class:
m_wndGroup.m_clrText = m_pParentPopup->GetTextColor(this, FALSE, FALSE);