ReactOS  0.4.13-dev-241-g63286c6
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 1410 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 1418 of file atlwin.h.

1419  {
1420  BOOL result;
1421  HWND hWnd;
1422  T* pImpl;
1423 
1424  result = m_thunk.Init(NULL, NULL);
1425  if (result == FALSE)
1426  return NULL;
1427 
1428  _AtlWinModule.AddCreateWndData(&m_thunk.cd, this);
1429 
1430  pImpl = static_cast<T*>(this);
1431  hWnd = ::CreateDialogParam(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(pImpl->IDD), hWndParent, T::StartDialogProc, dwInitParam);
1432  return hWnd;
1433  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
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
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
CWndProcThunk m_thunk
Definition: atlwin.h:1311
GLuint64EXT * result
Definition: glext.h:11304
#define CreateDialogParam
Definition: winuser.h:5618

◆ DestroyWindow()

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

Definition at line 1455 of file atlwin.h.

1456  {
1457  return ::DestroyWindow(m_hWnd);
1458  }
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 1435 of file atlwin.h.

1436  {
1437  BOOL result;
1438  T* pImpl;
1439 
1440  result = m_thunk.Init(NULL, NULL);
1441  if (result == FALSE)
1442  return -1;
1443 
1444  _AtlWinModule.AddCreateWndData(&m_thunk.cd, this);
1445 
1446  pImpl = static_cast<T*>(this);
1447  return ::DialogBoxParam(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(pImpl->IDD), hWndParent, T::StartDialogProc, dwInitParam);
1448  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
_AtlCreateWndData cd
Definition: atlwin.h:231
#define T
Definition: mbstring.h:31
BOOL Init(WNDPROC proc, void *pThis)
Definition: atlwin.h:245
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
#define DialogBoxParam
Definition: winuser.h:5630
CWndProcThunk m_thunk
Definition: atlwin.h:1311
GLuint64EXT * result
Definition: glext.h:11304

Referenced by ShowEditCompatModes().

◆ EndDialog()

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

Definition at line 1450 of file atlwin.h.

1451  {
1452  return ::EndDialog(m_hWnd, nRetCode);
1453  }
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

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