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

Proper CHtmlView usage

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

Joined: 01 April 2005
Location: Canada
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote bevpet Quote  Post ReplyReply Direct Link To This Post Topic: Proper CHtmlView usage
    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

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: 17 May 2005 at 6:25am

in OnBeforeNavigate2 try to set

*bCancel = TRUE;

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
bevpet View Drop Down
Newbie
Newbie
Avatar

Joined: 01 April 2005
Location: Canada
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote bevpet Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2005 at 1:15pm

Hi Oleg,

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

thanks

Peter

Back to Top
bevpet View Drop Down
Newbie
Newbie
Avatar

Joined: 01 April 2005
Location: Canada
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote bevpet Quote  Post ReplyReply Direct Link To This Post 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

 

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.048 seconds.