ReactOS  0.4.15-dev-2721-g5912c11
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 1413 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 1421 of file atlwin.h.

1422  {
1423  BOOL result;
1424  HWND hWnd;
1425  T* pImpl;
1426 
1427  result = m_thunk.Init(NULL, NULL);
1428  if (result == FALSE)
1429  return NULL;
1430 
1431  _AtlWinModule.AddCreateWndData(&m_thunk.cd, this);
1432 
1433  pImpl = static_cast<T*>(this);
1434  hWnd = ::CreateDialogParam(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(pImpl->IDD), hWndParent, T::StartDialogProc, dwInitParam);
1435  return hWnd;
1436  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
GLuint64EXT * result
Definition: glext.h:11304
HWND hWnd
Definition: settings.c:17
_AtlCreateWndData cd
Definition: atlwin.h:231
#define T
Definition: mbstring.h:31
BOOL Init(WNDPROC proc, void *pThis)
Definition: atlwin.h:245
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
CWndProcThunk m_thunk
Definition: atlwin.h:1314
#define NULL
Definition: types.h:112
#define CreateDialogParam
Definition: winuser.h:5727

◆ DestroyWindow()

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

Definition at line 1458 of file atlwin.h.

1459  {
1460  return ::DestroyWindow(m_hWnd);
1461  }
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 1438 of file atlwin.h.

1439  {
1440  BOOL result;
1441  T* pImpl;
1442 
1443  result = m_thunk.Init(NULL, NULL);
1444  if (result == FALSE)
1445  return -1;
1446 
1447  _AtlWinModule.AddCreateWndData(&m_thunk.cd, this);
1448 
1449  pImpl = static_cast<T*>(this);
1450  return ::DialogBoxParam(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(pImpl->IDD), hWndParent, T::StartDialogProc, dwInitParam);
1451  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
GLuint64EXT * result
Definition: glext.h:11304
_AtlCreateWndData cd
Definition: atlwin.h:231
#define T
Definition: mbstring.h:31
BOOL Init(WNDPROC proc, void *pThis)
Definition: atlwin.h:245
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define DialogBoxParam
Definition: winuser.h:5739
CWndProcThunk m_thunk
Definition: atlwin.h:1314
#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 1453 of file atlwin.h.

1454  {
1455  return ::EndDialog(m_hWnd, nRetCode);
1456  }
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

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