Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Be notified of the input focus Pin
De Nardis Andrea24-Aug-04 6:13
De Nardis Andrea24-Aug-04 6:13 
GeneralThank you Mr Maximilien But..... Pin
bunty2k424-Aug-04 5:26
bunty2k424-Aug-04 5:26 
GeneralRe: Thank you Mr Maximilien But..... Pin
David Crow24-Aug-04 5:57
David Crow24-Aug-04 5:57 
Generalplacing pieces on game board Pin
Choane Kgotso24-Aug-04 4:57
Choane Kgotso24-Aug-04 4:57 
Generalcontrolling HTML web page in Visual C++ 6.0 Pin
Freeman Taylor24-Aug-04 4:15
Freeman Taylor24-Aug-04 4:15 
GeneralRe: controlling HTML web page in Visual C++ 6.0 Pin
Jeff Bogan24-Aug-04 5:50
Jeff Bogan24-Aug-04 5:50 
GeneralRe: controlling HTML web page in Visual C++ 6.0 Pin
Freeman Taylor24-Aug-04 6:35
Freeman Taylor24-Aug-04 6:35 
GeneralRe: controlling HTML web page in Visual C++ 6.0 Pin
Neville Franks24-Aug-04 10:45
Neville Franks24-Aug-04 10:45 
I you are using a class derived from CHtmlView you can do most anything you want with the html and with the Javascript including calling C++ code from JS and vice-versa.

To call a JS function you can use: execScript()

This is a snippet from my Surfulater app code:

MSHTML::IHTMLDocument2Ptr pDoc( GetHtmlDocument() );
if ( pDoc != NULL )
{   // Call our JS code to end Edit mode. Calls JS EndEditing()
    _variant_t vtRet;
    _bstr_t bstrFunc = _T("EndEditing()");
    vtRet = pDoc->GetparentWindow()->execScript( bstrFunc, L"JScript" );
}


See: http://www.codeproject.com/com/jscalls.asp#xx229574xx[^]

There is a lot of good documentation and sample code around on this subject. Yell out if you need more pointers.

Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
GeneralPersistant GetOpenFileName Pin
Patrick REY24-Aug-04 3:57
Patrick REY24-Aug-04 3:57 
GeneralInterprocess communication or something like that Pin
olliman24-Aug-04 3:15
olliman24-Aug-04 3:15 
GeneralTCP/IP Socket KeepAlive Feature Question. Pin
jerry1211a24-Aug-04 3:05
jerry1211a24-Aug-04 3:05 
GeneralRe: TCP/IP Socket KeepAlive Feature Question. Pin
Henry miller24-Aug-04 3:20
Henry miller24-Aug-04 3:20 
GeneralHelp Please Pin
bunty2k424-Aug-04 2:54
bunty2k424-Aug-04 2:54 
GeneralRe: Help Please Pin
Maximilien24-Aug-04 4:58
Maximilien24-Aug-04 4:58 
GeneralHelp Please Pin
bunty2k424-Aug-04 2:54
bunty2k424-Aug-04 2:54 
Generalfread crash Pin
ns24-Aug-04 1:55
ns24-Aug-04 1:55 
GeneralRe: fread crash Pin
Cedric Moonen24-Aug-04 2:49
Cedric Moonen24-Aug-04 2:49 
GeneralRe: fread crash Pin
ns24-Aug-04 2:54
ns24-Aug-04 2:54 
GeneralRe: fread crash Pin
Cedric Moonen24-Aug-04 2:50
Cedric Moonen24-Aug-04 2:50 
Generallog method-call and time on PocketPc Pin
pat27088124-Aug-04 1:46
pat27088124-Aug-04 1:46 
GeneralClass View in VS 7 Pin
CreepingFeature24-Aug-04 1:37
CreepingFeature24-Aug-04 1:37 
GeneralRe: Class View in VS 7 Pin
Antony M Kancidrowski24-Aug-04 1:49
Antony M Kancidrowski24-Aug-04 1:49 
QuestionCstring to char?? Pin
Larsson24-Aug-04 1:33
Larsson24-Aug-04 1:33 
AnswerRe: Cstring to char?? Pin
Cedric Moonen24-Aug-04 1:40
Cedric Moonen24-Aug-04 1:40 
GeneralRe: Cstring to char?? Pin
Larsson24-Aug-04 2:18
Larsson24-Aug-04 2:18 

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.