ReactOS  0.4.15-dev-1070-ge1a01de
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]

template<typename BASE>
ShellBrowserChildT< BASE >::ShellBrowserChildT ( HWND  hwnd)
inline

Definition at line 197 of file shellbrowser.h.

198  : super(hwnd)
199  {
200  }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22

◆ ShellBrowserChildT() [2/2]

template<typename BASE>
ShellBrowserChildT< BASE >::ShellBrowserChildT ( HWND  hwnd,
const ShellChildWndInfo info 
)
inline

Definition at line 203 of file shellbrowser.h.

204  : super(hwnd, info)
205  {
206  }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22

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  }
BOOL WINAPI SHIM_OBJ_NAME() Notify(DWORD fdwReason, PVOID ptr)
#define LPNMTREEVIEW
Definition: commctrl.h:3639
UINT code
Definition: winuser.h:3134
void OnTreeItemExpanding(int idCtrl, LPNMTREEVIEW pnmtv)
void OnTreeItemSelected(int idCtrl, LPNMTREEVIEW pnmtv)
void OnTreeItemRClick(int idCtrl, LPNMHDR pnmh)
_Tp * get() const _STLP_NOTHROW
Definition: _auto_ptr.h:66
#define TVN_GETDISPINFO
Definition: commctrl.h:3732
#define TVN_SELCHANGED
Definition: commctrl.h:3731
void OnTreeGetDispInfo(int idCtrl, LPNMHDR pnmh)
#define TVN_ITEMEXPANDING
Definition: commctrl.h:3734
#define NM_RCLICK
Definition: commctrl.h:133
auto_ptr< ShellBrowser > _shellBrowser
Definition: shellbrowser.h:209

◆ WndProc()

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

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

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  }
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
#define PM_GET_SHELLBROWSER_PTR
Definition: explorer.h:62
#define WM_GETISHELLBROWSER
Definition: filedlg.c:198
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
Definition: solitaire.cpp:598
LONG_PTR LRESULT
Definition: windef.h:209
auto_ptr< ShellBrowser > _shellBrowser
Definition: shellbrowser.h:209
static UINT WPARAM wparam
Definition: combo.c:716

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: