ReactOS  0.4.15-dev-3297-g037c744
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 1653 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 1666 of file atlwin.h.

1668  {
1669  CWindowImplBaseT<TBase, TWinTraits> *pThis;
1670  ATOM atom;
1671 
1672  ATLASSERT(m_hWnd == NULL);
1673  pThis = reinterpret_cast<CWindowImplBaseT<TBase, TWinTraits>*>(this);
1674 
1675  if (T::GetWndClassInfo().m_lpszOrigName == NULL)
1676  T::GetWndClassInfo().m_lpszOrigName = pThis->GetWndClassName();
1677  atom = T::GetWndClassInfo().Register(&pThis->m_pfnSuperWindowProc);
1678 
1679  if (szWindowName == NULL)
1680  szWindowName = T::GetWndCaption();
1681  dwStyle = T::GetWndStyle(dwStyle);
1682  dwExStyle = T::GetWndExStyle(dwExStyle);
1683 
1684  return CWindowImplBaseT<TBase, TWinTraits>::Create(hWndParent, rect, szWindowName, dwStyle,
1685  dwExStyle, MenuOrID, atom, lpCreateParam);
1686  }
#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:1621
#define NULL
Definition: types.h:112

Referenced by _tWinMain(), and CreateNotificationBroker().

◆ GetWndCaption()

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

Definition at line 1661 of file atlwin.h.

1662  {
1663  return NULL;
1664  }
#define NULL
Definition: types.h:112

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