Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to align Number(currency) to right Pin
David Crow24-Jan-06 2:48
David Crow24-Jan-06 2:48 
GeneralRe: How to align Number(currency) to right Pin
mikobi23-Jan-06 21:22
mikobi23-Jan-06 21:22 
QuestionRead Hex Chars from keyboard Pin
bachirzantou23-Jan-06 4:40
bachirzantou23-Jan-06 4:40 
AnswerRe: Read Hex Chars from keyboard Pin
Cedric Moonen23-Jan-06 4:52
Cedric Moonen23-Jan-06 4:52 
GeneralRe: Read Hex Chars from keyboard Pin
bachirzantou23-Jan-06 5:15
bachirzantou23-Jan-06 5:15 
GeneralRe: Read Hex Chars from keyboard Pin
Bob Stanneveld23-Jan-06 10:31
Bob Stanneveld23-Jan-06 10:31 
GeneralRe: Read Hex Chars from keyboard Pin
bachirzantou23-Jan-06 22:45
bachirzantou23-Jan-06 22:45 
QuestionInterface IHTMLDocument of an ActiveX control need Help please ! Pin
Calvin8023-Jan-06 4:25
Calvin8023-Jan-06 4:25 
Hi all

I'm currently trying to create a Internet Explorer toolbar in HTML format.
language: c++ / ATL - prg: Visual c++ 6

For the moment, my toolbar object is created and I try to display a HTML page in my toolbar, thanks to an activeX control:

AtlAxWinInit();
ActiveXCtrl=new CAxWindow(m_hWnd);
ActiveXCtrl->CreateControl(L"http://address.of.my.toolbar.html");

That works.

Now, I would like to call a javascript function of my HTML toolbar:

I get the IWebBrowser2 internface of my activeX control:
IWebBrowser2* tbWB;
HRESULT hr = ActiveXCtrl->QueryControl(IID_IWebBrowser2,(void**)&tbWB);

T try to get the IHTMLDocument interface of the browser:
IDispatch* pDisp;
hr = tbWB->get_Document(&pDisp);

but pDisp is null !

have you any idea to resolve this problem?
Maybe another solution than activeX control ?

I really nedd help Sigh | :sigh:

thank you !
AnswerRe: Interface IHTMLDocument of an ActiveX control need Help please ! Pin
Stephen Hewitt23-Jan-06 12:39
Stephen Hewitt23-Jan-06 12:39 
GeneralRe: Interface IHTMLDocument of an ActiveX control need Help please ! Pin
Calvin8023-Jan-06 21:21
Calvin8023-Jan-06 21:21 
QuestionStatus bar + dialog bar Pin
khb23-Jan-06 4:10
khb23-Jan-06 4:10 
QuestionWindows langages Pin
Raphael Kindt23-Jan-06 3:49
Raphael Kindt23-Jan-06 3:49 
AnswerRe: Windows langages Pin
toxcct23-Jan-06 4:07
toxcct23-Jan-06 4:07 
GeneralRe: Windows langages Pin
Cedric Moonen23-Jan-06 4:22
Cedric Moonen23-Jan-06 4:22 
GeneralRe: Windows langages Pin
toxcct23-Jan-06 4:25
toxcct23-Jan-06 4:25 
GeneralRe: Windows langages Pin
Owner drawn23-Jan-06 17:20
Owner drawn23-Jan-06 17:20 
QuestionPermissions Pin
kelprinc23-Jan-06 3:42
kelprinc23-Jan-06 3:42 
QuestionICopyHook Pin
ragavan23-Jan-06 2:59
ragavan23-Jan-06 2:59 
QuestionRe: ICopyHook Pin
David Crow23-Jan-06 3:28
David Crow23-Jan-06 3:28 
AnswerRe: ICopyHook Pin
ragavan23-Jan-06 3:58
ragavan23-Jan-06 3:58 
QuestionRe: ICopyHook Pin
David Crow23-Jan-06 4:04
David Crow23-Jan-06 4:04 
AnswerRe: ICopyHook Pin
Michael Dunn23-Jan-06 7:37
sitebuilderMichael Dunn23-Jan-06 7:37 
QuestionCould AfxBeginThread not run in a dll? Pin
rushing23-Jan-06 2:37
rushing23-Jan-06 2:37 
AnswerRe: Could AfxBeginThread not run in a dll? Pin
Rage23-Jan-06 2:45
professionalRage23-Jan-06 2:45 
GeneralRe: Could AfxBeginThread not run in a dll? Pin
rushing23-Jan-06 3:18
rushing23-Jan-06 3: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.