Click here to Skip to main content
15,915,086 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Question about uninitialized memory. Pin
George214-Feb-03 17:17
George214-Feb-03 17:17 
GeneralRe: Question about uninitialized memory. Pin
George214-Feb-03 17:16
George214-Feb-03 17:16 
GeneralProblems with HTMLElementEvents2 Pin
Xavyer13-Feb-03 2:23
Xavyer13-Feb-03 2:23 
GeneralRe: Problems with HTMLElementEvents2 Pin
stereo16-Feb-03 5:57
stereo16-Feb-03 5:57 
GeneralRe: Problems with HTMLElementEvents2 Pin
Xavyer16-Feb-03 8:04
Xavyer16-Feb-03 8:04 
GeneralQuestion about allocate of STL. Pin
George213-Feb-03 1:55
George213-Feb-03 1:55 
GeneralRe: Question about allocate of STL. Pin
markkuk13-Feb-03 2:24
markkuk13-Feb-03 2:24 
GeneralSinking events... Pin
LukeV12-Feb-03 3:25
LukeV12-Feb-03 3:25 
I'm trying to retrieve the Url of a new window for my BHO... I did what S.Rod. suggested (his code was in C#, I'm using C++/ATL)

case DISPID_NEWWINDOW2:
				{
					CComPtr<IDispatch> pDisp = NULL;

					m_pBlankDlg = new CBlankDlg();
					m_pBlankDlg->Create( NULL );

					CComPtr<IUnknown> spUnk;
					m_pBlankDlg->GetDlgControl( IDC_BROWSER, IID_IWebBrowser2, (void **) &spUnk );
					CComQIPtr<IWebBrowser2> spWB = spUnk;
					
					spWB->get_Application( &pDisp );

					pDispParams->rgvarg[1].pdispVal = pDisp;
					m_pBlankDlg->ShowWindow( SW_SHOW );
				}


And in CBlankDlg :

class CBlankDlg : 
	public CAxDialogImpl<CBlankDlg>,
	public IDispEventImpl<IDC_BROWSER,CBlankDlg>
{
...
BEGIN_SINK_MAP(CBlankDlg)
		SINK_ENTRY(IDC_BROWSER, 250, BeforeNavigate2Browser)
	END_SINK_MAP()
	void __stdcall BeforeNavigate2Browser(LPDISPATCH pDisp, VARIANT* URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers, BOOL* Cancel);


The BeforeNavigate2 event is never triggered... why?

thanks for your help! Smile | :)

---------------
Tired of Spam? Introducing InboxShield® for Microsoft® Outlook®
http://www.edovia.com
GeneralRe: Sinking events... Pin
LukeV12-Feb-03 4:37
LukeV12-Feb-03 4:37 
GeneralRe: Sinking events... Pin
LukeV12-Feb-03 11:45
LukeV12-Feb-03 11:45 
GeneralQuestion about front_inserter of STL. Pin
George212-Feb-03 2:56
George212-Feb-03 2:56 
GeneralRe: Question about front_inserter of STL. Pin
Joaquín M López Muñoz12-Feb-03 6:47
Joaquín M López Muñoz12-Feb-03 6:47 
GeneralRe: Question about front_inserter of STL. Pin
George212-Feb-03 13:32
George212-Feb-03 13:32 
GeneralQuestion about reverse_iterator. Pin
George212-Feb-03 2:21
George212-Feb-03 2:21 
GeneralRe: Question about reverse_iterator. Pin
Joaquín M López Muñoz12-Feb-03 2:26
Joaquín M López Muñoz12-Feb-03 2:26 
GeneralRe: Question about reverse_iterator. Pin
George212-Feb-03 2:35
George212-Feb-03 2:35 
GeneralQuestion about iterator of STL. Pin
George212-Feb-03 1:43
George212-Feb-03 1:43 
GeneralRe: Question about iterator of STL. Pin
Joaquín M López Muñoz12-Feb-03 2:07
Joaquín M López Muñoz12-Feb-03 2:07 
GeneralRe: Question about iterator of STL. Pin
George212-Feb-03 2:11
George212-Feb-03 2:11 
GeneralRe: Question about iterator of STL. Pin
Joaquín M López Muñoz12-Feb-03 2:19
Joaquín M López Muñoz12-Feb-03 2:19 
GeneralRe: Question about iterator of STL. Pin
George212-Feb-03 2:22
George212-Feb-03 2:22 
GeneralMFC And STL Pin
super11-Feb-03 3:46
professionalsuper11-Feb-03 3:46 
GeneralRe: MFC And STL Pin
Joaquín M López Muñoz11-Feb-03 7:54
Joaquín M López Muñoz11-Feb-03 7:54 
GeneralRe: MFC And STL Pin
Tim Smith11-Feb-03 8:43
Tim Smith11-Feb-03 8:43 
GeneralQuestion about STL stack Pin
George211-Feb-03 0:24
George211-Feb-03 0:24 

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.