Changeset 719
- Timestamp:
- 12/5/2008 11:53:24 PM (5 years ago)
- File:
-
- 1 edited
-
branches/eraser6/ShellExt/CtxMenu.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/ShellExt/CtxMenu.cpp
r716 r719 185 185 if (applicableActions & ACTION_ERASE_ON_RESTART) 186 186 { 187 InsertMenu (hSubmenu, ACTION_ERASE_ON_RESTART, MF_BYPOSITION, uID++, _T("Erase on &Restart"));187 InsertMenu (hSubmenu, ACTION_ERASE_ON_RESTART, MF_BYPOSITION, uID++, _T("Erase on &Restart")); 188 188 VerbMenuIndices.push_back(ACTION_ERASE_ON_RESTART); 189 189 } … … 197 197 { 198 198 if (uID - uidFirstCmd > 0) 199 InsertMenuItem(hSubmenu, 0, FALSE, GetSeparator()); 199 { 200 std::auto_ptr<MENUITEMINFO> separator(GetSeparator()); 201 InsertMenuItem(hSubmenu, 0, FALSE, separator); 202 } 203 200 204 InsertMenu (hSubmenu, ACTION_SECURE_MOVE, MF_BYPOSITION, uID++, _T("Secure &Move")); 201 205 VerbMenuIndices.push_back(ACTION_SECURE_MOVE); … … 478 482 std::wstringstream strm; 479 483 strm << L"An invalid command with the ID " 480 << VerbMenuIndices[LOWORD(pCmdInfo->lpVerb)] << L" was requested.\n\n"484 << VerbMenuIndices[LOWORD(pCmdInfo->lpVerb)] << L" was requested.\n\n" 481 485 << L"Eraser was unable to process the request."; 482 486 MessageBox(pCmdInfo->hwnd, strm.str().c_str(), L"Eraser Shell Extension", MB_OK | MB_ICONERROR); … … 604 608 MENUITEMINFO* CCtxMenu::GetSeparator() 605 609 { 606 MENUITEMINFO *mii = new MENUITEMINFO();610 MENUITEMINFO* mii = new MENUITEMINFO(); 607 611 mii->cbSize = sizeof(MENUITEMINFO); 608 612 mii->fMask = MIIM_TYPE;
Note: See TracChangeset
for help on using the changeset viewer.
