Hi,
i have a dialog and a static text on the dialog. when i create the static on the dialog, the background for the static text is different so i capture WM_CTLCOLORSTATIC message and coded like below but still it does not work.
any ideas?
==========
hCaption1 is the handle of the static control
==========
case WM_CTLCOLORSTATIC:
hwndtemp = (HWND)lParam;
hdc = (HDC)wParam;
if(hwndtemp == hCaption1)
{
SetTextColor(hdc,RGB(0,255,255));
SetBkColor(hdc,RGB(0,0,0));
}
break;
i have a dialog and a static text on the dialog. when i create the static on the dialog, the background for the static text is different so i capture WM_CTLCOLORSTATIC message and coded like below but still it does not work.
any ideas?
==========
hCaption1 is the handle of the static control
==========
case WM_CTLCOLORSTATIC:
hwndtemp = (HWND)lParam;
hdc = (HDC)wParam;
if(hwndtemp == hCaption1)
{
SetTextColor(hdc,RGB(0,255,255));
SetBkColor(hdc,RGB(0,0,0));
}
break;