Back to index

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

#include <TabTests.h>

Collaboration diagram for CTabTests:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { IDD = IDD_TAB_TESTS }

Public Member Functions

 CTabTests ()
 ~CTabTests ()

Public Attributes

CBrowseDlgm_pBrowseDlg
CButton m_btnRunTest
CTreeCtrl m_tcTests
CString m_szTestDescription

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnRunTest ()
afx_msg void OnSelchangedTestlist (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDblclkTestlist (NMHDR *pNMHDR, LRESULT *pResult)
virtual BOOL OnInitDialog ()

Detailed Description

Definition at line 15 of file TabTests.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 28 of file TabTests.h.


Constructor & Destructor Documentation

Definition at line 20 of file TabTests.cpp.

                     : CPropertyPage(CTabTests::IDD, CTabTests::IDD)
{
       //{{AFX_DATA_INIT(CTabTests)
       m_szTestDescription = _T("");
       //}}AFX_DATA_INIT
}

Definition at line 28 of file TabTests.cpp.

{
}

Member Function Documentation

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

Definition at line 33 of file TabTests.cpp.

{
       CPropertyPage::DoDataExchange(pDX);
       //{{AFX_DATA_MAP(CTabTests)
       DDX_Control(pDX, IDC_RUNTEST, m_btnRunTest);
       DDX_Control(pDX, IDC_TESTLIST, m_tcTests);
       DDX_Text(pDX, IDC_TESTDESCRIPTION, m_szTestDescription);
       //}}AFX_DATA_MAP
}
void CTabTests::OnDblclkTestlist ( NMHDR *  pNMHDR,
LRESULT pResult 
) [protected]

Definition at line 99 of file TabTests.cpp.

{
       OnRunTest();
       *pResult = 0;
}

Here is the call graph for this function:

BOOL CTabTests::OnInitDialog ( ) [protected, virtual]

Definition at line 106 of file TabTests.cpp.

{
       CPropertyPage::OnInitDialog();
       
       m_pBrowseDlg->PopulateTests();
       
       return TRUE;  // return TRUE unless you set the focus to a control
                     // EXCEPTION: OCX Property Pages should return FALSE
}

Here is the call graph for this function:

void CTabTests::OnRunTest ( ) [protected]

Definition at line 55 of file TabTests.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CTabTests::OnSelchangedTestlist ( NMHDR *  pNMHDR,
LRESULT pResult 
) [protected]

Definition at line 61 of file TabTests.cpp.

{
       NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;

       BOOL bItemSelected = FALSE;
       m_szTestDescription.Empty();

       HTREEITEM hItem = m_tcTests.GetNextItem(NULL, TVGN_FIRSTVISIBLE);
       while (hItem)
       {
              UINT nState;

              nState = m_tcTests.GetItemState(hItem, TVIS_SELECTED);
              if (nState & TVIS_SELECTED)
              {
                     bItemSelected = TRUE;
                     if (m_tcTests.ItemHasChildren(hItem))
                     {
                            TestSet *pTestSet = (TestSet *) m_tcTests.GetItemData(hItem);
                            m_szTestDescription = pTestSet->szDesc;
                     }
                     else
                     {
                            Test *pTest = (Test *) m_tcTests.GetItemData(hItem);
                            m_szTestDescription = pTest->szDesc;
                     }
              }

              hItem = m_tcTests.GetNextItem(hItem, TVGN_NEXTVISIBLE);
       }

       UpdateData(FALSE);
       m_btnRunTest.EnableWindow(bItemSelected);

       *pResult = 0;
}

Member Data Documentation

Definition at line 29 of file TabTests.h.

Definition at line 24 of file TabTests.h.

Definition at line 31 of file TabTests.h.

Definition at line 30 of file TabTests.h.


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