Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (fontext) |
|
const char * | DFM_TO_STR (UINT uMsg) |
|
static void | RunFontViewer (HWND hwnd, const FontPidlEntry *fontEntry) |
|
static HRESULT CALLBACK | FontFolderMenuCallback (IShellFolder *psf, HWND hwnd, IDataObject *pdtobj, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
HRESULT | _CFontMenu_CreateInstance (HWND hwnd, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, IShellFolder *psf, REFIID riid, LPVOID *ppvOut) |
|
◆ _CFontMenu_CreateInstance()
Definition at line 111 of file CFontMenu.cpp.
113{
114 if (cidl > 0)
115 {
117 int nkeys = 0;
119
120
122
125
126
127 return spMenu->QueryInterface(
riid, ppvOut);
128 }
129
130
132}
#define FAILED_UNEXPECTEDLY(hr)
Referenced by CFontExt::GetUIObjectOf().
◆ DFM_TO_STR()
Definition at line 12 of file CFontMenu.cpp.
13{
14 switch(uMsg)
15 {
27 case 3: return "MENU_BEGIN";
28 case 4: return "MENU_END";
29 default: return "";
30 }
31}
#define DFM_GETDEFSTATICID
#define DFM_INVOKECOMMANDEX
#define DFM_MERGECONTEXTMENU
#define DFM_INVOKECOMMAND
#define DFM_WM_INITMENUPOPUP
#define DFM_MERGECONTEXTMENU_BOTTOM
#define DFM_MERGECONTEXTMENU_TOP
#define DFM_MODIFYQCMFLAGS
Referenced by FontFolderMenuCallback().
◆ FontFolderMenuCallback()
Definition at line 55 of file CFontMenu.cpp.
57{
59 switch (uMsg)
60 {
62 {
64
73
75 }
77
79 {
80 CDataObjectHIDA cida(pdtobj);
81
83 return cida.hr();
84
85 for (
UINT n = 0;
n < cida->cidl; ++
n)
86 {
89 }
91 }
93 {
94 TRACE(
"Default properties handling!\n");
96 }
97 else
98 {
99 ERR(
"Unhandled DFM_INVOKECOMMAND(wParam=0x%x)\n",
wParam);
100 }
102
107 }
109}
const FontPidlEntry * _FontFromIL(LPCITEMIDLIST pidl)
static PCUIDLIST_RELATIVE HIDA_GetPIDLItem(CIDA const *pida, SIZE_T i)
#define DFM_CMD_PROPERTIES
#define MAKEINTRESOURCEW(i)
BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW)
Referenced by _CFontMenu_CreateInstance().
◆ RunFontViewer()
Definition at line 33 of file CFontMenu.cpp.
34{
35 WCHAR FontViewerPath[
MAX_PATH] =
L"%SystemRoot%\\System32\\fontview.exe";
37
40 {
41
44
48 si.
lpFile = FontViewerPath;
52 }
53}
PRTL_UNICODE_STRING_BUFFER Path
CStringW Filename(CFontInfo *info, bool alwaysFullPath=false)
CFontInfo * Find(const FontPidlEntry *fontEntry)
VOID WINAPI PathQuoteSpacesW(LPWSTR lpszPath)
#define SEE_MASK_DOENVSUBST
BOOL WINAPI DECLSPEC_HOTPATCH ShellExecuteExW(LPSHELLEXECUTEINFOW sei)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
Referenced by FontFolderMenuCallback().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
fontext |
| ) |
|