We host dialog boxes using the resource editor. So to speak, I have a RichEditCtrl called IDC_RICH. And I want to associate it with an instance of a custom class CMyRichEditCtrl : CRichEditCtrlwithout losing the ability to set properties in it in the resource editor.
Which is the right way? You can, of course, get some functionality by creating a DDX-related variable and changing the type to CMyRichEditCtrl. But in some cases, I see people calling code like:
m_Rich.SubclassDlgItem(IDC_RICH, this));
Who cares?
EDIT: One of the problems I see is that when I override the Create (Ex) methods, they are not called. Does it look like the control has already been created by the time my object is bound to the resource identifier, pehaps?
source
share