Click here to Skip to main content
15,918,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: adding an image II Pin
Mel Feik27-Oct-02 18:52
Mel Feik27-Oct-02 18:52 
GeneralHelp with loading files Pin
Steven M Hunt27-Oct-02 16:16
Steven M Hunt27-Oct-02 16:16 
GeneralRe: Help with loading files Pin
Shog927-Oct-02 16:24
sitebuilderShog927-Oct-02 16:24 
GeneralHere's the code Pin
Steven M Hunt27-Oct-02 16:56
Steven M Hunt27-Oct-02 16:56 
GeneralRe: Here's the code Pin
Shog927-Oct-02 18:11
sitebuilderShog927-Oct-02 18:11 
GeneralRe: Help with loading files Pin
Christian Graus27-Oct-02 17:37
protectorChristian Graus27-Oct-02 17:37 
GeneralRe: Help with loading files Pin
carrie28-Oct-02 0:58
carrie28-Oct-02 0:58 
QuestionIWebBrowser2 from IHTMLWindow2 - ? Pin
Alex Cramer27-Oct-02 16:01
Alex Cramer27-Oct-02 16:01 
Hi all!

My purpose: invoke my app from Internet Explorer's context menu, then my app must to connect to IE (IWebBrowser2) events.

Step 1: Implementing script handler:

<script language=javascript>
var oISRC = new ActiveXObject("isrc.Application");
var ieParentWin = external.menuArguments;
oISRC.Initialize(ieParentWin);
</script>


Step 2: Creating handler inside my app:

STDMETHODIMP CIsrcApp::Initialize(VARIANT *vBrowser)
{
	LPDISPATCH pDisp = (LPDISPATCH) (variant_t) (*vBrowser);
	CComQIPtr<IHTMLWindow2> spWin;
	spWin = pDisp;
	spWin->alert(bstr_t("Test!"));
	spWin->moveBy(100, 100);

		
	return S_OK;
}


Test works. Question: how to obtain IWebBrowser2* from IHTMLWindow2* ??
Generalhelp Pin
imran_rafique27-Oct-02 15:02
imran_rafique27-Oct-02 15:02 
GeneralRe: help Pin
Christian Graus27-Oct-02 15:04
protectorChristian Graus27-Oct-02 15:04 
GeneralA notepad-like class... Pin
Mr.Freeze27-Oct-02 14:27
Mr.Freeze27-Oct-02 14:27 
GeneralRe: A notepad-like class... Pin
Christian Graus27-Oct-02 14:46
protectorChristian Graus27-Oct-02 14:46 
GeneralRe: A notepad-like class... Pin
Mr.Freeze27-Oct-02 17:10
Mr.Freeze27-Oct-02 17:10 
Generalstupid beginner Pin
Anonymous27-Oct-02 13:33
Anonymous27-Oct-02 13:33 
GeneralRe: stupid beginner Pin
Maximilien27-Oct-02 13:59
Maximilien27-Oct-02 13:59 
GeneralRe: stupid beginner Pin
Anonymous27-Oct-02 14:05
Anonymous27-Oct-02 14:05 
GeneralRe: stupid beginner Pin
Christian Graus27-Oct-02 14:21
protectorChristian Graus27-Oct-02 14:21 
GeneralRe: stupid beginner Pin
Anonymous27-Oct-02 17:32
Anonymous27-Oct-02 17:32 
GeneralRe: stupid beginner Pin
Christian Graus27-Oct-02 17:34
protectorChristian Graus27-Oct-02 17:34 
GeneralEnableToolTips for view (doc/view) affects main toolbar tooltips!? :\ Pin
Janeko27-Oct-02 12:59
Janeko27-Oct-02 12:59 
GeneralCDockContext Pin
MaTrIX2k227-Oct-02 11:50
MaTrIX2k227-Oct-02 11:50 
Generalconsole app disappearing VS.NET Pin
User 814727-Oct-02 11:02
User 814727-Oct-02 11:02 
GeneralListBox Characteristics Pin
Ayush27-Oct-02 9:03
Ayush27-Oct-02 9:03 
GeneralRe: ListBox Characteristics Pin
Ravi Bhavnani27-Oct-02 9:36
professionalRavi Bhavnani27-Oct-02 9:36 
QuestionHow it Possible.? Pin
Renjith Ramachandran27-Oct-02 7:01
Renjith Ramachandran27-Oct-02 7:01 

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.