Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.9 KiB

  1. // NKChseCA.h : header file
  2. //
  3. // forward declarations
  4. class CNKChooseCA;
  5. /////////////////////////////////////////////////////////////////////////////
  6. // a common object to go above the various wizard pages
  7. class CNKPages : public CPropertyPage
  8. {
  9. // Construction
  10. public:
  11. CNKPages( UINT nIDCaption );
  12. // called when the finish button was selected
  13. // actually, called afterwards
  14. virtual void OnFinish();
  15. // member variables
  16. CPropertySheet* m_pPropSheet;
  17. CNKChooseCA* m_pChooseCAPage;
  18. // protected stuff
  19. protected:
  20. BOOL FGetStoredString( CString &sz, LPCSTR szValueName );
  21. void SetStoredString( CString &sz, LPCSTR szValueName );
  22. };
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CNKChooseCA dialog
  25. class CNKChooseCA : public CNKPages
  26. {
  27. // Construction
  28. public:
  29. CNKChooseCA(CWnd* pParent = NULL); // standard constructor
  30. virtual void OnFinish();
  31. virtual BOOL OnInitDialog(); // override virtual oninitdialog
  32. virtual BOOL OnSetActive();
  33. virtual BOOL OnKillActive();
  34. DWORD GetSelectedCA( CString &szCA );
  35. // Dialog Data
  36. //{{AFX_DATA(CNKChooseCA)
  37. enum { IDD = IDD_NK_CHOOSE_CA };
  38. CComboBox m_nkca_ccombo_online;
  39. CEdit m_nkca_cedit_file;
  40. CButton m_nkca_btn_browse;
  41. CButton m_nkca_btn_properties;
  42. CString m_nkca_sz_file;
  43. int m_nkca_radio;
  44. CString m_nkca_sz_online;
  45. //}}AFX_DATA
  46. // Overrides
  47. // ClassWizard generated virtual function overrides
  48. //{{AFX_VIRTUAL(CNKChooseCA)
  49. protected:
  50. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  51. //}}AFX_VIRTUAL
  52. // Implementation
  53. protected:
  54. // Generated message map functions
  55. //{{AFX_MSG(CNKChooseCA)
  56. afx_msg void OnNkCaOnlineRadio();
  57. afx_msg void OnNkCaFileRadio();
  58. afx_msg void OnNkCaBrowse();
  59. afx_msg void OnBkCaProperties();
  60. afx_msg void OnSelchangeNkCaOnline();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. WORD InitOnlineList();
  64. };