i continue with some problems with windows properties
how can i change the window backcolor?
Code:
//.............
HBRUSH g_hbrBackground = NULL;
//...............
//inst is the class instance pointer
case WM_CTLCOLORSTATIC:
{
if ( inst->blnTransparent == true)
{
SetTextColor((HDC)wParam, inst->clrTextColor);
SetBkMode( (HDC)wParam, TRANSPARENT);
return (LRESULT) GetStockObject(NULL_BRUSH);
}
else
{
DeleteObject(g_hbrBackground);
SetTextColor((HDC)wParam, inst->clrTextColor);
SetBkColor((HDC)wParam,inst->clrBackColor);
SetBkMode((HDC)wParam, TRANSPARENT);
g_hbrBackground = CreateSolidBrush(inst->clrBackColor);
return (LONG)g_hbrBackground;
}
}
break;