cheraghchi
Programmer
Hi everybody!
I've a problem with MS-VC++ 6.0, I added an splitter to my MDI-Child application's child frame. (Just the same
as "viewex" VC++ sample, and using Project|Add to project|Components menu item). I added two views to my vertical
static-splitter, the left side is a CTreeView view, and the right side is a CRichEditView view. The problem is: How
can I handle the messages which these two views receive? (such as WM_KEYDOWN for the richedit view). The ClassWizard
does not help me in this case, I tried to derive a new class from CTreeView, add handlers to this view and add an
instance of the derived view to my splitter wnd. It worked perfectly, But I cannot derive a class from CRichEditView
(It is not available in ClassWizard's "Add class" dialog box. What should I do? It's a major problem
Another thing, how can I automatically move the caret in a RichEdit control? should I modify SelStart and SelEnd?
I'm looking forward for reveiving a prompt answer
Thanks
M.CH
I've a problem with MS-VC++ 6.0, I added an splitter to my MDI-Child application's child frame. (Just the same
as "viewex" VC++ sample, and using Project|Add to project|Components menu item). I added two views to my vertical
static-splitter, the left side is a CTreeView view, and the right side is a CRichEditView view. The problem is: How
can I handle the messages which these two views receive? (such as WM_KEYDOWN for the richedit view). The ClassWizard
does not help me in this case, I tried to derive a new class from CTreeView, add handlers to this view and add an
instance of the derived view to my splitter wnd. It worked perfectly, But I cannot derive a class from CRichEditView
(It is not available in ClassWizard's "Add class" dialog box. What should I do? It's a major problem
Another thing, how can I automatically move the caret in a RichEdit control? should I modify SelStart and SelEnd?
I'm looking forward for reveiving a prompt answer
Thanks
M.CH