i build a class for create a static control(label). and i't cool. but why the SetTextColor() and SetBkColor() are ignored?
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc = BeginPaint(inst->hwnd, &ps);
// TODO: Add any drawing code here...
SetBkColor(hdc, RGB(0,255,0));
SetBkMode(hdc,TRANSPARENT);
SetWindowText(inst->hwnd,"hello");
EndPaint(inst->hwnd, &ps);
}
the inst is the class(label) pointer instance.
by some reason is ignored and i don't understand why :(
can anyone dvice me, please?