Search code examples
mfchex-editors

Writing a Hex Editor in MFC


I intend to write a hex editor in MFC for a vertical application. The application does several things but one requirement is to view and edit raw messages in both Hex and ASCII form, just like what hex editors do.

Will it be too much work to start extending a CView class? Does it make sense to extend CEdit control?

Of course, I'll need to implement scrolling, text selection, cut-copy-paste and caret movement as the minimum required features.


Solution

  • I've posted source code to do exactly this in my article MFC Hex Editor Control.

    It's older but should be a perfect starting point for making any customizations.