2011-04-07 73 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属性网格中实现。您可以使用按钮创建自定义属性,并在用户单击此按钮时使用多行编辑控件显示您自己的对话框。