Please give advice or comments
CodePudding user response:
Can try CMFCPropertyGridProperty derived from a new class, and then reload CreateCombo function, so that you can create your own ComboBox,
The class CMyMFCPropertyGridProperty: public CMFCPropertyGridProperty
{
Public:
CMyMFCPropertyGridProperty (const CString& StrName, const COleVariant& VarValue, LPCTSTR lpszDescr=NULL)
: CMFCPropertyGridProperty (strName, varValue, lpszDescr, 0, NULL, NULL, NULL)
{
}
Virtual CComboBox * CreateCombo (CWnd * pWndParent, CRect the rect)
{
ASSERT_VALID (this);
The rect. Bottom=the rect. Top + 400;
CMyComboBox * pWndCombo=new CMyComboBox;//CMyComboBox derived from CComboBox
if (! PWndCombo - & gt; Create (WS_CHILD | CBS_NOINTEGRALHEIGHT | CBS_DROPDOWN | WS_VSCROLL,
The rect, pWndParent AFX_PROPLIST_ID_INPLACE))
{
The delete pWndCombo;
return NULL;
}
Return pWndCombo;
}
};
CodePudding user response:
The building Lord, how are you,
I wrote 2019 year-end summary, free also hope to reply, thank you,
Post: [topic: work life] 2019 working summary - red thin green manure, bumpy still