Click here to Skip to main content
15,925,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class member inlining...??? Pin
alex.barylski5-Feb-02 10:58
alex.barylski5-Feb-02 10:58 
AnswerRe: Class member inlining...??? Pin
Nemanja Trifunovic5-Feb-02 6:22
Nemanja Trifunovic5-Feb-02 6:22 
GeneralRe: Class member inlining...??? Pin
alex.barylski5-Feb-02 9:57
alex.barylski5-Feb-02 9:57 
GeneralHeap try/catch technique Pin
alex.barylski4-Feb-02 21:09
alex.barylski4-Feb-02 21:09 
GeneralRe: Heap try/catch technique Pin
Joaquín M López Muñoz4-Feb-02 21:36
Joaquín M López Muñoz4-Feb-02 21:36 
GeneralRe: Heap try/catch technique Pin
alex.barylski4-Feb-02 21:40
alex.barylski4-Feb-02 21:40 
GeneralRe: Heap try/catch technique Pin
Joaquín M López Muñoz4-Feb-02 22:01
Joaquín M López Muñoz4-Feb-02 22:01 
GeneralA problem with "find" operations in an application with CHtmlView Pin
AVR4-Feb-02 20:53
AVR4-Feb-02 20:53 
In an application, I have used a class derived from CHtmlView. I wish to perform the typical find operations on it i.e. find a word and highlight it, find the next occurrence of the word, find the previous occurrence of the word.

Whenever I use the function findText of IHTMLTxtRange, with the parameter "forward " set to a +ve value, the forward search occurs correctly. But if I use the function with a negative value of forward, then the function doesnt work. (although it should,as per the documentation)

WHAT MAY BE THE REASON?

HERE IS A CODE SNIPPET OF WHAT I DID:

IHTMLDocument2 *lpHtmlDocument = NULL;
LPDISPATCH lpDispatch = NULL;

lpDispatch = m_pHelpDataView->GetHtmlDocument();
ASSERT(lpDispatch);

lpDispatch->QueryInterface(IID_IHTMLDocument2, (void**)&lpHtmlDocument);
ASSERT(lpHtmlDocument);

lpDispatch->Release();

IHTMLElement *lpBodyElm;
IHTMLBodyElement *lpBody;
IHTMLTxtRange *lpTxtRange;

lpHtmlDocument->get_body(&lpBodyElm);
ASSERT(lpBodyElm);
lpHtmlDocument->Release();
lpBodyElm->QueryInterface(IID_IHTMLBodyElement,(void**)&lpBody);

ASSERT(lpBody);
lpBodyElm->Release();
lpBody->createTextRange(&lpTxtRange);
ASSERT(lpTxtRange);
lpBody->Release();

CComBSTR search(FindName.GetLength()+1,(LPCTSTR)FindName);
bool bFound,bTest;
long t;

***lpTxtRange->findText((BSTR)search,forward,bMatchCase+bMatchWholeWord,(VARIANT_BOOL*)&bFound);

........

***lpTxtRange->select();

Generalwhen the owner window of caret is inactive Pin
AnonymousBabe@usa.net4-Feb-02 20:21
AnonymousBabe@usa.net4-Feb-02 20:21 
GeneralRe: when the owner window of caret is inactive Pin
alex.barylski4-Feb-02 20:45
alex.barylski4-Feb-02 20:45 
GeneralRe: when the owner window of caret is inactive Pin
AnonymousBabe@usa.net5-Feb-02 13:57
AnonymousBabe@usa.net5-Feb-02 13:57 
GeneralRe: when the owner window of caret is inactive Pin
alex.barylski5-Feb-02 14:26
alex.barylski5-Feb-02 14:26 
GeneralRe: when the owner window of caret is inactive Pin
AnonymousBabe@usa.net5-Feb-02 15:59
AnonymousBabe@usa.net5-Feb-02 15:59 
GeneralRe: when the owner window of caret is inactive Pin
alex.barylski5-Feb-02 16:39
alex.barylski5-Feb-02 16:39 
GeneralRe: when the owner window of caret is inactive Pin
AnonymousBabe@usa.net5-Feb-02 17:20
AnonymousBabe@usa.net5-Feb-02 17:20 
GeneralRe: when the owner window of caret is inactive Pin
alex.barylski5-Feb-02 17:49
alex.barylski5-Feb-02 17:49 
GeneralCD Writer Pin
4-Feb-02 20:07
suss4-Feb-02 20:07 
GeneralRe: CD Writer Pin
alex.barylski4-Feb-02 20:57
alex.barylski4-Feb-02 20:57 
General_cast<>'s Pin
Jamie Nordmeyer4-Feb-02 18:43
Jamie Nordmeyer4-Feb-02 18:43 
GeneralRe: _cast<>'s Pin
Christian Graus4-Feb-02 19:17
protectorChristian Graus4-Feb-02 19:17 
GeneralRe: _cast<>'s Pin
Joaquín M López Muñoz4-Feb-02 19:53
Joaquín M López Muñoz4-Feb-02 19:53 
GeneralRe: _cast<>'s Pin
Michael Dunn4-Feb-02 21:08
sitebuilderMichael Dunn4-Feb-02 21:08 
GeneralRe: _cast<>'s Pin
Joaquín M López Muñoz4-Feb-02 21:24
Joaquín M López Muñoz4-Feb-02 21:24 
GeneralRe: _cast<>'s Pin
Chen Venkataraman5-Feb-02 4:23
Chen Venkataraman5-Feb-02 4:23 
GeneralRe: _cast<>'s Pin
Jamie Nordmeyer5-Feb-02 5:46
Jamie Nordmeyer5-Feb-02 5:46 

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.