Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About Splitter and RichEditView

Status
Not open for further replies.

cheraghchi

Programmer
May 28, 2001
3
CZ
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top