The most recent changes cause an exception in CHexCtrl::Create() when the creation mode is
CREATE_CHILD. This doesn't happen in the Sample program because it uses CREATE_CUSTOMCTRL and this skips the call the CWnd::CreateEx().
The exception occurs because IsDataSet() is called before m_fCreated is set to TRUE.
The most recent changes cause an exception in CHexCtrl::Create() when the creation mode is CREATE_CHILD. This doesn't happen in the Sample program because it uses CREATE_CUSTOMCTRL and this skips the call the CWnd::CreateEx().
The exception occurs because IsDataSet() is called before m_fCreated is set to TRUE.