ReactOS  0.4.12-dev-14-gd0c8636
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 1401 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 1409 of file atlwin.h.

1410  {
1411  BOOL result;
1412  HWND hWnd;
1413  T* pImpl;
1414 
1415  result = m_thunk.Init(NULL, NULL);
1416  if (result == FALSE)
1417  return NULL;
1418 
1420 
1421  pImpl = static_cast<T*>(this);
1422  hWnd = ::CreateDialogParam(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(pImpl->IDD), hWndParent, T::StartDialogProc, dwInitParam);
1423  return hWnd;
1424  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
void AddCreateWndData(_AtlCreateWndData *pData, void *pObject)
Definition: atlbase.h:986
HWND hWnd
Definition: settings.c:17
_AtlCreateWndData cd
Definition: atlwin.h:222
#define T
Definition: mbstring.h:31
BOOL Init(WNDPROC proc, void *pThis)
Definition: atlwin.h:236
smooth NULL
Definition: ftsmooth.c:416
HINSTANCE GetResourceInstance()
Definition: atlcore.h:203
unsigned int BOOL
Definition: ntddk_ex.h:94
CAtlWinModule _AtlWinModule
Definition: atlbase.cpp:27
CWndProcThunk m_thunk
Definition: atlwin.h:1302
CAtlBaseModule _AtlBaseModule
Definition: atlbase.cpp:26
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 1446 of file atlwin.h.

1447  {
1448  return ::DestroyWindow(m_hWnd);
1449  }
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 1426 of file atlwin.h.

Referenced by CZipExtract::CConfirmReplace::ShowDlg().

1427  {
1428  BOOL result;
1429  T* pImpl;
1430 
1431  result = m_thunk.Init(NULL, NULL);
1432  if (result == FALSE)
1433  return -1;
1434 
1436 
1437  pImpl = static_cast<T*>(this);
1438  return ::DialogBoxParam(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(pImpl->IDD), hWndParent, T::StartDialogProc, dwInitParam);
1439  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
void AddCreateWndData(_AtlCreateWndData *pData, void *pObject)
Definition: atlbase.h:986
_AtlCreateWndData cd
Definition: atlwin.h:222
#define T
Definition: mbstring.h:31
BOOL Init(WNDPROC proc, void *pThis)
Definition: atlwin.h:236
smooth NULL
Definition: ftsmooth.c:416
HINSTANCE GetResourceInstance()
Definition: atlcore.h:203
unsigned int BOOL
Definition: ntddk_ex.h:94
CAtlWinModule _AtlWinModule
Definition: atlbase.cpp:27
#define DialogBoxParam
Definition: winuser.h:5630
CWndProcThunk m_thunk
Definition: atlwin.h:1302
CAtlBaseModule _AtlBaseModule
Definition: atlbase.cpp:26
GLuint64EXT * result
Definition: glext.h:11304

◆ EndDialog()

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

Definition at line 1441 of file atlwin.h.

1442  {
1443  return ::EndDialog(m_hWnd, nRetCode);
1444  }
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

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