An app. of mine has a bitmap background instead of the default (or any other) solid color. The dialog has a checkbox and its text should be displayed on a transparent background (as if it were printed on the photograph itself). I found this:
This works, until ... the text is dynamically changed and the new text is placed without deleting the old string, which makes it de facto unreadable. Any idea how to overcome this?
Code:
CASE %WM_CTLCOLORSTATIC SELECT CASE GetDlgCtrlId(CBLPARAM) CASE %IDC_NameOfControl SetBkMode CBWPARAM, %TRANSPARENT SetTextColor CBWPARAM, %BLACK FUNCTION = GetStockObject(%NULL_BRUSH) CASE ELSE ' don't change all the other controls EXIT FUNCTION END SELECT
Comment