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 114 of file CFontMenu.cpp.
116{
117 if (cidl > 0)
118 {
120 int nkeys = 0;
122
123
125
128
129
130 return spMenu->QueryInterface(
riid, ppvOut);
131 }
132
133
135}
#define FAILED_UNEXPECTEDLY(hr)
Referenced by CFontExt::GetUIObjectOf().
◆ DFM_TO_STR()
Definition at line 13 of file CFontMenu.cpp.
14{
15 switch(uMsg)
16 {
28 case 3: return "MENU_BEGIN";
29 case 4: return "MENU_END";
30 default: return "";
31 }
32}
#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 57 of file CFontMenu.cpp.
59{
61 switch (uMsg)
62 {
64 {
66
75
77 }
79
81 {
82 CDataObjectHIDA cida(pdtobj);
83
85 return cida.hr();
86
87 for (
UINT n = 0;
n < cida->cidl; ++
n)
88 {
91 }
93 }
95 {
96 TRACE(
"Default properties handling!\n");
98 }
99 else
100 {
101 ERR(
"Unhandled DFM_INVOKECOMMAND(wParam=0x%x)\n",
wParam);
102 }
104
109 }
111}
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 35 of file CFontMenu.cpp.
36{
37 WCHAR FontViewerPath[
MAX_PATH] =
L"%SystemRoot%\\System32\\fontview.exe";
39
42 {
43
46
50 si.
lpFile = FontViewerPath;
54 }
55}
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 |
| ) |
|