2011-04-07 74 views
0

如何使用編輯框創建多行屬性?我需要一個更多的屬性來顯示多行框中的文本。具有多行編輯框的CMFCPropertyGridProperty

CMFCPropertyGridProperty* pGroup1 = new CMFCPropertyGridProperty(_T("Appearance")); 
pGroup1->AddSubItem(new CMFCPropertyGridProperty(_T("Name"), (_variant_t) _T(""), _T("Specifies the text that will be displayed in the property"))); 
pGroup1->AddSubItem(new CMFCPropertyGridProperty(_T("Comments"), (_variant_t) _T(""), _T("Specifies the text that will be associated with the property"))); 
m_wndPropList.AddProperty(pGroup1); 

回答

0

看來,多行屬性未在MFC屬性網格中實現。您可以使用按鈕創建自定義屬性,並在用戶單擊此按鈕時使用多行編輯控件顯示您自己的對話框。