26#include <commoncontrols.h>
67 if (!m_hWnd || !pdbi)
return E_FAIL;
68 if (pdbi->
dwMask & DBIM_MINSIZE)
76 if (pdbi->
dwMask & DBIM_MAXSIZE)
81 if (pdbi->
dwMask & DBIM_INTEGRAL)
86 if (pdbi->
dwMask & DBIM_ACTUAL)
94 if (pdbi->
dwMask & DBIM_TITLE)
100 if (pdbi->
dwMask & DBIM_MODEFLAGS)
102 if (pdbi->
dwMask & DBIM_BKCOLOR)
115 if (pUnkSite ==
NULL)
138 if (combobox ==
NULL)
167 hResult = shellService->SetOwner(
fSite);
182 return fSite->QueryInterface(
riid, ppvSite);
210 pservice->SetOwner(
NULL);
286 static WCHAR s_chCache = 0;
287 static LANGID s_ThreadLocale = 0;
312 if (lpMsg->
wParam == chAccess)
395 return winEventHandler->IsWindowOwner(
hWnd);
408 return addressBand->FileSysChange(param8, paramC);
419 return addressBand->Refresh(param8);
434 if (pClassID ==
NULL)
436 *pClassID = CLSID_SH_AddressBand;
483 wnsprintf(pGIT->pszText, pGIT->cchTextMax, szFormat, szText);
541 buttonWidth = buttonBounds.
right - buttonBounds.
left;
542 buttonHeight = buttonBounds.
bottom - buttonBounds.
top;
549 goButtonBounds.
left = newWidth - buttonWidth;
550 goButtonBounds.
top = 0;
551 goButtonBounds.
right = newWidth - buttonWidth;
552 goButtonBounds.
bottom = newHeight;
580 newHeight = positionInfoCopy.
cy;
581 newWidth = positionInfoCopy.
cx;
585 buttonWidth = buttonBounds.
right - buttonBounds.
left;
586 buttonHeight = buttonBounds.
bottom - buttonBounds.
top;
587 positionInfoCopy.
cx = newWidth - 2 - buttonWidth;
593 goButtonBounds.
left = newWidth - buttonWidth;
594 goButtonBounds.
top = 0;
595 goButtonBounds.
right = newWidth - buttonWidth;
596 goButtonBounds.
bottom = newHeight;
608 shellInstance = _AtlBaseModule.GetResourceInstance();
617 0, 0, 0, 0, m_hWnd,
NULL, _AtlBaseModule.GetModuleInstance(),
NULL);
static WCHAR GetAddressBarAccessKey(WCHAR chAccess)
static WCHAR GetAccessKeyFromText(WCHAR chAccess, LPCWSTR pszText)
#define STDMETHODCALLTYPE
HRESULT CAddressEditBox_CreateInstance(REFIID riid, void **ppv)
STDMETHOD() GetClassID(CLSID *pClassID) override
STDMETHOD() OnWinEvent(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult) override
STDMETHOD() HasFocusIO() override
STDMETHOD() IsDirty() override
STDMETHOD() Refresh(long param8) override
LRESULT OnEraseBackground(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHOD() SetSite(IUnknown *pUnkSite) override
LRESULT OnTipText(UINT idControl, NMHDR *notifyHeader, BOOL &bHandled)
STDMETHOD() TranslateAcceleratorIO(LPMSG lpMsg) override
STDMETHOD() Save(IStream *pStm, BOOL fClearDirty) override
STDMETHOD() GetBandInfo(DWORD dwBandID, DWORD dwViewMode, DESKBANDINFO *pdbi) override
CComPtr< IAddressEditBox > fAddressEditBox
STDMETHOD() ShowDW(BOOL fShow) override
STDMETHOD() IsWindowOwner(HWND hWnd) override
STDMETHOD() FileSysChange(long param8, long paramC) override
STDMETHOD() QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) override
STDMETHOD() GetSizeMax(ULARGE_INTEGER *pcbSize) override
LRESULT OnWindowPosChanging(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void FocusChange(BOOL bFocus)
STDMETHOD() OnFocusChangeIS(IUnknown *punkObj, BOOL fSetFocus) override
LRESULT OnNotifyClick(WPARAM wParam, NMHDR *notifyHeader, BOOL &bHandled)
STDMETHOD() QueryService(REFGUID guidService, REFIID riid, void **ppvObject) override
STDMETHOD() ContextSensitiveHelp(BOOL fEnterMode) override
STDMETHOD() ResizeBorderDW(const RECT *prcBorder, IUnknown *punkToolbarSite, BOOL fReserved) override
STDMETHOD() GetSite(REFIID riid, void **ppvSite) override
CComPtr< IDockingWindowSite > fSite
STDMETHOD() Load(IStream *pStm) override
STDMETHOD() Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) override
STDMETHOD() UIActivateIO(BOOL fActivate, LPMSG lpMsg) override
STDMETHOD() CloseDW(DWORD dwReserved) override
STDMETHOD() GetWindow(HWND *lphwnd) override
#define IDS_GOBUTTONTIPTEMPLATE
#define IDM_TOOLBARS_GOBUTTON
#define IDS_GOBUTTONLABEL
#define IDS_ADDRESSBANDLABEL
#define IDM_TOOLBARS_ADDRESSBAR
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE hi, LPCWSTR lpbmp, INT cx, INT cGrow, COLORREF clrMask, UINT uType, UINT uFlags)
#define FAILED_UNEXPECTEDLY(hr)
LCID WINAPI GetThreadLocale(void)
HRESULT WINAPI IUnknown_QueryStatus(IUnknown *lpUnknown, REFGUID pguidCmdGroup, ULONG cCmds, OLECMD *prgCmds, OLECMDTEXT *pCmdText)
HRESULT WINAPI IUnknown_GetWindow(IUnknown *lpUnknown, HWND *lphWnd)
HRESULT WINAPI IUnknown_OnFocusChangeIS(LPUNKNOWN lpUnknown, LPUNKNOWN pFocusObject, BOOL bFocus)
LONG WINAPI SHRegSetUSValueW(LPCWSTR pszSubKey, LPCWSTR pszValue, DWORD dwType, LPVOID pvData, DWORD cbData, DWORD dwFlags)
BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR pszSubKey, LPCWSTR pszValue, BOOL fIgnoreHKCU, BOOL fDefault)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
#define CBEM_GETCOMBOCONTROL
#define TB_BUTTONSTRUCTSIZE
#define TOOLBARCLASSNAMEW
#define CBEM_SETEXTENDEDSTYLE
#define CBEM_SETIMAGELIST
#define CBES_EX_NOSIZELIMIT
#define CBES_EX_CASESENSITIVE
#define CCS_NOPARENTALIGN
#define TB_SETHOTIMAGELIST
#define TB_SETMAXTEXTROWS
#define CBEM_GETEDITCONTROL
HRESULT WINAPI SHGetImageList(int iImageList, REFIID riid, void **ppv)
#define SHREGSET_FORCE_HKCU
#define IDB_GOBUTTON_NORMAL
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
DWORD WINAPI GetLastError(void)
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define SubclassWindow(hwnd, lpfn)
#define HRESULT_FROM_WIN32(x)
BOOL WINAPI SetWindowOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
BOOL WINAPI OffsetWindowOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
HWND WINAPI GetFocus(void)
#define CBS_OWNERDRAWFIXED
BOOL WINAPI IsWindow(_In_opt_ HWND)
#define CB_SETDROPPEDWIDTH
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_WINDOWPOSCHANGING
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define LR_CREATEDIBSECTION
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
HWND WINAPI SetFocus(_In_opt_ HWND)
DWORD WINAPI CharUpperBuffW(_Inout_updates_(cchLength) LPWSTR lpsz, _In_ DWORD cchLength)
#define CB_GETDROPPEDSTATE
HWND WINAPI GetParent(_In_ HWND)
#define SWP_NOOWNERZORDER
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define MAKEINTRESOURCEW(i)
BOOL WINAPI DestroyWindow(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define IID_PPV_ARG(Itype, ppType)