1.改变对话框的背景色在C…App类中的InitInstance()里添加 SetDialogBkColor(RGB(0,192,0),RGB(0,0,0));2.如果想改变静态文本或单选按钮的背景色可以用你说的那个获得控件ID,然后设置背景色,具体步骤:(1)响应对话框类的WM_CTLCOLOR消息生成OnCtlColor函数(2)为对话框类添加成员变量CBrush m_brush;并在初始化函数中初始化m_brush.CreateSolidBrush(RGB(0,255,0));(3)在OnCtlColor函数中添加代码以改变控件的文字颜色和背景色switch(pWnd->GetDlgCtrlID()){ case(IDC_INPUT):pDC->SetTextColor(RGB(255,0,192));pDC->SetBkMode(TRANSPARENT);return m_brush;break;case(IDC_EDIT1):pDC->SetTextColor(RGB(255,0,0));pDC->SetBkMode(TRANSPARENT);return m_brush;break;case(IDC_CHOICE):pDC->SetTextColor(RGB(