![]() |
Proper CHtmlView usage |
Post Reply ![]() |
Author | |
bevpet ![]() Newbie ![]() ![]() Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() Posted: 16 May 2005 at 9:04pm |
Hi, i'm trying to mimic the visual studio help system, but seem to be running into a wall. i'm using the dynamic help sample pane, i've set hyperlinks for the help text in the pane. in the CDyanamicHelpView i've setup the html methods (onbeforenav... etc) in the onbeforenavigate2(...), i grab the url and pass it to my browserview class and it displays no problem. the only quirk i'm having, which i understand why its happening , is the link i clicked on is also displaying in the cdynamichelp class pane. i don't want it to display there. is there a special way i should be retrieving the text that was clicked on so i can grap the url associated with it ? thanks in advance Peter |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
in OnBeforeNavigate2 try to set *bCancel = TRUE; |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
bevpet ![]() Newbie ![]() ![]() Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg, I think i tried that, but i try/verify again. thanks Peter |
|
![]() |
|
bevpet ![]() Newbie ![]() ![]() Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
{ ...... theApp.OnGotoURL(lpszURL); CHtmlView::OnBeforeNavigate2(lpszURL, nFlags, lpszTargetFrameName, baPostedData, lpszHeaders, pbCancel); *pbCancel = TRUE; } thank did the trick, thanks again Peter
|
|
![]() |
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 |