Click here to Skip to main content
15,887,434 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: About the remove() behavior of container list on MAC Pin
szh12113-May-10 22:55
szh12113-May-10 22:55 
QuestionChild windows of non-modal dialog not receiving WM_DESTROY (at least not when expected) Pin
mjxy9-May-10 4:49
mjxy9-May-10 4:49 
QuestionHowto put a TrackBar in a Menu ? Pin
yarp27-Apr-10 1:07
yarp27-Apr-10 1:07 
QuestionCreating a borderless MDI child window Pin
Member 381982124-Apr-10 0:00
Member 381982124-Apr-10 0:00 
AnswerRe: Creating a borderless MDI child window Pin
Jonathan Davies24-Apr-10 1:06
Jonathan Davies24-Apr-10 1:06 
QuestionProblems while adding custom header with IWebBrowser2 [modified] Pin
arbittorr21-Apr-10 12:14
arbittorr21-Apr-10 12:14 
AnswerRe: Problems while adding custom header with IWebBrowser2 Pin
Stephen Hewitt22-Apr-10 14:09
Stephen Hewitt22-Apr-10 14:09 
GeneralRe: Problems while adding custom header with IWebBrowser2 Pin
arbittorr23-Apr-10 0:18
arbittorr23-Apr-10 0:18 
Could you explain this more detail? I implemented DWebBrowserEvents class and as I thought DWebBrowserEventsImpl::Invoke is called on every user action (but when Refresh called, there is no DISPID_BEFORENAVIGATE dispIdMember)

class DWebBrowserEventsImpl : public DWebBrowserEvents
{
		// IUnknown methods
		STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppv);
		STDMETHOD_(ULONG, AddRef)();
		STDMETHOD_(ULONG, Release)();
		// IDispatch methods
		STDMETHOD(GetTypeInfoCount)(UINT* pctinfo);
		STDMETHOD(GetTypeInfo)(UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo);
		STDMETHOD(GetIDsOfNames)(REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId);
		STDMETHOD(Invoke)(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS __RPC_FAR *pDispParams,
                        VARIANT __RPC_FAR *pVarResult, EXCEPINFO __RPC_FAR *pExcepInfo, UINT __RPC_FAR *puArgErr); 
		// Methods:
		HRESULT BeforeNavigate(_bstr_t URL, long Flags, _bstr_t TargetFrameName, VARIANT * PostData, _bstr_t Headers, VARIANT_BOOL * Cancel);
		HRESULT DownloadBegin();
                // members
		CWebBrowserView *m_cpParent; // any time a IWebBrowser instance is needed

	public:
		void SetParent(CWebBrowserView *pParent)
		{
			m_cpParent = pParent;
		}
};
class CUIHandler:
		public IOleCommandTarget,
		public IDocHostUIHandler
{
	public:
		CUIHandler():
				m_spDefaultOleCommandTarget(NULL),
				m_pDefaultUIHandler(NULL)
		{
		}
		void Clear()
		{
			if (m_spDefaultOleCommandTarget)
			{
           			m_spDefaultOleCommandTarget->Release();
				m_spDefaultOleCommandTarget = NULL;
			}
			if (m_pDefaultUIHandler)
			{
				m_pDefaultUIHandler->Release();
				m_pDefaultUIHandler = NULL;
			}
		}
//methods:
....................................................................
		IOleCommandTarget *m_spDefaultOleCommandTarget;
		IDocHostUIHandler *m_pDefaultUIHandler;
};

GeneralRe: Problems while adding custom header with IWebBrowser2 Pin
Jonathan Davies23-Apr-10 1:57
Jonathan Davies23-Apr-10 1:57 
GeneralRe: Problems while adding custom header with IWebBrowser2 Pin
arbittorr23-Apr-10 22:01
arbittorr23-Apr-10 22:01 
GeneralRe: Problems while adding custom header with IWebBrowser2 Pin
Jonathan Davies24-Apr-10 1:26
Jonathan Davies24-Apr-10 1:26 
QuestionIs it possible to make an activex by WTL Pin
Shuang. Wu15-Apr-10 20:31
Shuang. Wu15-Apr-10 20:31 
AnswerRe: Is it possible to make an activex by WTL Pin
Jonathan Davies15-Apr-10 23:47
Jonathan Davies15-Apr-10 23:47 
GeneralRe: Is it possible to make an activex by WTL Pin
Shuang. Wu16-Apr-10 0:20
Shuang. Wu16-Apr-10 0:20 
GeneralRe: Is it possible to make an activex by WTL Pin
Jonathan Davies16-Apr-10 0:40
Jonathan Davies16-Apr-10 0:40 
AnswerRe: Is it possible to make an activex by WTL Pin
«_Superman_»16-Apr-10 8:02
professional«_Superman_»16-Apr-10 8:02 
GeneralRe: Is it possible to make an activex by WTL Pin
Shuang. Wu18-Apr-10 6:00
Shuang. Wu18-Apr-10 6:00 
GeneralRe: Is it possible to make an activex by WTL Pin
Jonathan Davies24-Apr-10 1:33
Jonathan Davies24-Apr-10 1:33 
AnswerRe: Is it possible to make an activex by WTL Pin
XTL_FANS13-May-10 14:30
XTL_FANS13-May-10 14:30 
QuestionCOM DLL Registration Pin
HakunaMatada14-Apr-10 21:44
HakunaMatada14-Apr-10 21:44 
AnswerRe: COM DLL Registration Pin
HakunaMatada15-Apr-10 0:15
HakunaMatada15-Apr-10 0:15 
GeneralRe: COM DLL Registration Pin
Jonathan Davies15-Apr-10 1:46
Jonathan Davies15-Apr-10 1:46 
AnswerRe: COM DLL Registration Pin
Jonathan Davies15-Apr-10 1:39
Jonathan Davies15-Apr-10 1:39 
GeneralRe: COM DLL Registration Pin
HakunaMatada15-Apr-10 3:04
HakunaMatada15-Apr-10 3:04 
Questionoutlook 2007 automation Pin
tristan jung4-Apr-10 16:57
tristan jung4-Apr-10 16:57 

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.