ReactOS 0.4.15-dev-8102-g108db8f
COpenWithMenu Class Reference

#include <COpenWithMenu.h>

Inheritance diagram for COpenWithMenu:
Collaboration diagram for COpenWithMenu:

Public Member Functions

 COpenWithMenu ()
 
 ~COpenWithMenu ()
 
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() Initialize (PCIDLIST_ABSOLUTE pidlFolder, IDataObject *pdtobj, HKEY hkeyProgID) override
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
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)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 
HRESULT Initialize ([in] PCIDLIST_ABSOLUTE pidlFolder, [in] IDataObject *pdtobj, [in] HKEY hkeyProgID)
 

Private Member Functions

HBITMAP IconToBitmap (HICON hIcon)
 
VOID AddChooseProgramItem ()
 
VOID AddApp (PVOID pApp)
 

Private Attributes

UINT m_idCmdFirst
 
UINT m_idCmdLast
 
WCHAR m_wszPath [MAX_PATH]
 
HMENU m_hSubMenu
 
COpenWithListm_pAppList
 

Additional Inherited Members

- Public Types inherited from IContextMenu2
typedef IContextMenu2LPCONTEXTMENU2
 
- Public Types inherited from IContextMenu
typedef IContextMenuLPCONTEXTMENU
 
typedef struct IContextMenu::tagCMINVOKECOMMANDINFO CMINVOKECOMMANDINFO
 
typedef struct IContextMenu::tagCMINVOKECOMMANDINFOLPCMINVOKECOMMANDINFO
 
typedef struct IContextMenu::tagCMInvokeCommandInfoEx CMINVOKECOMMANDINFOEX
 
typedef struct IContextMenu::tagCMInvokeCommandInfoExLPCMINVOKECOMMANDINFOEX
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Types inherited from IShellExtInit
typedef IShellExtInitLPSHELLEXTINIT
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 
- Static Public Attributes inherited from IContextMenu
static const WCHAR CMDSTR_NEWFOLDERW [] = {'N','e','w','F','o','l','d','e','r',0}
 
static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0}
 
static const WCHAR CMDSTR_VIEWDETAILSW [] = {'V','i','e','w','D','e','t','a','i','l','s',0}
 

Detailed Description

Definition at line 28 of file COpenWithMenu.h.

Constructor & Destructor Documentation

◆ COpenWithMenu()

COpenWithMenu::COpenWithMenu ( )

Definition at line 1117 of file COpenWithMenu.cpp.

1118{
1119 m_idCmdFirst = 0;
1120 m_idCmdLast = 0;
1122}
COpenWithList * m_pAppList
Definition: COpenWithMenu.h:38

◆ ~COpenWithMenu()

COpenWithMenu::~COpenWithMenu ( )

Definition at line 1124 of file COpenWithMenu.cpp.

1125{
1126 TRACE("Destroying COpenWithMenu(%p)\n", this);
1127
1128 if (m_hSubMenu)
1129 {
1130 INT Count, Index;
1131 MENUITEMINFOW mii;
1132
1133 /* get item count */
1135 if (Count == -1)
1136 return;
1137
1138 /* setup menuitem info */
1139 ZeroMemory(&mii, sizeof(mii));
1140 mii.cbSize = sizeof(mii);
1142
1143 for(Index = 0; Index < Count; Index++)
1144 {
1146 {
1147 if (mii.hbmpChecked)
1149 }
1150 }
1151 }
1152
1153 if (m_pAppList)
1154 delete m_pAppList;
1155}
#define TRUE
Definition: types.h:120
pKey DeleteObject()
int Count
Definition: noreturn.cpp:7
#define TRACE(s)
Definition: solgame.cpp:4
HBITMAP hbmpChecked
Definition: winuser.h:3266
int32_t INT
Definition: typedefs.h:58
_In_ WDFCOLLECTION _In_ ULONG Index
#define ZeroMemory
Definition: winbase.h:1712
int WINAPI GetMenuItemCount(_In_opt_ HMENU)
#define MIIM_CHECKMARKS
Definition: winuser.h:724
#define MIIM_FTYPE
Definition: winuser.h:729
BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW)
#define MIIM_DATA
Definition: winuser.h:726

Member Function Documentation

◆ AddApp()

VOID COpenWithMenu::AddApp ( PVOID  pApp)
private

Definition at line 1208 of file COpenWithMenu.cpp.

1209{
1210 MENUITEMINFOW mii;
1211 LPCWSTR pwszName = m_pAppList->GetName((COpenWithList::SApp*)pApp);
1212 if (!pwszName) return;
1213
1214 ZeroMemory(&mii, sizeof(mii));
1215 mii.cbSize = sizeof(mii);
1217 mii.fType = MFT_STRING;
1218 mii.fState = MFS_ENABLED;
1219 mii.wID = m_idCmdLast;
1220 mii.dwTypeData = const_cast<LPWSTR>(pwszName);
1221 mii.cch = wcslen(mii.dwTypeData);
1222 mii.dwItemData = (ULONG_PTR)pApp;
1223
1225 if (hIcon)
1226 {
1227 mii.fMask |= MIIM_CHECKMARKS;
1229 }
1230
1231 if (InsertMenuItemW(m_hSubMenu, -1, TRUE, &mii))
1232 m_idCmdLast++;
1233}
static LPCWSTR GetName(SApp *pApp)
static HICON GetIcon(SApp *pApp)
HBITMAP IconToBitmap(HICON hIcon)
#define ULONG_PTR
Definition: config.h:101
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static HICON
Definition: imagelist.c:84
HICON hIcon
Definition: msconfig.c:44
ULONG_PTR dwItemData
Definition: winuser.h:3268
LPWSTR dwTypeData
Definition: winuser.h:3269
HBITMAP hbmpUnchecked
Definition: winuser.h:3267
#define MIIM_ID
Definition: winuser.h:722
#define MIIM_STATE
Definition: winuser.h:721
#define MFS_ENABLED
Definition: winuser.h:750
#define MFT_STRING
Definition: winuser.h:746
#define MIIM_TYPE
Definition: winuser.h:725
BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW)
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by QueryContextMenu().

◆ AddChooseProgramItem()

VOID COpenWithMenu::AddChooseProgramItem ( )
private

Definition at line 1180 of file COpenWithMenu.cpp.

1181{
1182 MENUITEMINFOW mii;
1183 WCHAR wszBuf[128];
1184
1185 ZeroMemory(&mii, sizeof(mii));
1186 mii.cbSize = sizeof(mii);
1187 mii.fMask = MIIM_TYPE | MIIM_ID;
1188 mii.fType = MFT_SEPARATOR;
1189 mii.wID = -1;
1190 InsertMenuItemW(m_hSubMenu, -1, TRUE, &mii);
1191
1193 {
1194 ERR("Failed to load string\n");
1195 return;
1196 }
1197
1199 mii.fType = MFT_STRING;
1200 mii.fState = MFS_ENABLED;
1201 mii.wID = m_idCmdLast;
1202 mii.dwTypeData = (LPWSTR)wszBuf;
1203 mii.cch = wcslen(wszBuf);
1204
1205 InsertMenuItemW(m_hSubMenu, -1, TRUE, &mii);
1206}
#define shell32_hInstance
#define ERR(fmt,...)
Definition: debug.h:113
#define IDS_OPEN_WITH_CHOOSE
Definition: shresdef.h:137
#define _countof(array)
Definition: sndvol32.h:70
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define MFT_SEPARATOR
Definition: winuser.h:744
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by QueryContextMenu().

◆ GetCommandString()

HRESULT WINAPI COpenWithMenu::GetCommandString ( UINT_PTR  idCommand,
UINT  uFlags,
UINT lpReserved,
LPSTR  lpszName,
UINT  uMaxNameLen 
)
override

Implements IContextMenu.

Definition at line 1352 of file COpenWithMenu.cpp.

1354{
1355 FIXME("%p %lu %u %p %p %u\n", this,
1356 idCmd, uType, pwReserved, pszName, cchMax );
1357
1358 return E_NOTIMPL;
1359}
UINT cchMax
#define FIXME(fmt,...)
Definition: debug.h:114
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HandleMenuMsg()

HRESULT WINAPI COpenWithMenu::HandleMenuMsg ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
override

Implements IContextMenu2.

Definition at line 1361 of file COpenWithMenu.cpp.

1365{
1366 TRACE("This %p uMsg %x\n", this, uMsg);
1367
1368 return E_NOTIMPL;
1369}

◆ IconToBitmap()

HBITMAP COpenWithMenu::IconToBitmap ( HICON  hIcon)
private

Definition at line 1157 of file COpenWithMenu.cpp.

1158{
1159 HDC hdc, hdcScr;
1160 HBITMAP hbm, hbmOld;
1161 RECT rc;
1162
1163 hdcScr = GetDC(NULL);
1164 hdc = CreateCompatibleDC(hdcScr);
1166 hbm = CreateCompatibleBitmap(hdcScr, rc.right, rc.bottom);
1167 ReleaseDC(NULL, hdcScr);
1168
1169 hbmOld = (HBITMAP)SelectObject(hdc, hbm);
1170 FillRect(hdc, &rc, (HBRUSH)(COLOR_MENU + 1));
1171 if (!DrawIconEx(hdc, 0, 0, hIcon, rc.right, rc.bottom, 0, NULL, DI_NORMAL))
1172 ERR("DrawIcon failed: %x\n", GetLastError());
1173 SelectObject(hdc, hbmOld);
1174
1175 DeleteDC(hdc);
1176
1177 return hbm;
1178}
#define NULL
Definition: types.h:112
HDC hdc
Definition: main.c:9
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:92
_In_ HBITMAP hbm
Definition: ntgdi.h:2776
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1539
#define DI_NORMAL
Definition: wingdi.h:72
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI DeleteDC(_In_ HDC)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
#define COLOR_MENU
Definition: winuser.h:917
#define SM_CXMENUCHECK
Definition: winuser.h:1031
#define SM_CYMENUCHECK
Definition: winuser.h:1032
BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT)
Definition: cursoricon.c:2059
HDC WINAPI GetDC(_In_opt_ HWND)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)

Referenced by AddApp().

◆ Initialize()

HRESULT WINAPI COpenWithMenu::Initialize ( PCIDLIST_ABSOLUTE  pidlFolder,
IDataObject pdtobj,
HKEY  hkeyProgID 
)
override

Implements IShellExtInit.

Definition at line 1372 of file COpenWithMenu.cpp.

1375{
1376 LPCITEMIDLIST pidlFolder2;
1377 LPCITEMIDLIST pidlChild;
1378
1379 TRACE("This %p\n", this);
1380
1381 if (pdtobj == NULL)
1382 return E_INVALIDARG;
1383
1384 CDataObjectHIDA pida(pdtobj);
1385 if (FAILED(pida.hr()))
1386 {
1387 ERR("pdtobj->GetData failed with 0x%x\n", pida.hr());
1388 return pida.hr();
1389 }
1390
1391 ASSERT(pida->cidl >= 1);
1392
1393 pidlFolder2 = HIDA_GetPIDLFolder(pida);
1394 pidlChild = HIDA_GetPIDLItem(pida, 0);
1395
1396 if (!_ILIsValue(pidlChild))
1397 {
1398 TRACE("pidl is not a file\n");
1399 return E_FAIL;
1400 }
1401
1402 CComHeapPtr<ITEMIDLIST> pidl(ILCombine(pidlFolder2, pidlChild));
1403 if (!pidl)
1404 {
1405 ERR("no mem\n");
1406 return E_OUTOFMEMORY;
1407 }
1408
1409 if (!SHGetPathFromIDListW(pidl, m_wszPath))
1410 {
1411 ERR("SHGetPathFromIDListW failed\n");
1412 return E_FAIL;
1413 }
1414
1415 TRACE("szPath %s\n", debugstr_w(m_wszPath));
1416
1418 if (PathIsExeW(pwszExt) || !_wcsicmp(pwszExt, L".lnk"))
1419 {
1420 TRACE("file is a executable or shortcut\n");
1421 return E_FAIL;
1422 }
1423
1424 return S_OK;
1425}
EXTERN_C BOOL PathIsExeW(LPCWSTR lpszPath)
Definition: shellpath.c:539
WCHAR m_wszPath[MAX_PATH]
Definition: COpenWithMenu.h:36
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_INVALIDARG
Definition: ddrawi.h:101
#define E_FAIL
Definition: ddrawi.h:102
LPWSTR WINAPI PathFindExtensionW(LPCWSTR lpszPath)
Definition: path.c:447
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define debugstr_w
Definition: kernel32.h:32
#define ASSERT(a)
Definition: mode.c:44
#define L(x)
Definition: ntvdm.h:50
LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
Definition: pidl.c:712
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
Definition: pidl.c:1340
BOOL _ILIsValue(LPCITEMIDLIST pidl)
Definition: pidl.c:2016
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
static PCUIDLIST_RELATIVE HIDA_GetPIDLItem(CIDA const *pida, SIZE_T i)
Definition: shellutils.h:589
static PCUIDLIST_ABSOLUTE HIDA_GetPIDLFolder(CIDA const *pida)
Definition: shellutils.h:584
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
Definition: shtypes.idl:42

◆ InvokeCommand()

HRESULT WINAPI COpenWithMenu::InvokeCommand ( LPCMINVOKECOMMANDINFO  lpcmi)
override

Implements IContextMenu.

Definition at line 1310 of file COpenWithMenu.cpp.

1311{
1312 HRESULT hr = E_FAIL;
1313
1314 TRACE("This %p idFirst %u idLast %u idCmd %u\n", this, m_idCmdFirst, m_idCmdLast, m_idCmdFirst + LOWORD(lpici->lpVerb));
1315
1316 if (HIWORD(lpici->lpVerb) == 0 && m_idCmdFirst + LOWORD(lpici->lpVerb) <= m_idCmdLast)
1317 {
1318 if (m_idCmdFirst + LOWORD(lpici->lpVerb) == m_idCmdLast)
1319 {
1322
1323 info.pcszFile = m_wszPath;
1324 info.oaifInFlags = OAIF_EXEC;
1325 if (pwszExt[0])
1327 info.pcszClass = NULL;
1328 hr = SHOpenWithDialog(lpici->hwnd, &info);
1329 }
1330 else
1331 {
1332 /* retrieve menu item info */
1333 MENUITEMINFOW mii;
1334 ZeroMemory(&mii, sizeof(mii));
1335 mii.cbSize = sizeof(mii);
1336 mii.fMask = MIIM_DATA | MIIM_FTYPE;
1337
1338 if (GetMenuItemInfoW(m_hSubMenu, LOWORD(lpici->lpVerb), TRUE, &mii) && mii.dwItemData)
1339 {
1340 /* launch item with specified app */
1343 hr = S_OK;
1344 }
1345 }
1346 }
1347
1348 return hr;
1349}
HRESULT WINAPI SHOpenWithDialog(HWND hwndParent, const OPENASINFO *poainfo)
static BOOL Execute(SApp *pApp, LPCWSTR pwszFilePath)
#define LOWORD(l)
Definition: pedump.c:82
HRESULT hr
Definition: shlfolder.c:183
@ OAIF_EXEC
Definition: shlobj.h:2668
@ OAIF_REGISTER_EXT
Definition: shlobj.h:2667
@ OAIF_ALLOW_REGISTRATION
Definition: shlobj.h:2666
#define HIWORD(l)
Definition: typedefs.h:247

◆ QueryContextMenu()

HRESULT WINAPI COpenWithMenu::QueryContextMenu ( HMENU  hMenu,
UINT  indexMenu,
UINT  idCmdFirst,
UINT  idCmdLast,
UINT  uFlags 
)
override

Implements IContextMenu.

Definition at line 1235 of file COpenWithMenu.cpp.

1241{
1242 TRACE("hMenu %p indexMenu %u idFirst %u idLast %u uFlags %u\n", hMenu, indexMenu, idCmdFirst, idCmdLast, uFlags);
1243
1244 INT DefaultPos = GetMenuDefaultItem(hMenu, TRUE, 0);
1245
1246 WCHAR wszName[100];
1247 UINT NameId = (DefaultPos == -1 ? IDS_OPEN : IDS_OPEN_WITH);
1248 if (!LoadStringW(shell32_hInstance, NameId, wszName, _countof(wszName)))
1249 {
1250 ERR("Failed to load string\n");
1251 return E_FAIL;
1252 }
1253
1254 /* Init first cmd id and submenu */
1255 m_idCmdFirst = m_idCmdLast = idCmdFirst;
1256 m_hSubMenu = NULL;
1257
1258 /* If we are going to be default item, we shouldn't be submenu */
1259 if (DefaultPos != -1)
1260 {
1261 /* Load applications list */
1262 m_pAppList->Load();
1264
1265 /* Create submenu only if there is more than one application and menu has a default item */
1267 {
1269
1270 for(UINT i = 0; i < m_pAppList->GetCount(); ++i)
1271 {
1273 if (pApp->bRecommended)
1274 AddApp(pApp);
1275 }
1276
1278 }
1279 }
1280
1281 /* Insert menu item */
1282 MENUITEMINFOW mii;
1283 ZeroMemory(&mii, sizeof(mii));
1284 mii.cbSize = sizeof(mii);
1286 if (m_hSubMenu)
1287 {
1288 mii.fMask |= MIIM_SUBMENU;
1289 mii.hSubMenu = m_hSubMenu;
1290 mii.wID = -1;
1291 }
1292 else
1293 mii.wID = m_idCmdLast;
1294
1295 mii.fType = MFT_STRING;
1296 mii.dwTypeData = (LPWSTR)wszName;
1297 mii.cch = wcslen(wszName);
1298
1299 mii.fState = MFS_ENABLED;
1300 if (DefaultPos == -1)
1301 mii.fState |= MFS_DEFAULT;
1302
1303 if (!InsertMenuItemW(hMenu, DefaultPos + 1, TRUE, &mii))
1304 return E_FAIL;
1305
1307}
#define IDS_OPEN
Definition: resource.h:18
BOOL LoadRecommended(LPCWSTR pwszFilePath)
UINT GetRecommendedCount()
SApp * GetList()
VOID AddChooseProgramItem()
VOID AddApp(PVOID pApp)
UINT uFlags
Definition: api.c:59
#define MAKE_HRESULT(sev, fac, code)
Definition: dmerror.h:30
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
Definition: glfuncs.h:248
unsigned int UINT
Definition: ndis.h:50
#define IDS_OPEN_WITH
Definition: shresdef.h:136
#define SEVERITY_SUCCESS
Definition: winerror.h:64
HMENU WINAPI CreatePopupMenu(void)
Definition: menu.c:838
UINT WINAPI GetMenuDefaultItem(_In_ HMENU hMenu, _In_ UINT fByPos, _In_ UINT gmdiFlags)
#define MFS_DEFAULT
Definition: winuser.h:748
#define MIIM_SUBMENU
Definition: winuser.h:723

Member Data Documentation

◆ m_hSubMenu

HMENU COpenWithMenu::m_hSubMenu
private

◆ m_idCmdFirst

UINT COpenWithMenu::m_idCmdFirst
private

Definition at line 35 of file COpenWithMenu.h.

Referenced by COpenWithMenu(), InvokeCommand(), and QueryContextMenu().

◆ m_idCmdLast

UINT COpenWithMenu::m_idCmdLast
private

◆ m_pAppList

COpenWithList* COpenWithMenu::m_pAppList
private

Definition at line 38 of file COpenWithMenu.h.

Referenced by AddApp(), COpenWithMenu(), QueryContextMenu(), and ~COpenWithMenu().

◆ m_wszPath

WCHAR COpenWithMenu::m_wszPath[MAX_PATH]
private

Definition at line 36 of file COpenWithMenu.h.

Referenced by Initialize(), InvokeCommand(), and QueryContextMenu().


The documentation for this class was generated from the following files: