![]() |
Markup CRichEditCtrl |
Post Reply
|
| Author | |
gorski
Newbie
Joined: 06 July 2006 Location: Poland Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: Markup CRichEditCtrlPosted: 28 May 2008 at 5:39am |
|
I created my MarkupRichEdit control just as you did it with CMarkupStatic in MarkupSample:
class MarkupRichEdit : public CRichEditCtrl, public CXTPMarkupContext { public: MarkupRichEdit(); virtual ~MarkupRichEdit(); void SetMarkupText(LPCTSTR lpszMarkup); protected: DECLARE_MESSAGE_MAP() BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult); afx_msg void OnPaint(); CXTPMarkupUIElement* m_pUIElement; }; It looks fine, but: 1. I can't select any text in that control. Is there any way to make a selection of the text in any markup control? 2. When I add something more than control could show, I'd like the control to scroll to the end. How can I force the ScrollViewer to scroll to the end? 3. Can you give me any hints how to print the content of a markup control? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 May 2008 at 7:33am |
|
Hi, Don't mix RichEdit and Markup. it will work weird. use CStatic as host.
1. Sorry, now there is no tag that support it.
2. If you add in code call pScrollView->SetScrollPos(SB_VERT, pos);
3. Check Code of our MarkupPad sample.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |