C++ Programming
07-28-2009, 03:52 PM
Hi guys
I have a LPCTSTR property in an activex control I'm designing. (I can't change the property to CString or something else unfortunately)
How do I exchange this property with a EditBox control in the property box? I can't just use a CString, even though DDP_Text function asks for a CString type variable. .
m_CaptionText is CString type *value* variable, set for the EditBox control (IDC_CAPTIONTEXT). CaptionText is the property name.
DDP_Text(pDX, IDC_CAPTIONTEXT, m_CaptionText, _T("CaptionText"));
DDX_Text(pDX, IDC_CAPTIONTEXT, m_CaptionText);
Any help would be highly appreciated.
Cheers
I have a LPCTSTR property in an activex control I'm designing. (I can't change the property to CString or something else unfortunately)
How do I exchange this property with a EditBox control in the property box? I can't just use a CString, even though DDP_Text function asks for a CString type variable. .
m_CaptionText is CString type *value* variable, set for the EditBox control (IDC_CAPTIONTEXT). CaptionText is the property name.
DDP_Text(pDX, IDC_CAPTIONTEXT, m_CaptionText, _T("CaptionText"));
DDX_Text(pDX, IDC_CAPTIONTEXT, m_CaptionText);
Any help would be highly appreciated.
Cheers