Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DT_SetTextColor problem
#4
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)