/*++ Copyright (c) 1996 Microsoft Corporation Module Name : propsdlg.h Abstract: Link checker properties dialog class implementation. Author: Michael Cheuk (mcheuk) Project: Link Checker Revision History: --*/ #include "stdafx.h" #include "linkchk.h" #include "propsdlg.h" #include "lcmgr.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif CPropertiesDialog::CPropertiesDialog( CWnd* pParent /*=NULL*/ ) : /*++ Routine Description: Constructor. Arguments: pParent - pointer to parent CWnd Return Value: N/A --*/ CDialog(CPropertiesDialog::IDD, pParent) { //{{AFX_DATA_INIT(CPropertiesDialog) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } // CPropertiesDialog::CPropertiesDialog void CPropertiesDialog::DoDataExchange( CDataExchange* pDX ) /*++ Routine Description: Called by MFC to change/retrieve dialog data Arguments: pDX - Return Value: N/A --*/ { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CPropertiesDialog) DDX_Control(pDX, IDC_LANGUAGE_LIST, m_LanguageCheckList); DDX_Control(pDX, IDC_BROWSER_LIST, m_BrowserCheckList); //}}AFX_DATA_MAP } // CPropertiesDialog::DoDataExchange BEGIN_MESSAGE_MAP(CPropertiesDialog, CDialog) //{{AFX_MSG_MAP(CPropertiesDialog) ON_BN_CLICKED(IDC_PROPERTIES_OK, OnPropertiesOk) //}}AFX_MSG_MAP ON_BN_CLICKED(IDC_PROPERTIES_CANCEL, CDialog::OnCancel) END_MESSAGE_MAP() BOOL CPropertiesDialog::OnInitDialog( ) /*++ Routine Description: WM_INITDIALOG message handler Arguments: N/A Return Value: BOOL - TRUE if sucess. FALSE otherwise. --*/ { CDialog::OnInitDialog(); // Add all the avaiable browsers to checked list box CUserOptions& UserOptions = GetLinkCheckerMgr().GetUserOptions(); int iSize = UserOptions.GetAvailableBrowsers().GetCount(); if(iSize > 0) { CBrowserInfo BrowserInfo; POSITION PosBrowser = UserOptions.GetAvailableBrowsers().GetHeadPosition(); for(int i=0; i 0) { CLanguageInfo LanguageInfo; POSITION PosLanguage = UserOptions.GetAvailableLanguages().GetHeadPosition(); for(int i=0; i