How to display it? I called SetButtonText, but nothing was changed...
Alex Cramer
Posts
-
Adding text to toolbar buttons into a standard MFC SDI App -
How to display standard shell properties for certain file?Subj (I need properties window like in Explorer).
-
IWebBrowser2 from IHTMLWindow2 - ?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:
var oISRC = new ActiveXObject("isrc.Application");
var ieParentWin = external.menuArguments;
oISRC.Initialize(ieParentWin);Step 2: Creating handler inside my app:
STDMETHODIMP CIsrcApp::Initialize(VARIANT *vBrowser)
{
LPDISPATCH pDisp = (LPDISPATCH) (variant_t) (*vBrowser);
CComQIPtr spWin;
spWin = pDisp;
spWin->alert(bstr_t("Test!"));
spWin->moveBy(100, 100);return S\_OK;
}
Test works. Question: how to obtain IWebBrowser2* from IHTMLWindow2* ??
-
Whats the equivalent of CString.m_pchData in VS.NET?What there used instead?
-
Getting absolute URL from relativeI have a Web Browser control and want to download external files like images, *.css, *.js and etc. The SRC attribute of can contains absolute and relative URLs. How to correctly obtain full URL for these files? May be there is a ready system function to download such files? I tried URLDownloadToFile, may be I must try URL monikers? Thanks! </x-turndown>
-
HTML Syntax HilightingThanks!!!!!!!!!! Scintella is EXACTLY THAT I looking for!!!!
-
HTML Syntax HilightingBoth these projects too large. I need fast & small HTML viewer, not an editor... May be something else?
-
HTML Syntax HilightingThanks! I will try it!
-
HTML Syntax HilightingSomebody help me! I need to implement HTML Syntax hilighting in application, which written in pure API. Are there exist the ready solutions? Thanks!
-
Implementing IDispatch::GetIDSOfNamesYeah... My nick is ADK there...
-
Implementing IDispatch::GetIDSOfNamesSorry, I thought I must allocate memory for rgDispId. Now all correct! P.S. Russian programmers answered me for the my last 4 questions. Hm...
-
Implementing IDispatch::GetIDSOfNamesYes, thanks, but can I ask some more about memory management. How to allocate memory in IDispatch::GetIDSOfNames implementation? (hich function is needed?)
-
Implementing IDispatch::GetIDSOfNamesI need to implement IDispatch::GetIDSOfNames without creating type library, i.e. I need to return certain ID for certain name. How??
-
HELP ME TO FIND AN ERRORThanks. It's a strange thing occured. Yesterday, catch operator don't helped me (was Exception MessageBox). Today it works, both code:
try{spFrameDoc = spFrame->document; }
catch(_com_error e)
{
TRACE("Doc unavailable! %s\n", e.ErrorMessage());
}try{spFrameDoc = spFrame->document; }
catch(...)
{
TRACE("Doc unavailable!\n");
}:eek: And pair questions more. 1) Under debugger I saw
First-chance exception in IEEnumWindows.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
Is it correct? (I handled it). 2) Is it means, that it's impossible to access certain documents for my app? Or there is any way to pass security troubles?
-
HELP ME TO FIND AN ERRORI'm trying to connect to IE events, and made quick & dirty demo ( it's here ). TROUBLE: when I'm getting document object of the IE frame, in which loaded document from another domain (not the same as top-level frame), an error occurs. And I can't to handle it correctly!! In debug mode message box with kernel exception popups... Demo Usage: 1) Run IE 2) Type address of page with frames from different domains ( www.search.msn.com for ex. ) 3) Press "Connect to OnMouseMove Button". When connected, if you will track mouse hover the doc, you woll listen short beeps. Help me to correctly handle an error in debug mode, when trying to access documents at search.msn.com and similar sites!!! Thanks!
-
HELP ME TO FIND AN ERRORI'm trying to connect to IE events, and made quick & dirty demo ( it's here ). TROUBLE: when I'm getting document object of the IE frame, in which loaded document from another domain (not the same as top-level frame), an error occurs. And I can't to handle it correctly!! In debug mode message box with kernel exception popups... Demo Usage: 1) Run IE 2) Type address of page with frames from different domains ( www.search.msn.com for ex. ) 3) Press "Connect to OnMouseMove Button". When connected, if you will track mouse hover the doc, you woll listen short beeps. Help me to correctly handle an error in debug mode, when trying to access documents at search.msn.com and similar sites!!! Thanks!
-
Access denied when trying to access IE documents in frames, in which loaded docs from different domainsI'm hosting Web Browser in my app. When document contains frames with pages from different domains, it causes acces denied (COM Error) when trying to access document in frame. How to avoid it?? I read MSDN article "Permission Denied Error Message When Scripting Across Frames", but there was written about scripts only...
-
Enumerating IE Frames and connecting to its eventsHow to correctly implement subj?
-
Connecting to IE EventsYou're not right, BODY object accessable before OnDocumentComplete firing. I'm trying to connect to BODY object when click button, and it was available before OnDocumentComplete!!! When I must connect to it???
-
Connecting to IE EventsI need to connect to some BODY object events as soon as possible. WHEN I must do it, check BODY availability by timer? Events like OnDonloadComplete comes too later... Question #2: if document contains frames, I need to enumerate it and connect to each frame events. Someone has code sample??