Print Page | Close Window

Proper CHtmlView usage

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2235
Printed Date: 13 July 2025 at 11:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Proper CHtmlView usage
Posted By: bevpet
Subject: Proper CHtmlView usage
Date 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




Replies:
Posted By: Oleg
Date Posted: 17 May 2005 at 6:25am

in OnBeforeNavigate2 try to set

*bCancel = TRUE;



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: bevpet
Date Posted: 18 May 2005 at 1:15pm

Hi Oleg,

I think i tried that, but i try/verify again.

thanks

Peter



Posted By: bevpet
Date Posted: 18 May 2005 at 1:26pm

Hi Oleg,

 i placed the *cancel after the onb4nav2... never thought to put it after :

{

......

theApp.OnGotoURL(lpszURL);

CHtmlView::OnBeforeNavigate2(lpszURL, nFlags, lpszTargetFrameName, baPostedData, lpszHeaders, pbCancel);

*pbCancel = TRUE;

}

thank did the trick,

thanks again Peter

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net