Click here to Skip to main content
15,892,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl Performance Pin
David Crow12-Jul-06 4:38
David Crow12-Jul-06 4:38 
QuestionHow to output html of url into a RichTextBox in visual c++ 6 Pin
method00711-Jul-06 6:54
method00711-Jul-06 6:54 
AnswerRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
led mike11-Jul-06 6:57
led mike11-Jul-06 6:57 
QuestionRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
David Crow11-Jul-06 6:58
David Crow11-Jul-06 6:58 
AnswerRe: How to output html of url into a RichTextBox in visual c++ 6 [modified] Pin
method00711-Jul-06 7:18
method00711-Jul-06 7:18 
QuestionRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
David Crow11-Jul-06 7:53
David Crow11-Jul-06 7:53 
AnswerRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
method00711-Jul-06 8:38
method00711-Jul-06 8:38 
GeneralRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
David Crow11-Jul-06 9:04
David Crow11-Jul-06 9:04 
method007 wrote:
...so far i just get unrleated answer and no example!!!


I've given you more than enough information to solve your problem. As a matter of fact, you've been given several solutions to the same problem. That's very gratuitous in my book.

This retrieves all of the <FONT> elements:

IDispatch pDisp2 = m_ctrlBrowser.GetDocument(); // m_ctrlBrowser is a CWebBrowser2 object<br />
pDisp2->QueryInterface(IID_IHTMLDocument2, (void **) &ptrHTMLDocument); // ptrHTMLDocument is a IHTMLDocument2*<br />
BSTR pBURL = SysAllocStringByteLen(NULL, 1024);<br />
ptrHTMLDocument->get_URL(&pBURL);<br />
ptrHTMLDocument->get_all(&ptrHTMLElements); // ptrHTMLElements is a IHTMLElementCollection*<br />
ptrHTMLElements->get_length(&lElements); // lElements is a long<br />
VARIANT varName;<br />
varName.vt    = VT_BYREF | VT_I1;<br />
varName.pcVal = "FONT";<br />
VARIANT varIndex;<br />
varIndex.vt   = VT_I4;<br />
varIndex.lVal = 1;<br />
ptrHTMLElements->item(varName, varIndex, &pDisp3); // pDisp3 is a IDispatch<br />
pDisp3->QueryInterface(IID_IHTMLElement, (void **) &ptrHTMLElement); // ptrHTMLElement is a IHTMLElement*<br />
ptrHTMLElement->get_innerHTML(&pBURL);<br />
ptrHTMLDocument->Release();



"The largest fire starts but with the smallest spark." - David Crow

"Judge not by the eye but by the heart." - Native American Proverb


GeneralRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
method00711-Jul-06 9:38
method00711-Jul-06 9:38 
GeneralRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
David Crow11-Jul-06 10:07
David Crow11-Jul-06 10:07 
GeneralRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
method00711-Jul-06 10:08
method00711-Jul-06 10:08 
GeneralRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
David Crow11-Jul-06 10:30
David Crow11-Jul-06 10:30 
GeneralRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
Maximilien11-Jul-06 7:55
Maximilien11-Jul-06 7:55 
GeneralRe: How to output html of url into a RichTextBox in visual c++ 6 Pin
method00711-Jul-06 9:36
method00711-Jul-06 9:36 
QuestionCan't Detect Tab Control Events Pin
BuckBrown11-Jul-06 6:46
BuckBrown11-Jul-06 6:46 
AnswerRe: Can't Detect Tab Control Events Pin
eusto11-Jul-06 8:28
eusto11-Jul-06 8:28 
Question[MFC] Creation of a new control class Pin
alitokmen11-Jul-06 6:09
alitokmen11-Jul-06 6:09 
AnswerRe: [MFC] Creation of a new control class Pin
Jun Du11-Jul-06 9:23
Jun Du11-Jul-06 9:23 
QuestionRe: [MFC] Creation of a new control class Pin
alitokmen11-Jul-06 9:43
alitokmen11-Jul-06 9:43 
AnswerRe: [MFC] Creation of a new control class Pin
PJ Arends11-Jul-06 10:46
professionalPJ Arends11-Jul-06 10:46 
AnswerRe: [MFC] Creation of a new control class Pin
ThatsAlok11-Jul-06 21:55
ThatsAlok11-Jul-06 21:55 
AnswerRe: [MFC] Creation of a new control class Pin
PJ Arends12-Jul-06 7:02
professionalPJ Arends12-Jul-06 7:02 
JokeRe: [MFC] Creation of a new control class Pin
alitokmen12-Jul-06 11:24
alitokmen12-Jul-06 11:24 
AnswerRe: [MFC] Creation of a new control class Pin
alitokmen12-Jul-06 6:33
alitokmen12-Jul-06 6:33 
GeneralOLE process still using directory after releasing handler Pin
hairy_hats11-Jul-06 5:37
hairy_hats11-Jul-06 5:37 

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.