The control is a fairly standard Hex Editor, with selection support, clipboard and unlimited undo. It uses memory mapped files so it's possible to work with extremely large files without putting constraints on the operating system. It displays data as BYTE, WORD or DWORD sized values, and can operate in read-only mode as well.
The editor itself is a custom-drawn window - not deriving from
any of the standard Window controls (the
in particular); with its own selection, undo and caret-management.
How to use itThe sample demonstrates how to use the control. It's just a standard control implementation - no magic tricks here!
The C++ source file that contains the necessary logic to implement the "universe" has about 800 lines of code, including a generous number of comments.
Source Code DependenciesMicrosoft Visual C++ 6.0
Microsoft WTL 7.5 Library
|Source Code and sample (48 Kb)|