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);
664 RECT availableBorderSpace;
669 hResult = dockingWindowSite->GetBorderDW(
static_cast<IDockingWindow *
>(
this), &availableBorderSpace);
673 if (maxHeight && availableBorderSpace.
bottom - availableBorderSpace.
top > maxHeight)
675 availableBorderSpace.
bottom = availableBorderSpace.
top + maxHeight;
702 hResult = menubar->Initialize(
callback, -1, ANCESTORDEFAULT, SMINIT_HORIZONTAL | SMINIT_TOPLEVEL);
728 hResult = menubar->SetMenu(hMenuBar, ownerWindow, SMSET_DONTOWN);
737 *pMenuBar = menubar.
Detach();
759 rebarBandInfo.
cbSize =
sizeof(rebarBandInfo);
762 for (
INT x = 0;
x < bandCount;
x++)
765 dockSite =
reinterpret_cast<CDockSite *
>(rebarBandInfo.lParam);
766 if (dockSite !=
NULL)
804 commandList[0].
cmdID = 0x1c;
805 commandList[1].
cmdID = 0x1d;
806 commandList[2].
cmdID = 0x1e;
807 commandList[3].
cmdID = 0x23;
980 RECT neededBorderSpace;
981 RECT availableBorderSpace = *prcBorder;
988 neededBorderSpace.
left = 0;
989 neededBorderSpace.
top = availableBorderSpace.
bottom - availableBorderSpace.
top;
991 neededBorderSpace.
top += 3;
992 neededBorderSpace.
right = 0;
993 neededBorderSpace.
bottom = 0;
1001 hResult = dockingWindowSite->RequestBorderSpaceDW(
static_cast<IDockingWindow *
>(
this), &neededBorderSpace);
1005 hResult = dockingWindowSite->SetBorderSpaceDW(
static_cast<IDockingWindow *
>(
this), &neededBorderSpace);
1014 if (pClassID ==
NULL)
1016 *pClassID = CLSID_InternetToolbar;
1161 if (
IsEqualIID(*pguidCmdGroup, CGID_PrivCITCommands))
1165 switch (prgCmds->
cmdID)
1214 if (
IsEqualIID(*pguidCmdGroup, CGID_PrivCITCommands))
1262 switch(dispIdMember)
1271 if (pDispParams->cArgs != 2)
1276 V_I4(&pDispParams->rgvarg[1]));
1320 reinterpret_cast<WPARAM>(param10),
reinterpret_cast<LPARAM>(param14));
1334 if (theState ==
NULL)
1398 if (pUnkSite ==
NULL)
1411 if (ownerWindow ==
NULL)
1421 if (dockContainer ==
NULL)
1431 0, 0, 700, 60, dockContainer,
NULL, _AtlBaseModule.GetModuleInstance(),
NULL);
1444 if (ppvSite ==
NULL)
1447 return fSite->QueryInterface(
riid, ppvSite);
1575 hResult = webBrowser->GoBack();
1587 hResult = webBrowser->GoForward();
1637 wchar_t templateString[200];
1648 switch (notifyInfo->
iItem)
1653 hResult = browserService->GetTravelLog(&travelLog);
1654 hResult = travelLog->InsertMenuEntries(browserService, newMenu, 0, 1, 9,
TLMENUF_BACK);
1655 commandInfo.
cmdID = 0x1d;
1658 travelLog->CountEntries(browserService) > 1)
1662 if (
LoadStringW(_AtlBaseModule.GetResourceInstance(),
1663 IDS_HISTORYTEXT, templateString,
sizeof(templateString) /
sizeof(
wchar_t)) == 0)
1664 StringCbCopyW(templateString,
sizeof(templateString),
L"&History\tCtrl+H");
1669 params.rcExclude = bounds;
1676 Exec(&CGID_Explorer, 0x1d, 2, &parmIn,
NULL);
1678 else if (selectedItem != 0)
1679 hResult = travelLog->Travel(browserService, -selectedItem);
1685 hResult = browserService->GetTravelLog(&travelLog);
1686 hResult = travelLog->InsertMenuEntries(browserService, newMenu, 0, 1, 9,
TLMENUF_FORE);
1687 commandInfo.
cmdID = 0x1d;
1690 travelLog->CountEntries(browserService) > 1)
1694 if (
LoadStringW(_AtlBaseModule.GetResourceInstance(),
1695 IDS_HISTORYTEXT, templateString,
sizeof(templateString) /
sizeof(
wchar_t)) == 0)
1696 StringCbCopyW(templateString,
sizeof(templateString),
L"&History\tCtrl+H");
1701 params.rcExclude = bounds;
1708 Exec(&CGID_Explorer, 0x1d, 2, &parmIn,
NULL);
1710 else if (selectedItem != 0)
1711 hResult = travelLog->Travel(browserService, selectedItem);
1720 V_INTREF(&inValue) =
reinterpret_cast<INT *
>(&bounds);
1742 HMENU contextMenuBar;
1744 POINT clickLocation;
1752 hitTestInfo.
pt = clickLocation;
1755 if (hitTestInfo.
iBand == -1)
1758 rebarBandInfo.
cbSize =
sizeof(rebarBandInfo);
1761 bandID = rebarBandInfo.
wID;
1799 clickLocation.
x, clickLocation.
y, 0, m_hWnd,
NULL);
1853 wchar_t tempString[300];
1867 hResult = browserService->GetTravelLog(&travelLog);
1868 hResult = travelLog->GetToolTipText(browserService,
1870 0, tempString, 299);
1879 wcsncpy (pTTTW->szText, tempString,
sizeof(pTTTW->szText) /
sizeof(
wchar_t));
1894 bHandled = hResult ==
S_OK;
1900 NMHDR *notifyHeader;
1908 bHandled = hResult ==
S_OK;
1988 hr = menuWinEventHandler->OnWinEvent(hwndMenu, uMsg,
wParam,
lParam, &lres);
2014 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)
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)
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
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)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
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)