First off, great control! It's making my life easier at this very moment. :)
A couple of things. First, I use this control in a splitter window. The problem is if I have a lot of data in the edit control and I shorten the pane, no vertical scrollbar appears. To remedy this, I wrote:
void CHexEdit::OnSize(UINT nType, int cx, int cy)
// Cause the scrollbars to appear if necessary.
m_bUpdate = TRUE;
CEdit::OnSize(nType, cx, cy);
The second thing is I noticed the vertical scrollbar wasn't being calculated correctly. If one line of text is off the screen you cannot scroll down to it. To fix it, modify the two lines shown here in void CHexEdit::UpdateScrollbars()
I need to use the HexEdit in my visual basic code. I registerd the OCX, now when I call SetData, I get error while compiling ,
"Function or interface marked as restricted, or function uses automation type not supported in Visual basic.