How do I get events from a HTML Page hosted in a CAxWindow
From: Anand Vinod (someone_at_microsoft.com)
Date: 06/18/04
- Next message: Dmitry A. Kazakov: "Re: LSP and Equal()......"
- Previous message: Michael Swart: "Design Pattern Exercises."
- Next in thread: Phlip: "Re: How do I get events from a HTML Page hosted in a CAxWindow"
- Reply: Phlip: "Re: How do I get events from a HTML Page hosted in a CAxWindow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 18 Jun 2004 20:50:23 +0530
Hi,
I have used the following code to host a html page in a CAxWindow. This is
used in a IE Extension DLL.
CAxWindow m_wndView;
AtlAxWinInit();
RECT rcClient;
rcClient.top = 100;
rcClient.left = 100;
rcClient.bottom = 460;
rcClient.right = 550;
m_wndView.Create(hwnd, rcClient, NULL, WS_POPUP | WS_VISIBLE |
WS_OVERLAPPEDWINDOW, WS_EX_TOOLWINDOW);
CComPtr<IAxWinHostWindow> spHost;
m_wndView.QueryHost(&spHost);
spHost->CreateControl(CComBSTR("MyPage.html"), m_wndView, 0);
I would like to know how to get events from the HTML page into my DLL. For
example if I have a close
button on my HTML page. The dll extends the IE tols menu and implements
IObjectWithSite, IOleCommandTarget, &
IDocHostUIHandler
Thanks,
Anand
- Next message: Dmitry A. Kazakov: "Re: LSP and Equal()......"
- Previous message: Michael Swart: "Design Pattern Exercises."
- Next in thread: Phlip: "Re: How do I get events from a HTML Page hosted in a CAxWindow"
- Reply: Phlip: "Re: How do I get events from a HTML Page hosted in a CAxWindow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]