ReactOS 0.4.15-dev-8428-g6910fa6
CMenuToolbars.cpp File Reference
#include "shellmenu.h"
#include <commoncontrols.h>
#include <shlwapi_undoc.h>
#include <uxtheme.h>
#include <vssym32.h>
#include "CMenuBand.h"
#include "CMenuToolbars.h"
Include dependency graph for CMenuToolbars.cpp:

Go to the source code of this file.

Macros

#define IDS_MENU_EMPTY   34561
 
#define USE_TBSTYLE_EX_VERTICAL   0
 
#define TIMERID_HOTTRACK   1
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (CMenuToolbars)
 
int CALLBACK PidlListSort (void *item1, void *item2, LPARAM lParam)
 
static BOOL IsPidlPrograms (LPCITEMIDLIST pidlTarget)
 

Macro Definition Documentation

◆ IDS_MENU_EMPTY

#define IDS_MENU_EMPTY   34561

Definition at line 29 of file CMenuToolbars.cpp.

◆ TIMERID_HOTTRACK

#define TIMERID_HOTTRACK   1

Definition at line 37 of file CMenuToolbars.cpp.

◆ USE_TBSTYLE_EX_VERTICAL

#define USE_TBSTYLE_EX_VERTICAL   0

Definition at line 34 of file CMenuToolbars.cpp.

Function Documentation

◆ IsPidlPrograms()

static BOOL IsPidlPrograms ( LPCITEMIDLIST  pidlTarget)
static

Definition at line 1326 of file CMenuToolbars.cpp.

1327{
1328 WCHAR szTarget[MAX_PATH], szPath[MAX_PATH];
1329 if (!SHGetPathFromIDListW(pidlTarget, szTarget))
1330 return FALSE;
1332 if (lstrcmpiW(szTarget, szPath) == 0)
1333 return TRUE;
1335 return (lstrcmpiW(szTarget, szPath) == 0);
1336}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define MAX_PATH
Definition: compat.h:34
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
Definition: locale.c:4261
BOOL WINAPI SHGetSpecialFolderPathW(HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate)
Definition: shellpath.c:3092
LPCWSTR szPath
Definition: env.c:37
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
Definition: pidl.c:1342
#define CSIDL_COMMON_PROGRAMS
Definition: shlobj.h:2194
#define CSIDL_PROGRAMS
Definition: shlobj.h:2174
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by CMenuSFToolbar::FillToolbar().

◆ PidlListSort()

int CALLBACK PidlListSort ( void item1,
void item2,
LPARAM  lParam 
)

Definition at line 1312 of file CMenuToolbars.cpp.

1313{
1314 IShellFolder * psf = (IShellFolder*) lParam;
1317 HRESULT hr = psf->CompareIDs(0, pidl1, pidl2);
1318 if (FAILED(hr))
1319 {
1320 // No way to cancel, so sort to equal.
1321 return 0;
1322 }
1323 return (int)(short)LOWORD(hr);
1324}
LPARAM lParam
Definition: combotst.c:139
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
Definition: typeof.h:94
HRESULT CompareIDs([in] LPARAM lParam, [in] PCUIDLIST_RELATIVE pidl1, [in] PCUIDLIST_RELATIVE pidl2)
#define FAILED(hr)
Definition: intsafe.h:51
static const struct metadata_item item1[]
Definition: metadata.c:2802
static const struct metadata_item item2[]
Definition: metadata.c:2807
#define LOWORD(l)
Definition: pedump.c:82
HRESULT hr
Definition: shlfolder.c:183
const ITEMIDLIST_RELATIVE UNALIGNED * PCUIDLIST_RELATIVE
Definition: shtypes.idl:57

Referenced by CMenuSFToolbar::FillToolbar().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( CMenuToolbars  )