Writing a Hex Editor in MFC

1.4k views Asked by At

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.

1

There are 1 answers

0
Jonathan Wood On BEST ANSWER

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.