1 // WebProgDlg.cpp : implementation file
6 #include "WebProgDlg.h"
12 static char THIS_FILE
[] = __FILE__
;
15 /////////////////////////////////////////////////////////////////////////////
19 CWebProgDlg::CWebProgDlg(CWnd
* pParent
/*=NULL*/)
20 : CDialog(CWebProgDlg::IDD
, pParent
)
22 //{{AFX_DATA_INIT(CWebProgDlg)
29 void CWebProgDlg::DoDataExchange(CDataExchange
* pDX
)
31 CDialog::DoDataExchange(pDX
);
32 //{{AFX_DATA_MAP(CWebProgDlg)
33 DDX_Control(pDX
, IDC_WPCOMBO
, m_webProgFlags
);
34 DDX_CBIndex(pDX
, IDC_WPCOMBO
, m_wpFlagIndex
);
39 BEGIN_MESSAGE_MAP(CWebProgDlg
, CDialog
)
40 //{{AFX_MSG_MAP(CWebProgDlg)
41 ON_CBN_SELCHANGE(IDC_WPCOMBO
, OnSelectWPCombo
)
45 /////////////////////////////////////////////////////////////////////////////
46 // CWebProgDlg message handlers
48 BOOL
CWebProgDlg::OnInitWPDialog()
50 CDialog::OnInitDialog();
53 m_webProgFlags
.SetCurSel(m_wpFlagIndex
);
57 void CWebProgDlg::OnSelectWPCombo()
59 m_wpFlagIndex
= m_webProgFlags
.GetCurSel();
61 if (m_wpFlagIndex
== 0) {
62 m_wpFlagValue
= nsIWebProgress::NOTIFY_STATE_REQUEST
;
63 QAOutput("Selected NOTIFY_STATE_REQUEST flag.", 1);
65 else if (m_wpFlagIndex
== 1) {
66 m_wpFlagValue
= nsIWebProgress::NOTIFY_STATE_DOCUMENT
;
67 QAOutput("Selected NOTIFY_STATE_DOCUMENT flag.", 1);
69 else if (m_wpFlagIndex
== 2) {
70 m_wpFlagValue
= nsIWebProgress::NOTIFY_STATE_NETWORK
;
71 QAOutput("Selected NOTIFY_STATE_NETWORK flag.", 1);
73 else if (m_wpFlagIndex
== 3) {
74 m_wpFlagValue
= nsIWebProgress::NOTIFY_STATE_WINDOW
;
75 QAOutput("Selected NOTIFY_STATE_WINDOW flag.", 1);
77 else if (m_wpFlagIndex
== 4) {
78 m_wpFlagValue
= nsIWebProgress::NOTIFY_STATE_ALL
;
79 QAOutput("Selected NOTIFY_STATE_ALL flag.", 1);
81 else if (m_wpFlagIndex
== 5) {
82 m_wpFlagValue
= nsIWebProgress::NOTIFY_PROGRESS
;
83 QAOutput("Selected NOTIFY_PROGRESS flag.", 1);
85 else if (m_wpFlagIndex
== 6) {
86 m_wpFlagValue
= nsIWebProgress::NOTIFY_STATUS
;
87 QAOutput("Selected NOTIFY_STATUS flag.", 1);
89 else if (m_wpFlagIndex
== 7) {
90 m_wpFlagValue
= nsIWebProgress::NOTIFY_SECURITY
;
91 QAOutput("Selected NOTIFY_SECURITY flag.", 1);
93 else if (m_wpFlagIndex
== 8) {
94 m_wpFlagValue
= nsIWebProgress::NOTIFY_LOCATION
;
95 QAOutput("Selected NOTIFY_LOCATION flag.", 1);
97 else if (m_wpFlagIndex
== 9) {
98 m_wpFlagValue
= nsIWebProgress::NOTIFY_ALL
;
99 QAOutput("Selected NOTIFY_ALL flag.", 1);
102 QAOutput("NO FLAG!!!.", 1);