ReactOS 0.4.16-dev-197-g92996da
addresseditbox.h
Go to the documentation of this file.
1/*
2 * ReactOS Explorer
3 *
4 * Copyright 2009 Andrew Hill <ash77 at domain reactos.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21#pragma once
22
24 public CWindowImpl<CAddressEditBox, CWindow, CControlWinTraits>,
25 public CComCoClass<CAddressEditBox, &CLSID_AddressEditBox>,
26 public CComObjectRootEx<CComMultiThreadModelNoCS>,
27 public IWinEventHandler,
28 public IDispatch,
29 public IAddressBand,
30 public IAddressEditBox,
31 public IOleCommandTarget,
32 public IPersistStream,
33 public IShellService
34{
35private:
36 CContainedWindow fCombobox;
37 CContainedWindow fEditWindow;
39 CComPtr<IUnknown> fSite;
42public:
45private:
47 void AddComboBoxItem(LPITEMIDLIST pidl, int index, int indent);
48 void FillOneLevel(int index, int levelIndent, int indent);
53 BOOL GetComboBoxText(CComHeapPtr<WCHAR>& pszText);
55public:
56 // *** IShellService methods ***
57 STDMETHOD(SetOwner)(IUnknown *) override;
58
59 // *** IAddressBand methods ***
60 STDMETHOD(FileSysChange)(long param8, long paramC) override;
61 STDMETHOD(Refresh)(long param8) override;
62
63 // *** IAddressEditBox methods ***
64 STDMETHOD(Init)(HWND comboboxEx, HWND editControl, long param14, IUnknown *param18) override;
65 STDMETHOD(SetCurrentDir)(long paramC) override;
66 STDMETHOD(ParseNow)(long paramC) override;
67 STDMETHOD(Execute)(long paramC) override;
68 STDMETHOD(Save)(long paramC) override;
69
70 // *** IWinEventHandler methods ***
71 STDMETHOD(OnWinEvent)(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult) override;
73
74 // *** IOleCommandTarget methods ***
75 STDMETHOD(QueryStatus)(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[ ], OLECMDTEXT *pCmdText) override;
76 STDMETHOD(Exec)(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) override;
77
78 // *** IDispatch methods ***
79 STDMETHOD(GetTypeInfoCount)(UINT *pctinfo) override;
80 STDMETHOD(GetTypeInfo)(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) override;
81 STDMETHOD(GetIDsOfNames)(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) override;
82 STDMETHOD(Invoke)(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) override;
83
84 // *** IPersist methods ***
85 STDMETHOD(GetClassID)(CLSID *pClassID) override;
86
87 // *** IPersistStream methods ***
88 STDMETHOD(IsDirty)() override;
89 STDMETHOD(Load)(IStream *pStm) override;
90 STDMETHOD(Save)(IStream *pStm, BOOL fClearDirty) override;
91 STDMETHOD(GetSizeMax)(ULARGE_INTEGER *pcbSize) override;
92
93 // message handlers
95
98
100
104
106 COM_INTERFACE_ENTRY_IID(IID_IShellService, IShellService)
107 COM_INTERFACE_ENTRY_IID(IID_IAddressBand, IAddressBand)
108 COM_INTERFACE_ENTRY_IID(IID_IAddressEditBox, IAddressEditBox)
109 COM_INTERFACE_ENTRY_IID(IID_IWinEventHandler, IWinEventHandler)
110 COM_INTERFACE_ENTRY_IID(IID_IOleCommandTarget, IOleCommandTarget)
115};
HWND hWnd
Definition: settings.c:17
#define STDMETHOD(m)
Definition: basetyps.h:62
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
STDMETHOD() GetClassID(CLSID *pClassID) override
HRESULT RefreshAddress()
STDMETHOD() GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) override
void FillOneLevel(int index, int levelIndent, int indent)
CContainedWindow fEditWindow
STDMETHOD() SetCurrentDir(long paramC) override
HRESULT GetAbsolutePidl(PIDLIST_ABSOLUTE *pAbsolutePIDL)
STDMETHOD() ParseNow(long paramC) override
CContainedWindow fCombobox
CComPtr< IUnknown > fSite
HRESULT STDMETHODCALLTYPE ShowFileNotFoundError(HRESULT hRet)
STDMETHOD() QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) override
LPITEMIDLIST GetItemData(int index)
STDMETHOD() GetTypeInfoCount(UINT *pctinfo) override
STDMETHOD() Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) override
LPITEMIDLIST pidlLastParsed
LRESULT OnSettingChange(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHOD() IsWindowOwner(HWND hWnd) override
void AddComboBoxItem(LPITEMIDLIST pidl, int index, int indent)
STDMETHOD() Save(long paramC) override
STDMETHOD() SetOwner(IUnknown *) override
STDMETHOD() Execute(long paramC) override
STDMETHOD() IsDirty() override
void PopulateComboBox(LPITEMIDLIST pidl)
STDMETHOD() OnWinEvent(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult) override
STDMETHOD() Load(IStream *pStm) override
BOOL GetComboBoxText(CComHeapPtr< WCHAR > &pszText)
STDMETHOD() GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) override
STDMETHOD() GetSizeMax(ULARGE_INTEGER *pcbSize) override
STDMETHOD() FileSysChange(long param8, long paramC) override
STDMETHOD() Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) override
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define IDR_ADDRESSEDITBOX
Definition: resource.h:93
static const WCHAR indent[]
Definition: object.c:1156
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
GLuint index
Definition: glext.h:6031
REFIID riid
Definition: atlbase.h:39
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:581
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:601
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:679
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:651
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:645
#define END_COM_MAP()
Definition: atlcom.h:592
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1926
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1898
#define END_MSG_MAP()
Definition: atlwin.h:1917
void Refresh(void)
Definition: magnifier.c:317
static LPOLESTR
Definition: stg_prop.c:27
static VARIANTARG static DISPID
Definition: ordinal.c:52
unsigned int UINT
Definition: ndis.h:50
const GUID IID_IDispatch
const GUID IID_IPersist
Definition: proxy.cpp:14
const GUID IID_IPersistStream
Definition: proxy.cpp:13
#define REFIID
Definition: guiddef.h:118
DWORD LCID
Definition: nls.h:13
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41
uint32_t ULONG
Definition: typedefs.h:59
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
#define WM_SETTINGCHANGE
Definition: winuser.h:1632