
這種下拉帶位圖的組合框怎么實作,求大神知道一下
uj5u.com熱心網友回復:
CMFCPropertyGridColorProperty Classuj5u.com熱心網友回復:
這里只看見普通的文字下拉框,沒有帶位圖的uj5u.com熱心網友回復:
用向導生成的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);

uj5u.com熱心網友回復:
謝謝,這中下拉出來的是下面的這種效果:
不是我想要的那種
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/37052.html
標籤:界面
