80 static const UINT SIG = (
'R' << 0) | (
'O' << 8) | (
'S' << 16) | ((
'i' ^
't' ^
'b') << 24);
97 hResult = menuWinEventHandler->IsWindowOwner(
hWnd);
101 return menuWinEventHandler->OnWinEvent(
hWnd, uMsg,
wParam,
lParam, theResult);
111 hResult = dockingWindow->ShowDW(fShow);
133 public IDockingWindowSite,
134 public IInputObjectSite,
251 DBIM_INTEGRAL | DBIM_MAXSIZE | DBIM_MINSIZE;
342 if (
IsEqualIID(*pguidCmdGroup, CGID_DeskBand))
372 if (
IsEqualIID(guidService, SID_SMenuBandParent))
412 *ppsfFavorites =
NULL;
420 WARN(
"Failed to get the USER favorites folder. Trying to run with just the COMMON one.\n");
426 TRACE(
"COMMON favorites obtained.\n");
427 *ppidl = pidlCommonFavorites;
435 WARN(
"Failed to get the COMMON favorites folder. Will use only the USER contents.\n");
436 *ppidl = pidlCommonFavorites;
441 TRACE(
"Both COMMON and USER favorites folders obtained, merging them...\n");
454 *ppsfFavorites = psfUserFavorites.
Detach();
455 *ppidl = pidlUserFavorites;
456 ILFree(pidlCommonFavorites);
460 hr = pasf->AddNameSpace(
NULL, psfUserFavorites, pidlUserFavorites, 0xFF00);
464 hr = pasf->AddNameSpace(
NULL, psfCommonFavorites, pidlCommonFavorites, 0);
473 ILFree(pidlCommonFavorites);
474 ILFree(pidlUserFavorites);
487 HMENU favoritesHMenu;
491 static const TCHAR szFavoritesKey[] =
492 _T(
"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MenuOrder\\Favorites");
503 hResult = parentMenu->GetMenu(&parentHMenu, &ownerWindow,
NULL);
507 if (favoritesHMenu ==
NULL)
526 hResult = newMenu->SetShellFolder(favoritesFolder, favoritesPIDL, orderRegKey, SMSET_BOTTOM | SMINIT_CACHED | SMINV_ID);
536 hResult =
fFavoritesMenu->SetMenu(favoritesHMenu, ownerWindow, SMSET_TOP | SMSET_DONTOWN);
575 case SMC_GETSFOBJECT:
583 case SMC_SFSELECTITEM:
596 case SMC_DEFAULTICON:
600 case SMC_CHEVRONEXPAND:
602 case SMC_DISPLAYCHEVRONTIP:
604 case SMC_SETSFOBJECT:
606 case SMC_SHCHANGENOTIFY:
608 case SMC_CHEVRONGETTIP:
610 case SMC_SFDDRESTRICTED:
649 rbbi.
cbSize =
sizeof(rbbi);
674 RECT availableBorderSpace;
679 hResult = dockingWindowSite->GetBorderDW(
static_cast<IDockingWindow *
>(
this), &availableBorderSpace);
683 if (maxHeight && availableBorderSpace.
bottom - availableBorderSpace.
top > maxHeight)
685 availableBorderSpace.
bottom = availableBorderSpace.
top + maxHeight;
712 hResult = menubar->Initialize(
callback, -1, ANCESTORDEFAULT, SMINIT_HORIZONTAL | SMINIT_TOPLEVEL);
738 hResult = menubar->SetMenu(hMenuBar, ownerWindow, SMSET_DONTOWN);
747 *pMenuBar = menubar.
Detach();
769 rebarBandInfo.
cbSize =
sizeof(rebarBandInfo);
772 for (
INT x = 0;
x < bandCount;
x++)
775 dockSite =
reinterpret_cast<CDockSite *
>(rebarBandInfo.lParam);
776 if (dockSite !=
NULL)
814 commandList[0].
cmdID = 0x1c;
815 commandList[1].
cmdID = 0x1d;
816 commandList[2].
cmdID = 0x1e;
817 commandList[3].
cmdID = 0x23;
990 RECT neededBorderSpace;
991 RECT availableBorderSpace = *prcBorder;
998 neededBorderSpace.
left = 0;
999 neededBorderSpace.
top = availableBorderSpace.
bottom - availableBorderSpace.
top;
1001 neededBorderSpace.
top += 3;
1002 neededBorderSpace.
right = 0;
1003 neededBorderSpace.
bottom = 0;
1011 hResult = dockingWindowSite->RequestBorderSpaceDW(
static_cast<IDockingWindow *
>(
this), &neededBorderSpace);
1015 hResult = dockingWindowSite->SetBorderSpaceDW(
static_cast<IDockingWindow *
>(
this), &neededBorderSpace);
1024 if (pClassID ==
NULL)
1026 *pClassID = CLSID_InternetToolbar;
1171 if (
IsEqualIID(*pguidCmdGroup, CGID_PrivCITCommands))
1175 switch (prgCmds->
cmdID)
1224 if (
IsEqualIID(*pguidCmdGroup, CGID_PrivCITCommands))
1274 switch(dispIdMember)
1283 if (pDispParams->cArgs != 2)
1288 V_I4(&pDispParams->rgvarg[1]));
1332 reinterpret_cast<WPARAM>(param10),
reinterpret_cast<LPARAM>(param14));
1346 if (theState ==
NULL)
1410 if (pUnkSite ==
NULL)
1423 if (ownerWindow ==
NULL)
1433 if (dockContainer ==
NULL)
1443 0, 0, 700, 60, dockContainer,
NULL, _AtlBaseModule.GetModuleInstance(),
NULL);
1456 if (ppvSite ==
NULL)
1459 return fSite->QueryInterface(
riid, ppvSite);
1587 hResult = webBrowser->GoBack();
1599 hResult = webBrowser->GoForward();
1649 wchar_t templateString[200];
1660 switch (notifyInfo->
iItem)
1665 hResult = browserService->GetTravelLog(&travelLog);
1666 hResult = travelLog->InsertMenuEntries(browserService, newMenu, 0, 1, 9,
TLMENUF_BACK);
1667 commandInfo.
cmdID = 0x1d;
1670 travelLog->CountEntries(browserService) > 1)
1674 if (
LoadStringW(_AtlBaseModule.GetResourceInstance(),
1675 IDS_HISTORYTEXT, templateString,
sizeof(templateString) /
sizeof(
wchar_t)) == 0)
1676 StringCbCopyW(templateString,
sizeof(templateString),
L"&History\tCtrl+H");
1681 params.rcExclude = bounds;
1688 Exec(&CGID_Explorer, 0x1d, 2, &parmIn,
NULL);
1690 else if (selectedItem != 0)
1691 hResult = travelLog->Travel(browserService, -selectedItem);
1697 hResult = browserService->GetTravelLog(&travelLog);
1698 hResult = travelLog->InsertMenuEntries(browserService, newMenu, 0, 1, 9,
TLMENUF_FORE);
1699 commandInfo.
cmdID = 0x1d;
1702 travelLog->CountEntries(browserService) > 1)
1706 if (
LoadStringW(_AtlBaseModule.GetResourceInstance(),
1707 IDS_HISTORYTEXT, templateString,
sizeof(templateString) /
sizeof(
wchar_t)) == 0)
1708 StringCbCopyW(templateString,
sizeof(templateString),
L"&History\tCtrl+H");
1713 params.rcExclude = bounds;
1720 Exec(&CGID_Explorer, 0x1d, 2, &parmIn,
NULL);
1722 else if (selectedItem != 0)
1723 hResult = travelLog->Travel(browserService, selectedItem);
1732 V_INTREF(&inValue) =
reinterpret_cast<INT *
>(&bounds);
1754 HMENU contextMenuBar;
1756 POINT clickLocation;
1765 hitTestInfo.
pt = clickLocation;
1768 if (hitTestInfo.
iBand == -1)
1771 rebarBandInfo.
cbSize =
sizeof(rebarBandInfo);
1774 bandID = rebarBandInfo.
wID;
1814 clickLocation.
x, clickLocation.
y, 0, m_hWnd,
NULL);
1868 wchar_t tempString[300];
1882 hResult = browserService->GetTravelLog(&travelLog);
1883 hResult = travelLog->GetToolTipText(browserService,
1885 0, tempString, 299);
1894 wcsncpy (pTTTW->szText, tempString,
sizeof(pTTTW->szText) /
sizeof(
wchar_t));
1909 bHandled = hResult ==
S_OK;
1915 NMHDR *notifyHeader;
1923 bHandled = hResult ==
S_OK;
2003 hr = menuWinEventHandler->OnWinEvent(hwndMenu, uMsg,
wParam,
lParam, &lres);
2029 wsprintfW(
path,
L"Software\\Microsoft\\Internet Explorer\\Toolbar\\%s", subkey);
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
#define STDMETHODCALLTYPE
HRESULT CAddressBand_CreateInstance(REFIID riid, void **ppv)
HRESULT CBrandBand_CreateInstance(REFIID riid, void **ppv)
HRESULT CBandProxy_CreateInstance(REFIID riid, void **ppv)
HRESULT CToolsBand_CreateInstance(REFIID riid, void **ppv)
static BOOL IsGoButtonVisible(IUnknown *pUnkBand)
CInternetToolbar * fToolbar
CComPtr< IUnknown > fContainedBand
STDMETHOD() QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) override
STDMETHOD() GetBorderDW(IUnknown *punkObj, LPRECT prcBorder) override
HRESULT GetRBBandInfo(REBARBANDINFOW &bandInfo)
STDMETHOD() ContextSensitiveHelp(BOOL fEnterMode) override
STDMETHOD() OnFocusChangeIS(IUnknown *punkObj, BOOL fSetFocus) override
STDMETHOD() GetWindow(HWND *lphwnd) override
STDMETHOD() SetBorderSpaceDW(IUnknown *punkObj, LPCBORDERWIDTHS pbw) override
IUnknown * GetContainedBand() const
HRESULT Initialize(IUnknown *containedBand, CInternetToolbar *browser, HWND hwnd, int bandID, int flags)
DESKBANDINFO fDeskBandInfo
STDMETHOD() Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) override
STDMETHOD() RequestBorderSpaceDW(IUnknown *punkObj, LPCBORDERWIDTHS pbw) override
STDMETHOD() QueryService(REFGUID guidService, REFIID riid, void **ppvObject) override
HRESULT WINAPI AtlAdvise(IUnknown *pUnkCP, IUnknown *pUnk, const IID *iid, DWORD *pdw)
HRESULT WINAPI AtlUnadvise(IUnknown *pUnkCP, const IID *iid, DWORD dw)
#define IDM_TOOLBARS_LOCKTOOLBARS
#define IDM_GOTO_UPONELEVEL
#define IDM_TOOLBARS_TEXTLABELS
#define IDM_TOOLBARS_STANDARDBUTTONS
#define IDM_NOTIFYITBARDIRTY
#define IDM_EXPLORERBAR_HISTORY
#define IDM_CABINET_CONTEXTMENU
#define IDM_TOOLBARS_GOBUTTON
#define IDM_FAVORITES_EMPTY
#define IDM_TOOLBARS_CUSTOMIZE
#define IDM_TOOLBARS_ADDRESSBAR
#define IDM_TOOLBARS_LINKSBAR
#define BWM_GETSETTINGSPTR
#define ERROR_NO_MORE_ITEMS
#define FAILED_UNEXPECTEDLY(hr)
HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, INT nFolder, LPITEMIDLIST *ppidl)
HRESULT WINAPI IUnknown_TranslateAcceleratorIO(IUnknown *lpUnknown, LPMSG lpMsg)
HRESULT WINAPI IUnknown_QueryStatus(IUnknown *lpUnknown, REFGUID pguidCmdGroup, ULONG cCmds, OLECMD *prgCmds, OLECMDTEXT *pCmdText)
DWORD WINAPI SHCheckMenuItem(HMENU hMenu, UINT uID, BOOL bCheck)
HRESULT WINAPI IUnknown_HasFocusIO(IUnknown *lpUnknown)
UINT WINAPI SHEnableMenuItem(HMENU hMenu, UINT wItemID, BOOL bEnable)
HRESULT WINAPI IUnknown_QueryService(IUnknown *, REFGUID, REFIID, LPVOID *)
HRESULT WINAPI IUnknown_Exec(IUnknown *lpUnknown, REFGUID pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
HRESULT WINAPI SHInvokeDefaultCommand(HWND hWnd, IShellFolder *lpFolder, LPCITEMIDLIST lpApidl)
HWND WINAPI SHCreateWorkerWindowW(WNDPROC wndProc, HWND hWndParent, DWORD dwExStyle, DWORD dwStyle, HMENU hMenu, LONG_PTR wnd_extra)
HRESULT WINAPI IUnknown_GetWindow(IUnknown *lpUnknown, HWND *lphWnd)
HRESULT WINAPI IUnknown_SetSite(IUnknown *obj, IUnknown *site)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
GLint GLint GLint GLint GLint x
GLenum const GLfloat * params
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct IOleCommandTarget::_tagOLECMDTEXT OLECMDTEXT
struct IOleCommandTarget::_tagOLECMD OLECMD
HRESULT Write([in, size_is(cb)] const void *pv, [in] ULONG cb, [out] ULONG *pcbWritten)
HRESULT Read([out, size_is(cb), length_is(*pcbRead)] void *pv, [in] ULONG cb, [out] ULONG *pcbRead)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
nsresult QueryInterface(nsIIDRef riid, void **result)
static const struct bandInfoStruct bandInfo[9]
#define COM_INTERFACE_ENTRY_IID(iid, x)
static IPrintDialogCallback callback
static HMODULE MODULEINFO DWORD cb
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
static VARIANTARG static DISPID
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
#define MAKEINTRESOURCE(i)
const GUID IID_IOleWindow
void WINAPI ILFree(LPITEMIDLIST pidl)
struct tagREBARBANDINFOW REBARBANDINFOW
#define CCS_NOPARENTALIGN
#define RBBS_GRIPPERALWAYS
#define RBBS_VARIABLEHEIGHT
#define IsEqualIID(riid1, riid2)
IStream *WINAPI SHOpenRegStream2W(HKEY hKey, LPCWSTR pszSubkey, LPCWSTR pszValue, DWORD dwMode)
static __inline const char * wine_dbgstr_guid(const GUID *id)
#define SID_SShellBrowser
#define CSIDL_COMMON_FAVORITES
#define FCIDM_MENU_FAVORITES
#define FCIDM_SHVIEW_AUTOARRANGE
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
#define ITID_LINKSBANDSHOWN
#define ITID_TOOLBARBANDSHOWN
#define ITBBID_ADDRESSBAND
#define ITID_AUTOHIDEENABLED
#define ITID_MENUBANDSHOWN
#define ITID_CUSTOMIZEENABLED
#define ITID_ADDRESSBANDSHOWN
#define ITID_TOOLBARLOCKED
_In_ WDFCOLLECTION _In_ ULONG Index
#define DISPID_NAVIGATECOMPLETE2
#define DISPID_BEFORENAVIGATE
#define DISPID_COMMANDSTATECHANGE
#define DISPID_DOWNLOADCOMPLETE
#define DISPID_DOWNLOADBEGIN
#define DISPID_DOCUMENTCOMPLETE
_In_ PSID _Out_writes_to_opt_ cchName LPSTR _Inout_ LPDWORD cchName
_In_ DWORD _Out_ _In_ WORD wFlags
_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)
#define HKEY_CURRENT_USER
HWND WINAPI SetCapture(_In_ HWND hWnd)
HMENU WINAPI CreatePopupMenu(void)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI ReleaseCapture(void)
DWORD WINAPI GetMessagePos(void)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WS_EX_RIGHTSCROLLBAR
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)
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI DeleteMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
BOOL WINAPI TrackPopupMenuEx(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _In_ HWND, _In_opt_ LPTPMPARAMS)
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI DestroyMenu(_In_ HMENU)
#define SWP_NOOWNERZORDER
int WINAPI GetDlgCtrlID(_In_ HWND)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
BOOL WINAPI DestroyWindow(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI AppendMenuW(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)
#define IID_PPV_ARG(Itype, ppType)