Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes | Protected Member Functions
CAlertCheckDialog Class Reference

#include <Dialogs.h>

Collaboration diagram for CAlertCheckDialog:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { IDD = IDD_ALERT_CHECK_DIALOG }
enum  { IDD = IDD_ALERT_CHECK_DIALOG }

Public Member Functions

 CAlertCheckDialog (CWnd *pParent, const char *pTitle, const char *pText, const char *pCheckText, int initCheckVal)
 CAlertCheckDialog (CWnd *pParent, const TCHAR *pTitle, const TCHAR *pText, const TCHAR *pCheckText, int initCheckVal)

Public Attributes

CString m_csDialogTitle
CString m_csMsgText
CString m_csCheckBoxText
int m_bCheckBoxValue

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()

Detailed Description

Definition at line 135 of file Dialogs.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 142 of file Dialogs.h.

anonymous enum
Enumerator:
IDD 

Definition at line 135 of file Dialogs.h.


Constructor & Destructor Documentation

CAlertCheckDialog::CAlertCheckDialog ( CWnd *  pParent,
const char *  pTitle,
const char *  pText,
const char *  pCheckText,
int  initCheckVal 
)

Definition at line 277 of file Dialogs.cpp.

        : CDialog(CAlertCheckDialog::IDD, pParent)
{   
    if(pTitle)
        m_csDialogTitle = pTitle;
    if(pText)
        m_csMsgText = pText;
    if(pCheckText)
        m_csCheckBoxText = pCheckText; 

    m_bCheckBoxValue = initCheckVal;
}
CAlertCheckDialog::CAlertCheckDialog ( CWnd *  pParent,
const TCHAR pTitle,
const TCHAR pText,
const TCHAR pCheckText,
int  initCheckVal 
)

Definition at line 270 of file Dialogs.cpp.

        : CDialog(CAlertCheckDialog::IDD, pParent)
{   
    if(pTitle)
        m_csDialogTitle = pTitle;
    if(pText)
        m_csMsgText = pText;
    if(pCheckText)
        m_csCheckBoxText = pCheckText; 

    m_bCheckBoxValue = initCheckVal;
}

Member Function Documentation

virtual void CAlertCheckDialog::DoDataExchange ( CDataExchange *  pDX) [protected, virtual]
void CAlertCheckDialog::DoDataExchange ( CDataExchange *  pDX) [protected, virtual]

Definition at line 291 of file Dialogs.cpp.

{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CAlertCheckDialog)
    DDX_Check(pDX, IDC_CHECKBOX, m_bCheckBoxValue);
    //}}AFX_DATA_MAP
}
virtual BOOL CAlertCheckDialog::OnInitDialog ( ) [protected, virtual]
int CAlertCheckDialog::OnInitDialog ( ) [protected, virtual]

Definition at line 305 of file Dialogs.cpp.

{
    SetWindowText(m_csDialogTitle);

    CWnd *pWnd = GetDlgItem(IDC_MSG_TEXT);
    if(pWnd)
        pWnd->SetWindowText(m_csMsgText);

    CButton *pChk = (CButton *)GetDlgItem(IDC_CHECKBOX);
    if(pChk)
    {
        pChk->SetWindowText(m_csCheckBoxText);
        pChk->SetCheck(m_bCheckBoxValue ? BST_CHECKED : BST_UNCHECKED);
    }

    return TRUE;
}

Member Data Documentation

Definition at line 147 of file Dialogs.h.

Definition at line 146 of file Dialogs.h.

Definition at line 144 of file Dialogs.h.

Definition at line 145 of file Dialogs.h.


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