#include <helpdownloadwebdialog.h>
Public Member Functions | |
CHelpDownloadWebDialog (TCHAR *WebFile) | |
Construct a CHelpDownloadWebDialog. | |
Public Attributes | |
BOOL | m_bFastConnection |
Protected Member Functions | |
virtual afx_msg void | OnWebCommandDoCommand (LPCTSTR Command, LPCTSTR CommandInfo) |
override the handling of web dialog events | |
virtual BOOL | OnInitDialog () |
Definition at line 110 of file helpdownloadwebdialog.h.
|
Construct a CHelpDownloadWebDialog.
Definition at line 133 of file helpdownloadwebdialog.cpp. 00134 : CWebDialogDlg(FALSE,WebFile,NULL,FALSE,0) 00135 { 00136 m_bFastConnection = (InternetManager::GetConnectionType()>=CONNECTION_ISDN); 00137 }
|
|
Definition at line 141 of file helpdownloadwebdialog.cpp. 00142 { 00143 TRACEUSER( "Phil", _T("CHDlWDlg::InitDialog Entry\n")); 00144 CWebDialogDlg::OnInitDialog(); 00145 TRACEUSER( "Phil", _T("CHDlWDlg::InitDialog 2\n")); 00146 00147 if (m_bFastConnection) 00148 { 00149 m_WebCommand.SetLayerVisibility("fast", TRUE); 00150 m_WebCommand.SetLayerVisibility("slow", FALSE); 00151 } 00152 else 00153 { 00154 m_WebCommand.SetLayerVisibility("fast", FALSE); 00155 m_WebCommand.SetLayerVisibility("slow", TRUE); 00156 } 00157 00158 TRACEUSER( "Phil", _T("CHDlWDlg::InitDialog Exit\n")); 00159 return FALSE; // return TRUE unless you set the focus to a control 00160 }
|
|
override the handling of web dialog events
Definition at line 172 of file helpdownloadwebdialog.cpp. 00173 { 00174 CString sCommand = Command; 00175 CString sCommandInfo = CommandInfo; 00176 TRACE( _T("Received Command:%s\n"), sCommand ); 00177 if (sCommand == "close" || sCommand == "exit" || sCommand == "later") 00178 { 00179 EndDialog(IDCANCEL); 00180 } 00181 else if ( sCommand == "yes" || sCommand == "download" || sCommand == "ok" ) 00182 { 00183 EndDialog(IDOK); 00184 } 00185 else if ( sCommand == "ignore" ) 00186 { 00187 EndDialog(_R(IDB_IGNORE)); 00188 } 00189 else if ( sCommand == "fast") 00190 { 00191 m_WebCommand.SetLayerVisibility("fast", TRUE); 00192 m_WebCommand.SetLayerVisibility("slow", FALSE); 00193 m_bFastConnection = TRUE; 00194 } 00195 else if ( sCommand == "slow" ) 00196 { 00197 m_WebCommand.SetLayerVisibility("fast", FALSE); 00198 m_WebCommand.SetLayerVisibility("slow", TRUE); 00199 m_bFastConnection = FALSE; 00200 } 00201 else if ( sCommand == "help" ) 00202 { 00203 HelpUserTopic(_R(IDS_HELPPATH_Misc_Xara_Ltd)/*23106*/); 00204 } 00205 }
|
|
Definition at line 123 of file helpdownloadwebdialog.h. |