ReactOS  0.4.15-dev-4872-g8a3db97
ATL::CWindowImpl< T, TBase, TWinTraits > Class Template Reference

#include <atlwin.h>

Inheritance diagram for ATL::CWindowImpl< T, TBase, TWinTraits >:
Collaboration diagram for ATL::CWindowImpl< T, TBase, TWinTraits >:

Public Member Functions

HWND Create (HWND hWndParent, _U_RECT rect=NULL, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
 
- Public Member Functions inherited from ATL::CWindowImplBaseT< TBase, TWinTraits >
 CWindowImplBaseT ()
 
virtual void OnFinalMessage (HWND)
 
BOOL SubclassWindow (HWND hWnd)
 
HWND UnsubclassWindow (BOOL bForce=FALSE)
 
virtual WNDPROC GetWindowProc ()
 
LRESULT DefWindowProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
HWND Create (HWND hWndParent, _U_RECT rect, LPCTSTR szWindowName, DWORD dwStyle, DWORD dwExStyle, _U_MENUorID MenuOrID, ATOM atom, LPVOID lpCreateParam)
 
- Public Member Functions inherited from ATL::CWindowImplRoot< TBase >
 CWindowImplRoot ()
 
virtual ~CWindowImplRoot ()
 
- Public Member Functions inherited from ATL::CMessageMap
virtual BOOL ProcessWindowMessage (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult, DWORD dwMsgMapID)=0
 

Static Public Member Functions

static LPCTSTR GetWndCaption ()
 
- Static Public Member Functions inherited from ATL::CWindowImplBaseT< TBase, TWinTraits >
static DWORD GetWndStyle (DWORD dwStyle)
 
static DWORD GetWndExStyle (DWORD dwExStyle)
 
static LRESULT CALLBACK StartWindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static LRESULT CALLBACK WindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

Additional Inherited Members

- Public Types inherited from ATL::CWindowImplRoot< TBase >
enum  { WINSTATE_DESTROYED = 0x00000001 }
 
- Public Attributes inherited from ATL::CWindowImplBaseT< TBase, TWinTraits >
WNDPROC m_pfnSuperWindowProc
 
- Public Attributes inherited from ATL::CWindowImplRoot< TBase >
CWndProcThunk m_thunk
 
const _ATL_MSGm_pCurrentMsg
 
DWORD m_dwState
 

Detailed Description

template<class T, class TBase = CWindow, class TWinTraits = CControlWinTraits>
class ATL::CWindowImpl< T, TBase, TWinTraits >

Definition at line 1688 of file atlwin.h.

Member Function Documentation

◆ Create()

template<class T, class TBase = CWindow, class TWinTraits = CControlWinTraits>
HWND ATL::CWindowImpl< T, TBase, TWinTraits >::Create ( HWND  hWndParent,
_U_RECT  rect = NULL,
LPCTSTR  szWindowName = NULL,
DWORD  dwStyle = 0,
DWORD  dwExStyle = 0,
_U_MENUorID  MenuOrID = 0U,
LPVOID  lpCreateParam = NULL 
)
inline

Definition at line 1700 of file atlwin.h.

1702  {
1703  CWindowImplBaseT<TBase, TWinTraits>* pThis;
1704  ATOM atom;
1705 
1706  ATLASSERT(m_hWnd == NULL);
1707  pThis = reinterpret_cast<CWindowImplBaseT<TBase, TWinTraits>*>(this);
1708 
1709  if (T::GetWndClassInfo().m_lpszOrigName == NULL)
1710  T::GetWndClassInfo().m_lpszOrigName = pThis->GetWndClassName();
1711  atom = T::GetWndClassInfo().Register(&pThis->m_pfnSuperWindowProc);
1712 
1713  if (szWindowName == NULL)
1714  szWindowName = T::GetWndCaption();
1715  dwStyle = T::GetWndStyle(dwStyle);
1716  dwExStyle = T::GetWndExStyle(dwExStyle);
1717 
1718  return CWindowImplBaseT<TBase, TWinTraits>::Create(hWndParent, rect, szWindowName, dwStyle,
1719  dwExStyle, MenuOrID, atom, lpCreateParam);
1720  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:10
WORD ATOM
Definition: dimm.idl:113
& rect
Definition: startmenu.cpp:1413
HWND Create(HWND hWndParent, _U_RECT rect, LPCTSTR szWindowName, DWORD dwStyle, DWORD dwExStyle, _U_MENUorID MenuOrID, ATOM atom, LPVOID lpCreateParam)
Definition: atlwin.h:1655
#define NULL
Definition: types.h:112

Referenced by _tWinMain().

◆ GetWndCaption()

template<class T, class TBase = CWindow, class TWinTraits = CControlWinTraits>
static LPCTSTR ATL::CWindowImpl< T, TBase, TWinTraits >::GetWndCaption ( )
inlinestatic

Definition at line 1695 of file atlwin.h.

1696  {
1697  return NULL;
1698  }
#define NULL
Definition: types.h:112

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