ReactOS 0.4.15-dev-8116-gf69e256
ShellBrowserChildT< BASE > Struct Template Reference

#include <shellbrowser.h>

Inheritance diagram for ShellBrowserChildT< BASE >:
Collaboration diagram for ShellBrowserChildT< BASE >:

Public Types

typedef BASE super
 

Public Member Functions

 ShellBrowserChildT (HWND hwnd)
 
 ShellBrowserChildT (HWND hwnd, const ShellChildWndInfo &info)
 
- Public Member Functions inherited from BrowserCallback
virtual ~BrowserCallback ()
 
virtual void entry_selected (Entry *entry)=0
 

Protected Member Functions

LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
 
int Notify (int id, NMHDR *pnmh)
 

Protected Attributes

auto_ptr< ShellBrowser_shellBrowser
 

Detailed Description

template<typename BASE>
struct ShellBrowserChildT< BASE >

Definition at line 191 of file shellbrowser.h.

Member Typedef Documentation

◆ super

template<typename BASE >
typedef BASE ShellBrowserChildT< BASE >::super

Definition at line 194 of file shellbrowser.h.

Constructor & Destructor Documentation

◆ ShellBrowserChildT() [1/2]

Definition at line 197 of file shellbrowser.h.

198 : super(hwnd)
199 {
200 }
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ ShellBrowserChildT() [2/2]

Definition at line 203 of file shellbrowser.h.

204 : super(hwnd, info)
205 {
206 }

Member Function Documentation

◆ Notify()

template<typename BASE >
int ShellBrowserChildT< BASE >::Notify ( int  id,
NMHDR pnmh 
)
inlineprotected

Definition at line 227 of file shellbrowser.h.

228 {
229 if (_shellBrowser.get())
230 switch(pnmh->code) {
231 case TVN_GETDISPINFO: _shellBrowser->OnTreeGetDispInfo(id, pnmh); break;
234 case NM_RCLICK: _shellBrowser->OnTreeItemRClick(id, pnmh); break;
235 default: return super::Notify(id, pnmh);
236 }
237 else
238 return super::Notify(id, pnmh);
239
240 return 0;
241 }
_Tp * get() const _STLP_NOTHROW
Definition: _auto_ptr.h:66
#define TVN_SELCHANGED
Definition: commctrl.h:3735
#define LPNMTREEVIEW
Definition: commctrl.h:3643
#define NM_RCLICK
Definition: commctrl.h:133
#define TVN_ITEMEXPANDING
Definition: commctrl.h:3738
#define TVN_GETDISPINFO
Definition: commctrl.h:3736
auto_ptr< ShellBrowser > _shellBrowser
Definition: shellbrowser.h:209
void OnTreeItemSelected(int idCtrl, LPNMTREEVIEW pnmtv)
void OnTreeItemExpanding(int idCtrl, LPNMTREEVIEW pnmtv)
void OnTreeItemRClick(int idCtrl, LPNMHDR pnmh)
void OnTreeGetDispInfo(int idCtrl, LPNMHDR pnmh)
UINT code
Definition: winuser.h:3159

◆ WndProc()

template<typename BASE >
LRESULT ShellBrowserChildT< BASE >::WndProc ( UINT  nmsg,
WPARAM  wparam,
LPARAM  lparam 
)
inlineprotected

Reimplemented in ExtContextMenuHandlerT< ShellBrowserChildT< ChildWindow > >, and ExtContextMenuHandlerT< ShellBrowserChildT< MainFrameBase > >.

Definition at line 211 of file shellbrowser.h.

212 {
213 switch(nmsg) {
215 return (LRESULT)&*_shellBrowser;
216
217 case WM_GETISHELLBROWSER: // for Registry Explorer Plugin
218 return (LRESULT)static_cast<IShellBrowser*>(&*_shellBrowser);
219
220 default:
221 return super::WndProc(nmsg, wparam, lparam);
222 }
223
224 return 0;
225 }
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
#define WM_GETISHELLBROWSER
Definition: filedlg.c:200
#define PM_GET_SHELLBROWSER_PTR
Definition: explorer.h:62
LONG_PTR LRESULT
Definition: windef.h:209

Member Data Documentation

◆ _shellBrowser

template<typename BASE >
auto_ptr<ShellBrowser> ShellBrowserChildT< BASE >::_shellBrowser
protected

The documentation for this struct was generated from the following file: