CaCertInfoPage.h
资源名称:MiniCA2.rar [点击查看]
上传用户:dengkfang
上传日期:2008-12-30
资源大小:5233k
文件大小:3k
源码类别:
CA认证
开发平台:
Visual C++
- #if !defined(AFX_CACERTINFOPAGE_H__9B8E259D_C2BD_4B1C_A42D_A41E78DDCFE0__INCLUDED_)
- #define AFX_CACERTINFOPAGE_H__9B8E259D_C2BD_4B1C_A42D_A41E78DDCFE0__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // CaCertInfoPage.h : header file
- //
- #include ".ControlStaticTreeStaticTreeCtrl.h"
- #include ".ControlCheckListListCtrl.h"
- #include ".ControlFileEditCtrFileEditCtrl.h"
- #include ".ControltooltipOXToolTipCtrl.h"
- /////////////////////////////////////////////////////////////////////////////
- // CCaCertInfoPage dialog
- class CCaCertInfoPage : public CPropertyPage
- {
- DECLARE_DYNCREATE(CCaCertInfoPage)
- // Construction
- public:
- void TranslateCT();
- void GetIniInfo(CString strIniPath);
- void SetNamePath(const CString &strPath);
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- struct stuCERTINFO
- {
- UINT uCertFormat;
- char cCertPwd[18];
- BOOL bCertP12;
- char cCertDir[256];
- UINT uCertDay;
- char cCertCsp[256];
- UINT uCertLen;
- char cCertCon[42];
- stuCERTINFO()
- {
- memset(this,0,sizeof(stuCERTINFO));
- }
- };
- void GetCert(stuSUBJECT *& pCERT,stuCERTINFO & certInfo);
- BOOL GetCertInfo(CStaticTreeCtrl * p_WizardTree,
- HTREENODE & hInfoBase,
- HTREENODE & hInfoHold,
- HTREENODE & hInfoSave);
- CCaCertInfoPage();
- ~CCaCertInfoPage();
- // Dialog Data
- //{{AFX_DATA(CCaCertInfoPage)
- enum { IDD = IDD_PROPPAGE_CAINFO };
- // CXPEdit m_XpEditCont;
- gxListCtrl m_CheckList;
- // CXPEdit m_XpEditReq;
- CFileEditCtrl m_XpEdit;
- // CXPEdit m_XpEditDay;
- CComboBox m_CspBox;
- int m_RadioDisk;
- UINT m_Day;
- CString m_Pwd;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(CCaCertInfoPage)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- int m_CertFormat;
- COXToolTipCtrl m_toolTip;
- // Generated message map functions
- //{{AFX_MSG(CCaCertInfoPage)
- afx_msg void OnRCsp();
- afx_msg void OnRadioDisk();
- virtual BOOL OnInitDialog();
- afx_msg void OnCainfoRadioder();
- afx_msg void OnCainfoRadiopem();
- //}}AFX_MSG
- BOOL OnToolTipNotify( UINT id, NMHDR * pTTTStruct, LRESULT * pResult);
- DECLARE_MESSAGE_MAP()
- private:
- CString m_IniPathName;
- CString GetDefaultCsp();
- CString m_PathName;
- BOOL EnumCsp();
- void SetLVCheck (WPARAM ItemIndex, BOOL bCheck = TRUE);
- CStringArray m_ArrayInside;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CACERTINFOPAGE_H__9B8E259D_C2BD_4B1C_A42D_A41E78DDCFE0__INCLUDED_)