jovibor / HexCtrl

Fully-featured Hex Control written in C++/MFC.
Other
167 stars 58 forks source link

Exception in CHexCtrl::Create() #18

Closed datasynergyuk closed 4 years ago

datasynergyuk commented 4 years ago

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.