#include <shellclasses.h>


Public Types | |
| typedef BASE | super |
Public Member Functions | |
| ExtContextMenuHandlerT (HWND hwnd) | |
| template<typename PARA > | |
| ExtContextMenuHandlerT (HWND hwnd, const PARA &info) | |
| LRESULT | WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam) |
Protected Attributes | |
| CtxMenuInterfaces | _cm_ifs |
Definition at line 1122 of file shellclasses.h.
| typedef BASE ExtContextMenuHandlerT< BASE >::super |
Reimplemented in DesktopShellView, FileChildWindow, SDIMainFrame, MDIShellBrowserChild, QuickLaunchBar, StartMenu, StartMenuHandler, StartMenuRoot, SettingsMenu, BrowseMenu, SearchMenu, RecentStartMenu, and FavoritesMenu.
Definition at line 1125 of file shellclasses.h.
| ExtContextMenuHandlerT< BASE >::ExtContextMenuHandlerT | ( | HWND | hwnd ) | [inline] |
Definition at line 1127 of file shellclasses.h.
: super(hwnd) { }
| ExtContextMenuHandlerT< BASE >::ExtContextMenuHandlerT | ( | HWND | hwnd, |
| const PARA & | info | ||
| ) | [inline] |
Definition at line 1132 of file shellclasses.h.
: super(hwnd, info) { }
| LRESULT ExtContextMenuHandlerT< BASE >::WndProc | ( | UINT | nmsg, |
| WPARAM | wparam, | ||
| LPARAM | lparam | ||
| ) | [inline] |
Reimplemented in DesktopShellView, FileChildWindow, SDIMainFrame, MDIShellBrowserChild, QuickLaunchBar, StartMenu, and StartMenuRoot.
Definition at line 1137 of file shellclasses.h.
Referenced by ExtContextMenuHandlerT< ShellBrowserChildT< ChildWindow > >::WndProc().
{
switch(nmsg) {
case WM_DRAWITEM:
case WM_MEASUREITEM:
if (!wparam) // Is the message menu-related?
if (_cm_ifs.HandleMenuMsg(nmsg, wparam, lparam))
return TRUE;
break;
case WM_INITMENUPOPUP:
if (_cm_ifs.HandleMenuMsg(nmsg, wparam, lparam))
return 0;
break;
#ifndef __MINGW32__ // IContextMenu3 missing in MinGW (as of 6.2.2005)
case WM_MENUCHAR: // only supported by IContextMenu3
if (_cm_ifs._pctxmenu3) {
LRESULT lResult = 0;
_cm_ifs._pctxmenu3->HandleMenuMsg2(nmsg, wparam, lparam, &lResult);
return lResult;
}
return 0;
#endif
}
return super::WndProc(nmsg, wparam, lparam);
}

CtxMenuInterfaces ExtContextMenuHandlerT< BASE >::_cm_ifs [protected] |
Definition at line 1172 of file shellclasses.h.
Referenced by ExtContextMenuHandlerT< ShellBrowserChildT< ChildWindow > >::WndProc().
|
ROS Explorer Source Code Documentation
generated on 02.01.2013 by
|