00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_DIALDLG_H__5FD947D4_2E26_4DFD_BF2E_0E8A3F551C47__INCLUDED_) 00007 #define AFX_DIALDLG_H__5FD947D4_2E26_4DFD_BF2E_0E8A3F551C47__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include <ras.h> 00014 #include <raserror.h> 00015 00016 class CDialDlg : public CDialog 00017 { 00018 00019 public: 00020 static HRASCONN m_hConn; 00021 00022 void Init (struct fsDialInfo *dial); 00023 CDialDlg(CWnd* pParent); 00024 00025 //{{AFX_DATA(CDialDlg) 00026 enum { IDD = IDD_DIAL }; 00027 CComboBox m_wndEntries; 00028 CListCtrl m_wndLog; 00029 //}}AFX_DATA 00030 00031 00032 //{{AFX_VIRTUAL(CDialDlg) 00033 protected: 00034 virtual void DoDataExchange(CDataExchange* pDX); 00035 //}}AFX_VIRTUAL 00036 00037 protected: 00038 void PrepareCHMgr(CPoint point); 00039 void Cancel(); 00040 void ApplyLanguage(); 00041 00042 afx_msg LRESULT OnNeedEndDialog (WPARAM wp, LPARAM); 00043 00044 UINT m_cAgains; 00045 static BOOL m_bNeedStop; 00046 00047 void StartConnect(); 00048 UINT m_cAttempts; 00049 00050 void SleepInterval(); 00051 00052 void Log (LPCSTR pszRecord); 00053 RASDIALPARAMS m_rp; 00054 00055 static CDialDlg* m_pThis; 00056 00057 static int m_pThisRefs; 00058 00059 static VOID WINAPI _RasDialFunc (UINT, RASCONNSTATE state, DWORD dwError); 00060 static BOOL m_bInRasFunc; 00061 fsDialInfo* m_dial; 00062 00063 //{{AFX_MSG(CDialDlg) 00064 virtual BOOL OnInitDialog(); 00065 virtual void OnCancel(); 00066 00067 afx_msg void OnConnect(); 00068 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); 00069 afx_msg void OnWhatisthis(); 00070 00071 afx_msg void OnAuto(); 00072 afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); 00073 //}}AFX_MSG 00074 DECLARE_MESSAGE_MAP() 00075 private: 00076 00077 static void Release_pThis(); 00078 }; 00079 00080 //{{AFX_INSERT_LOCATION}//}} 00081 00082 #endif
1.5.6