CaCertInfoPage.h
上传用户:dengkfang
上传日期:2008-12-30
资源大小:5233k
文件大小:3k
源码类别:

CA认证

开发平台:

Visual C++

  1. #if !defined(AFX_CACERTINFOPAGE_H__9B8E259D_C2BD_4B1C_A42D_A41E78DDCFE0__INCLUDED_)
  2. #define AFX_CACERTINFOPAGE_H__9B8E259D_C2BD_4B1C_A42D_A41E78DDCFE0__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // CaCertInfoPage.h : header file
  7. //
  8. #include ".ControlStaticTreeStaticTreeCtrl.h"
  9. #include ".ControlCheckListListCtrl.h"
  10. #include ".ControlFileEditCtrFileEditCtrl.h"
  11. #include ".ControltooltipOXToolTipCtrl.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CCaCertInfoPage dialog
  14. class CCaCertInfoPage : public CPropertyPage
  15. {
  16. DECLARE_DYNCREATE(CCaCertInfoPage)
  17. // Construction
  18. public:
  19. void TranslateCT();
  20. void GetIniInfo(CString strIniPath);
  21. void SetNamePath(const CString &strPath);
  22. virtual BOOL PreTranslateMessage(MSG* pMsg);
  23. struct stuCERTINFO
  24. {
  25. UINT uCertFormat;
  26. char cCertPwd[18];
  27. BOOL bCertP12;
  28. char cCertDir[256];
  29. UINT uCertDay;
  30. char cCertCsp[256];
  31. UINT uCertLen;
  32. char cCertCon[42];
  33. stuCERTINFO()
  34. {
  35. memset(this,0,sizeof(stuCERTINFO));
  36. }
  37. };
  38. void GetCert(stuSUBJECT *& pCERT,stuCERTINFO & certInfo);
  39. BOOL GetCertInfo(CStaticTreeCtrl * p_WizardTree,
  40.  HTREENODE & hInfoBase, 
  41.  HTREENODE &  hInfoHold, 
  42.  HTREENODE &  hInfoSave);
  43. CCaCertInfoPage();
  44. ~CCaCertInfoPage();
  45. // Dialog Data
  46. //{{AFX_DATA(CCaCertInfoPage)
  47. enum { IDD = IDD_PROPPAGE_CAINFO };
  48. // CXPEdit m_XpEditCont;
  49. gxListCtrl m_CheckList;
  50. // CXPEdit m_XpEditReq;
  51. CFileEditCtrl m_XpEdit;
  52. // CXPEdit m_XpEditDay;
  53. CComboBox m_CspBox;
  54. int m_RadioDisk;
  55. UINT m_Day;
  56. CString m_Pwd;
  57. //}}AFX_DATA
  58. // Overrides
  59. // ClassWizard generate virtual function overrides
  60. //{{AFX_VIRTUAL(CCaCertInfoPage)
  61. protected:
  62. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  63. //}}AFX_VIRTUAL
  64. // Implementation
  65. protected:
  66. int m_CertFormat;
  67. COXToolTipCtrl m_toolTip;
  68. // Generated message map functions
  69. //{{AFX_MSG(CCaCertInfoPage)
  70. afx_msg void OnRCsp();
  71. afx_msg void OnRadioDisk();
  72. virtual BOOL OnInitDialog();
  73. afx_msg void OnCainfoRadioder();
  74. afx_msg void OnCainfoRadiopem();
  75. //}}AFX_MSG
  76. BOOL OnToolTipNotify( UINT id, NMHDR * pTTTStruct, LRESULT * pResult);
  77. DECLARE_MESSAGE_MAP()
  78. private:
  79. CString m_IniPathName;
  80. CString GetDefaultCsp();
  81. CString m_PathName;
  82. BOOL EnumCsp();
  83. void SetLVCheck (WPARAM ItemIndex, BOOL bCheck = TRUE);
  84. CStringArray  m_ArrayInside;
  85. };
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  88. #endif // !defined(AFX_CACERTINFOPAGE_H__9B8E259D_C2BD_4B1C_A42D_A41E78DDCFE0__INCLUDED_)