Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends

UT_Win32AssertDlg Class Reference

List of all members.

Private Types

enum  answer { AN_Debug, AN_Ignore, AN_IgnoreAll, AN_Abort }

Private Member Functions

 UT_Win32AssertDlg (const char *pCond, const char *pFile, int iLine, int iCount)
 ~UT_Win32AssertDlg ()
BOOL _onInitDialog (HWND hWnd, WPARAM wParam, LPARAM lParam)
BOOL _onCommand (HWND hWnd, WPARAM wParam, LPARAM lParam)
answer runModal ()
void enableWindows ()

Static Private Member Functions

static BOOL CALLBACK s_dlgProc (HWND, UINT, WPARAM, LPARAM)
static BOOL CALLBACK s_DisableWindows (HWND hwnd, LPARAM lParam)

Private Attributes

int m_iLine
const char * m_pCond
const char * m_pFile
int m_iCount
answer m_answer
HWND m_myHWND
UT_GenericVector< HWND > m_vecDisabledWnds
bool m_bTimersPaused

Friends

int ABI_EXPORT UT_Win32ThrowAssert (const char *, const char *, int, int)

Detailed Description

Class that implements an assert dialogue; this is a private class, we only access it through UT_Win32ThrowAssert() function


Member Enumeration Documentation

enum UT_Win32AssertDlg::answer [private]
Enumerator:
AN_Debug 
AN_Ignore 
AN_IgnoreAll 
AN_Abort 

Constructor & Destructor Documentation

UT_Win32AssertDlg::UT_Win32AssertDlg ( const char *  pCond,
const char *  pFile,
int  iLine,
int  iCount 
) [inline, private]
UT_Win32AssertDlg::~UT_Win32AssertDlg (  )  [inline, private]

Member Function Documentation

BOOL UT_Win32AssertDlg::_onCommand ( HWND  hWnd,
WPARAM  wParam,
LPARAM  lParam 
) [private]
BOOL UT_Win32AssertDlg::_onInitDialog ( HWND  hWnd,
WPARAM  wParam,
LPARAM  lParam 
) [private]
void UT_Win32AssertDlg::enableWindows (  )  [private]
UT_Win32AssertDlg::answer UT_Win32AssertDlg::runModal (  )  [private]
BOOL CALLBACK UT_Win32AssertDlg::s_DisableWindows ( HWND  hwnd,
LPARAM  lParam 
) [static, private]
BOOL CALLBACK UT_Win32AssertDlg::s_dlgProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
) [static, private]

References _onCommand(), and _onInitDialog().

Referenced by runModal().


Friends And Related Function Documentation

int ABI_EXPORT UT_Win32ThrowAssert ( const char *  pCond,
const char *  pFile,
int  iLine,
int  iCount 
) [friend]

This function wraps arround the Assert dialog class and handles the returned responses; it will abort application if the user chose Abort.

Returns:
: 0 -- give control to debugger > 0 ignore this time < 0 ignore always

Member Data Documentation

Referenced by _onCommand(), and runModal().

Referenced by _onCommand(), and _onInitDialog().

Referenced by _onInitDialog().

Referenced by _onInitDialog().

Referenced by _onInitDialog(), and s_DisableWindows().

const char* UT_Win32AssertDlg::m_pCond [private]

Referenced by _onInitDialog().

const char* UT_Win32AssertDlg::m_pFile [private]

Referenced by _onInitDialog().

Referenced by enableWindows(), and s_DisableWindows().


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