void vmsBrowserActivityMonitor::onActivity(LPCWSTR pwszUrl) { vmsAUTOLOCKSECTION (m_csList); int nIndex = FindItemByUrl (pwszUrl); if (nIndex != -1) { m_vList [nIndex].dwTimeLastActivity = GetTickCount (); return; } CreateNewItem (pwszUrl); }
HRESULT WINAPI CNewMenu::InvokeCommand(LPCMINVOKECOMMANDINFO lpici) { HRESULT hr = E_FAIL; if (LOWORD(lpici->lpVerb) == 0) hr = CreateNewFolder(lpici); else { SHELLNEW_ITEM *pItem = FindItemFromIdOffset(LOWORD(lpici->lpVerb)); if (pItem) hr = CreateNewItem(pItem, lpici); } TRACE("CNewMenu::InvokeCommand %x\n", hr); return hr; }
Boolean CTOutlineTable::ObeyCommand( CommandT inCommand, void* ioParam) { switch (inCommand) { case 'intv': case 'pstr': case 'rgbc': case 'resl': CreateNewItem(inCommand); break; default: return OVTable::ObeyCommand(inCommand, ioParam); } return true; }