Back to index

lightning-sunbird  0.9+nobinonly
TabDOM.cpp
Go to the documentation of this file.
00001 // TabDOM.cpp : implementation file
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "cbrowse.h"
00006 #include "TabDOM.h"
00007 #include "CBrowseDlg.h"
00008 
00009 #ifdef _DEBUG
00010 #define new DEBUG_NEW
00011 #undef THIS_FILE
00012 static char THIS_FILE[] = __FILE__;
00013 #endif
00014 
00016 // CTabDOM property page
00017 
00018 IMPLEMENT_DYNCREATE(CTabDOM, CPropertyPage)
00019 
00020 CTabDOM::CTabDOM() : CPropertyPage(CTabDOM::IDD, CTabDOM::IDD)
00021 {
00022        //{{AFX_DATA_INIT(CTabDOM)
00023               // NOTE: the ClassWizard will add member initialization here
00024        //}}AFX_DATA_INIT
00025 }
00026 
00027 
00028 CTabDOM::~CTabDOM()
00029 {
00030 }
00031 
00032 
00033 void CTabDOM::DoDataExchange(CDataExchange* pDX)
00034 {
00035        CPropertyPage::DoDataExchange(pDX);
00036        //{{AFX_DATA_MAP(CTabDOM)
00037        DDX_Control(pDX, IDC_DOMLIST, m_tcDOM);
00038        //}}AFX_DATA_MAP
00039 }
00040 
00041 
00042 BEGIN_MESSAGE_MAP(CTabDOM, CPropertyPage)
00043        //{{AFX_MSG_MAP(CTabDOM)
00044        ON_BN_CLICKED(IDC_REFRESHDOM, OnRefreshDOM)
00045        //}}AFX_MSG_MAP
00046 END_MESSAGE_MAP()
00047 
00049 // CTabDOM message handlers
00050 
00051 void CTabDOM::OnRefreshDOM() 
00052 {
00053        if (m_pBrowseDlg)
00054        {
00055               m_pBrowseDlg->OnRefreshDOM();
00056        }
00057 }
00058 
00059 
00060 BOOL CTabDOM::OnInitDialog() 
00061 {
00062        CPropertyPage::OnInitDialog();
00063        
00064        // Create the DOM tree
00065        m_tcDOM.SetImageList(&m_pBrowseDlg->m_cImageList, TVSIL_NORMAL);
00066        
00067        return TRUE;  // return TRUE unless you set the focus to a control
00068                      // EXCEPTION: OCX Property Pages should return FALSE
00069 }