01-29-2013, 07:23 PM
If DT_SetTextColor used, QM private dialog functions on WM_CTLCOLORxx have to return a brush, therefore they don't call your dialog procedure.
Without DT_SetTextColor, after changing control text probably need to call InvalidateRect hDlg 0 1. It redraws the dialog.
Or you can draw text with text API, eg DrawTextEx. Not so easy. Need to subclass controls and draw text on WM_PAINT. Then don't need static controls.
Without DT_SetTextColor, after changing control text probably need to call InvalidateRect hDlg 0 1. It redraws the dialog.
Or you can draw text with text API, eg DrawTextEx. Not so easy. Need to subclass controls and draw text on WM_PAINT. Then don't need static controls.