修改对话框及各控件背景色

修改对话框及各控件背景色
HDC hdc  =  (HDC)wParam;

case  WM_CTLCOLORMSGBOX:
case  WM_CTLCOLOREDIT:
case  WM_CTLCOLORLISTBOX:
case  WM_CTLCOLORBTN:
case  WM_CTLCOLORDLG:
case  WM_CTLCOLORSCROLLBAR:
case  WM_CTLCOLORSTATIC:
    SetBkMode(hdc, TRANSPARENT );
    
return  (LONG)CreateSolidBrush(RGB( 238 245 255 ));

你可能感兴趣的:(修改对话框及各控件背景色)