|
| CDefViewBckgrndMenu () |
|
| ~CDefViewBckgrndMenu () |
|
HRESULT | Initialize (IShellFolder *psf) |
|
STDMETHOD() | QueryContextMenu (HMENU hMenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) override |
|
STDMETHOD() | InvokeCommand (LPCMINVOKECOMMANDINFO lpcmi) override |
|
STDMETHOD() | GetCommandString (UINT_PTR idCommand, UINT uFlags, UINT *lpReserved, LPSTR lpszName, UINT uMaxNameLen) override |
|
STDMETHOD() | HandleMenuMsg (UINT uMsg, WPARAM wParam, LPARAM lParam) override |
|
STDMETHOD() | HandleMenuMsg2 (UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *plResult) override |
|
STDMETHOD() | SetSite (IUnknown *pUnkSite) override |
|
STDMETHOD() | GetSite (REFIID riid, void **ppvSite) override |
|
| ~CComObjectRootEx () |
|
ULONG | InternalAddRef () |
|
ULONG | InternalRelease () |
|
void | Lock () |
|
void | Unlock () |
|
HRESULT | _AtlInitialConstruct () |
|
| CComObjectRootBase () |
|
| ~CComObjectRootBase () |
|
void | SetVoid (void *) |
|
HRESULT | _AtlFinalConstruct () |
|
HRESULT | FinalConstruct () |
|
void | InternalFinalConstructAddRef () |
|
void | InternalFinalConstructRelease () |
|
void | FinalRelease () |
|
HRESULT | HandleMenuMsg2 ([in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam, [out] LRESULT *plResult) |
|
HRESULT | HandleMenuMsg ([in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam) |
|
HRESULT | QueryContextMenu ([in] HMENU hmenu, [in] UINT indexMenu, [in] UINT idCmdFirst, [in] UINT idCmdLast, [in] UINT uFlags) |
|
HRESULT | InvokeCommand ([in] LPCMINVOKECOMMANDINFO lpici) |
|
HRESULT | GetCommandString ([in] UINT_PTR idCmd, [in] UINT uType, [out] UINT *pwReserved, [out, size_is(cchMax)] LPSTR pszName, [in] UINT cchMax) |
|
HRESULT | QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject) |
|
ULONG | AddRef () |
|
ULONG | Release () |
|
HRESULT | SetSite ([in] IUnknown *pUnkSite) |
|
HRESULT | GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite) |
|
Definition at line 13 of file CDefViewBckgrndMenu.cpp.
◆ CDefViewBckgrndMenu()
CDefViewBckgrndMenu::CDefViewBckgrndMenu |
( |
| ) |
|
◆ ~CDefViewBckgrndMenu()
CDefViewBckgrndMenu::~CDefViewBckgrndMenu |
( |
| ) |
|
◆ _bCanPaste()
BOOL CDefViewBckgrndMenu::_bCanPaste |
( |
| ) |
|
|
private |
Definition at line 85 of file CDefViewBckgrndMenu.cpp.
86{
87
92
93
98
99 STGMEDIUM medium;
100 FORMATETC formatetc;
101
102
104 hr = pDataObj->GetData(&formatetc, &medium);
107
110}
HRESULT WINAPI OleGetClipboard(IDataObject **obj)
void WINAPI ReleaseStgMedium(STGMEDIUM *pmedium)
#define InitFormatEtc(fe, cf, med)
#define CFSTR_SHELLIDLIST
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
#define IID_PPV_ARG(Itype, ppType)
Referenced by QueryContextMenu().
◆ _bIsDesktopBrowserMenu()
BOOL CDefViewBckgrndMenu::_bIsDesktopBrowserMenu |
( |
| ) |
|
|
private |
Definition at line 66 of file CDefViewBckgrndMenu.cpp.
67{
70
71
76
78 hr = psv->GetCurrentInfo(&FolderSettings);
81
83}
#define FAILED_UNEXPECTEDLY(hr)
HRESULT WINAPI IUnknown_QueryService(IUnknown *, REFGUID, REFIID, LPVOID *)
Referenced by QueryContextMenu().
◆ GetCommandString()
◆ GetSite()
◆ HandleMenuMsg()
◆ HandleMenuMsg2()
◆ Initialize()
◆ InvokeCommand()
Implements IContextMenu.
Definition at line 216 of file CDefViewBckgrndMenu.cpp.
217{
219
220 if (
HIWORD(lpcmi->lpVerb) && !
strcmp(lpcmi->lpVerb, CMDSTR_VIEWLISTA))
221 {
223 }
224 else if (
HIWORD(lpcmi->lpVerb) && !
strcmp(lpcmi->lpVerb, CMDSTR_VIEWDETAILSA))
225 {
227 }
229 {
231 {
233 }
234 WARN(
"m_folderCM is NULL!\n");
236 }
237 else
238 {
239
241 }
242
243
244 switch (idCmd)
245 {
249 {
252 }
253 WARN(
"m_folderCM is NULL!\n");
265
266
271
276 }
277
278 ERR(
"Got unknown command id %ul\n",
LOWORD(lpcmi->lpVerb));
280}
int strcmp(const char *String1, const char *String2)
#define FCIDM_SHVIEW_AUTOARRANGE
#define FCIDM_SHVIEW_LISTVIEW
#define FCIDM_SHVIEW_ALIGNTOGRID
#define FCIDM_SHVIEW_BIGICON
#define FCIDM_SHVIEW_INSERTLINK
#define FCIDM_SHVIEW_REFRESH
#define FCIDM_SHVIEW_SMALLICON
#define FCIDM_SHVIEW_SNAPTOGRID
#define FCIDM_SHVIEW_REPORTVIEW
#define FCIDM_SHVIEW_INSERT
#define MAKEINTRESOURCEA(i)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
◆ QueryContextMenu()
Implements IContextMenu.
Definition at line 148 of file CDefViewBckgrndMenu.cpp.
149{
153
154
155
156
157
158
159
160
161
162
163
165
166
168 {
171 {
174 }
175 else
176 {
177 WARN(
"QueryContextMenu failed!\n");
178 }
179 }
180 else
181 {
182 WARN(
"GetUIObjectOf didn't give any context menu!\n");
183 }
184
185
187 if (hMenuPart)
188 {
189
191 {
193 }
194
195
197 {
200 }
201
202
205 }
206 else
207 {
208 ERR(
"Failed to load menu from resource!\n");
209 }
210
212}
#define shell32_hInstance
#define MAKE_HRESULT(sev, fac, code)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define MM_SUBMENUSHAVEIDS
#define MM_DONTREMOVESEPS
#define FCIDM_SHVIEW_VIEW
BOOL WINAPI DeleteMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI DestroyMenu(_In_ HMENU)
HMENU WINAPI LoadMenuW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
◆ SetSite()
◆ m_folderCM
◆ m_idCmdFirst
UINT CDefViewBckgrndMenu::m_idCmdFirst |
|
private |
◆ m_LastFolderCMId
UINT CDefViewBckgrndMenu::m_LastFolderCMId |
|
private |
◆ m_psf
◆ m_site
The documentation for this class was generated from the following file: