ReactOS  0.4.12-dev-14-gd0c8636
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 218 of file atlwin.h.

Constructor & Destructor Documentation

◆ CWndProcThunk()

ATL::CWndProcThunk::CWndProcThunk ( )
inline

Definition at line 225 of file atlwin.h.

226  {
227  m_pthunk = (thunkCode*)VirtualAlloc(NULL, sizeof(thunkCode), MEM_COMMIT, PAGE_EXECUTE_READWRITE);
228  }
#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:221
#define PAGE_EXECUTE_READWRITE
Definition: nt_native.h:1308

◆ ~CWndProcThunk()

ATL::CWndProcThunk::~CWndProcThunk ( )
inline

Definition at line 230 of file atlwin.h.

231  {
232  if (m_pthunk != NULL)
234  }
smooth NULL
Definition: ftsmooth.c:416
thunkCode * m_pthunk
Definition: atlwin.h:221
#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 244 of file atlwin.h.

Referenced by ATL::CContainedWindowT< TBase, TWinTraits >::SubclassWindow().

245  {
246  return reinterpret_cast<WNDPROC>(m_pthunk);
247  }
thunkCode * m_pthunk
Definition: atlwin.h:221
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2859

◆ Init()

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

Definition at line 236 of file atlwin.h.

Referenced by ATL::CContainedWindowT< TBase, TWinTraits >::SubclassWindow().

237  {
238  if (m_pthunk == NULL)
239  return FALSE;
240  m_pthunk->Init(proc, pThis);
241  return TRUE;
242  }
#define TRUE
Definition: types.h:120
static HANDLE proc()
Definition: pdb.c:31
smooth NULL
Definition: ftsmooth.c:416
thunkCode * m_pthunk
Definition: atlwin.h:221

Member Data Documentation

◆ cd

_AtlCreateWndData ATL::CWndProcThunk::cd

◆ m_pthunk

thunkCode* ATL::CWndProcThunk::m_pthunk

Definition at line 221 of file atlwin.h.


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