ダイアログの背景色変更 ・親ウィンドウのWM_CTLCOLORDLGで以下を記述 case WM_CTLCOLORDLG: { HWND hCtrl = (HWND)lParam; if(hCtrl == hDlg) { return (LRESULT)m_hBrush_BkColor; // 背景色の色 } break; } ・戻り値は保存していたブラシでないとリークを起こす スタティックコントロールの背景色変更 ・親ウィンドウのWM_CTLCOLORSTATICで以下を記述 case WM_CTLCOLORSTATIC: { HDC hDC = (HDC)wParam; HWND hCtrl = (HWND)lParam; if(hCtrl == GetDlgItem(hDlg, IDC_STATIC)) // スタティックウィンドウのID { SetBkMode(hDC, TRANS