ReactOS  0.4.15-dev-5122-g72bdbdd
ATL::CDialogImpl< T, TBase > Class Template Reference

#include <atlwin.h>

Inheritance diagram for ATL::CDialogImpl< T, TBase >:
Collaboration diagram for ATL::CDialogImpl< T, TBase >:

Public Member Functions

HWND Create (HWND hWndParent, LPARAM dwInitParam=NULL)
 
INT_PTR DoModal (HWND hWndParent=::GetActiveWindow(), LPARAM dwInitParam=NULL)
 
BOOL EndDialog (_In_ int nRetCode)
 
BOOL DestroyWindow ()
 
- Public Member Functions inherited from ATL::CDialogImplBaseT< TBase >
virtual ~CDialogImplBaseT ()
 
virtual DLGPROC GetDialogProc ()
 
virtual void OnFinalMessage (HWND)
 
- 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
 

Additional Inherited Members

- Public Types inherited from ATL::CWindowImplRoot< TBase >
enum  { WINSTATE_DESTROYED = 0x00000001 }
 
- Static Public Member Functions inherited from ATL::CDialogImplBaseT< TBase >
static INT_PTR CALLBACK StartDialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static INT_PTR CALLBACK DialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
- 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 ATL::CDialogImpl< T, TBase >

Definition at line 1473 of file atlwin.h.

Member Function Documentation

◆ Create()

template<class T, class TBase = CWindow>
HWND ATL::CDialogImpl< T, TBase >::Create ( HWND  hWndParent,
LPARAM  dwInitParam = NULL 
)
inline

Definition at line 1481 of file atlwin.h.

1482  {
1483  BOOL result;
1484  HWND hWnd;
1485  T* pImpl;
1486 
1487  result = m_thunk.Init(NULL, NULL);
1488  if (result == FALSE)
1489  return NULL;
1490 
1491  _AtlWinModule.AddCreateWndData(&m_thunk.cd, this);
1492 
1493  pImpl = static_cast<T*>(this);
1494  hWnd = ::CreateDialogParam(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(pImpl->IDD), hWndParent, T::StartDialogProc, dwInitParam);
1495  return hWnd;
1496  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
GLuint64EXT * result
Definition: glext.h:11304
HWND hWnd
Definition: settings.c:17
_AtlCreateWndData cd
Definition: atlwin.h:230
#define T
Definition: mbstring.h:31
BOOL Init(WNDPROC proc, void *pThis)
Definition: atlwin.h:244
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
CWndProcThunk m_thunk
Definition: atlwin.h:1373
#define NULL
Definition: types.h:112
#define CreateDialogParam
Definition: winuser.h:5742

◆ DestroyWindow()

template<class T, class TBase = CWindow>
BOOL ATL::CDialogImpl< T, TBase >::DestroyWindow ( )
inline

Definition at line 1518 of file atlwin.h.

1519  {
1520  return ::DestroyWindow(m_hWnd);
1521  }
BOOL WINAPI DestroyWindow(_In_ HWND)

◆ DoModal()

template<class T, class TBase = CWindow>
INT_PTR ATL::CDialogImpl< T, TBase >::DoModal ( HWND  hWndParent = ::GetActiveWindow(),
LPARAM  dwInitParam = NULL 
)
inline

Definition at line 1498 of file atlwin.h.

1499  {
1500  BOOL result;
1501  T* pImpl;
1502 
1503  result = m_thunk.Init(NULL, NULL);
1504  if (result == FALSE)
1505  return -1;
1506 
1507  _AtlWinModule.AddCreateWndData(&m_thunk.cd, this);
1508 
1509  pImpl = static_cast<T*>(this);
1510  return ::DialogBoxParam(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(pImpl->IDD), hWndParent, T::StartDialogProc, dwInitParam);
1511  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
GLuint64EXT * result
Definition: glext.h:11304
_AtlCreateWndData cd
Definition: atlwin.h:230
#define T
Definition: mbstring.h:31
BOOL Init(WNDPROC proc, void *pThis)
Definition: atlwin.h:244
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define DialogBoxParam
Definition: winuser.h:5754
CWndProcThunk m_thunk
Definition: atlwin.h:1373
#define NULL
Definition: types.h:112

Referenced by ShowEditCompatModes().

◆ EndDialog()

template<class T, class TBase = CWindow>
BOOL ATL::CDialogImpl< T, TBase >::EndDialog ( _In_ int  nRetCode)
inline

Definition at line 1513 of file atlwin.h.

1514  {
1515  return ::EndDialog(m_hWnd, nRetCode);
1516  }
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

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