0

編集ボックスで複数行のプロパティを作成するには? 複数行のボックスにテキストを表示するプロパティがもう 1 つ必要です。

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);
4

2 に答える 2

0

MFCプロパティグリッドには複数行のプロパティが実装されていないようです。ボタンを使用してカスタムプロパティを作成し、ユーザーがこのボタンをクリックしたときに複数行の編集コントロールを使用して独自のダイアログを表示できます。

于 2011-05-02T18:08:35.327 に答える