这种下拉带位图的组合框怎么实现,求大神知道一下

解决方案 »

  1.   

    CMFCPropertyGridColorProperty Class
      

  2.   

    用向导生成的MFC SDI 或 MDI 中就有颜色的示例 CMFCPropertyGridColorProperty* pColorProp = new CMFCPropertyGridColorProperty(_T("窗口颜色"), RGB(210, 192, 254), NULL, _T("指定默认的窗口颜色"));
    pColorProp->EnableOtherButton(_T("其他..."));
    pColorProp->EnableAutomaticButton(_T("默认"), ::GetSysColor(COLOR_3DFACE));
    pGroup3->AddSubItem(pColorProp);