Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Markup CRichEditCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup CRichEditCtrl

 Post Reply Post Reply
Author
Message
gorski View Drop Down
Newbie
Newbie
Avatar

Joined: 06 July 2006
Location: Poland
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote gorski Quote  Post ReplyReply Direct Link To This Post Topic: Markup CRichEditCtrl
    Posted: 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?


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.