ReactOS  0.4.14-dev-606-g14ebc0b
ATL::CWndProcThunk Class Reference

#include <atlwin.h>

Collaboration diagram for ATL::CWndProcThunk:

Public Member Functions

 CWndProcThunk ()
 
 ~CWndProcThunk ()
 
BOOL Init (WNDPROC proc, void *pThis)
 
WNDPROC GetWNDPROC ()
 

Public Attributes

thunkCode * m_pthunk
 
_AtlCreateWndData cd
 

Detailed Description

Definition at line 227 of file atlwin.h.

Constructor & Destructor Documentation

◆ CWndProcThunk()

ATL::CWndProcThunk::CWndProcThunk ( )
inline

Definition at line 234 of file atlwin.h.

235  {
236  m_pthunk = (thunkCode*)VirtualAlloc(NULL, sizeof(thunkCode), MEM_COMMIT, PAGE_EXECUTE_READWRITE);
237  }
#define MEM_COMMIT
Definition: nt_native.h:1313
LPVOID NTAPI VirtualAlloc(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flAllocationType, IN DWORD flProtect)
Definition: virtmem.c:74
smooth NULL
Definition: ftsmooth.c:416
thunkCode * m_pthunk
Definition: atlwin.h:230
#define PAGE_EXECUTE_READWRITE
Definition: nt_native.h:1308

◆ ~CWndProcThunk()

ATL::CWndProcThunk::~CWndProcThunk ( )
inline

Definition at line 239 of file atlwin.h.

240  {
241  if (m_pthunk != NULL)
243  }
smooth NULL
Definition: ftsmooth.c:416
thunkCode * m_pthunk
Definition: atlwin.h:230
#define MEM_RELEASE
Definition: nt_native.h:1316
BOOL NTAPI VirtualFree(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD dwFreeType)
Definition: virtmem.c:128

Member Function Documentation

◆ GetWNDPROC()

WNDPROC ATL::CWndProcThunk::GetWNDPROC ( )
inline

Definition at line 253 of file atlwin.h.

254  {
255  return reinterpret_cast<WNDPROC>(m_pthunk);
256  }
thunkCode * m_pthunk
Definition: atlwin.h:230

Referenced by ATL::CWindowImplBaseT< CToolbar< TASK_ITEM >, CControlWinTraits >::SubclassWindow(), and ATL::CContainedWindowT< TBase, TWinTraits >::SubclassWindow().

◆ Init()

BOOL ATL::CWndProcThunk::Init ( WNDPROC  proc,
void pThis 
)
inline

Member Data Documentation

◆ cd

◆ m_pthunk

thunkCode* ATL::CWndProcThunk::m_pthunk

Definition at line 230 of file atlwin.h.

Referenced by CWndProcThunk(), GetWNDPROC(), Init(), and ~CWndProcThunk().


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