Click here to Skip to main content
15,917,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 22:09
professionalJoan M20-Mar-03 22:09 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Stephane Rodriguez.20-Mar-03 22:31
Stephane Rodriguez.20-Mar-03 22:31 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 22:53
professionalJoan M20-Mar-03 22:53 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 22:59
professionalJoan M20-Mar-03 22:59 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M21-Mar-03 4:05
professionalJoan M21-Mar-03 4:05 
AnswerRe: How to avoid this? (HTMLView and Handle leaks) Pin
Neville Franks20-Mar-03 9:34
Neville Franks20-Mar-03 9:34 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 19:45
professionalJoan M20-Mar-03 19:45 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Neville Franks21-Mar-03 0:29
Neville Franks21-Mar-03 0:29 
Hi Joan,
Another simpler way to replace your page is as follows:
1) In your blank page add an id attribue to the body tag. eg:
<body id="mybody">

2) The use this code:
MSHTML::IHTMLDocument2Ptr pDoc( GetHtmlDocument() );
MSHTML::IHTMLElementPtr e;
e = pDoc->Getall()->item( _T("mybody") );
if ( e != NULL  )
{
    e->PutinnerHTML( (LPCSTR)sYourString.GetBuffer() );
    sYourString.ReleaseBuffer();
}

This replaces all the html between the open and close body tags. It should do what you want.

Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M21-Mar-03 1:15
professionalJoan M21-Mar-03 1:15 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M21-Mar-03 3:56
professionalJoan M21-Mar-03 3:56 
GeneralWenn printing the fill function doesn't work Pin
willempipi20-Mar-03 7:40
willempipi20-Mar-03 7:40 
GeneralRe: Wenn printing the fill function doesn't work Pin
Chris Losinger20-Mar-03 8:03
professionalChris Losinger20-Mar-03 8:03 
GeneralRe: Wenn printing the fill function doesn't work Pin
willempipi20-Mar-03 8:33
willempipi20-Mar-03 8:33 
Generalserialize Pin
dudic20-Mar-03 7:13
dudic20-Mar-03 7:13 
GeneralRe: serialize Pin
Anonymous20-Mar-03 8:20
Anonymous20-Mar-03 8:20 
GeneralRe: serialize Pin
dudic20-Mar-03 8:25
dudic20-Mar-03 8:25 
Generaltrapping the enter key Pin
ns20-Mar-03 6:58
ns20-Mar-03 6:58 
GeneralRe: trapping the enter key Pin
Maximilien20-Mar-03 7:14
Maximilien20-Mar-03 7:14 
Generalokay. Thanks Pin
ns20-Mar-03 7:16
ns20-Mar-03 7:16 
Generalworks great! Pin
ns20-Mar-03 8:03
ns20-Mar-03 8:03 
GeneralFile input without whitespace Pin
georgiek5020-Mar-03 6:50
georgiek5020-Mar-03 6:50 
GeneralRe: File input without whitespace Pin
Christian Graus20-Mar-03 10:17
protectorChristian Graus20-Mar-03 10:17 
GeneralRe: File input without whitespace Pin
georgiek5020-Mar-03 12:11
georgiek5020-Mar-03 12:11 
GeneralCorrect syntax for add and move methods for worksheet object Pin
rvicta20-Mar-03 6:38
professionalrvicta20-Mar-03 6:38 
GeneralAdjusting SPDemo Pin
Spamdogg20-Mar-03 6:33
Spamdogg20-Mar-03 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.