![]() |
How to get CXTPMarkupHyperlink Text value? |
Post Reply ![]() |
Author | |
WindFlashing ![]() Groupie ![]() Joined: 21 March 2006 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() Posted: 04 July 2008 at 9:09pm |
See MarkupMample: void CMarkupSampleDlg::OnHyperlinkClick(CXTPMarkupObject* pSender, CXTPMarkupRoutedEventArgs* pArgs)
{ if (pSender->IsKindOf(MARKUP_TYPE(CXTPMarkupHyperlink))) { AfxMessageBox(_T("Hyperlink Clicked")); pArgs->SetHandled();
} } How to get Hyperlink text?
eg,
<Hyperlink Tag='DoNothing' ToolTip='This is Link'>Link</Hyperlink>
I want to get 'Link' to handle in OnHyperlinkClick().
Thanks.
|
|
![]() |
|
mnowaczy ![]() Groupie ![]() Joined: 16 June 2008 Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() |
Got the same problem and solved like this:
((CXTPMarkupRun*)pObj->GetInlines()->GetInline(0))->GetText(); where pObj is CXTPMarkupHyperlink |
|
![]() |
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 |