GME  13
CertificateDlg.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "resource.h"
00003 #include "afxwin.h"
00004 
00005 // CCertificateDlg dialog
00006 
00007 class CCertificateDlg : public CDialog
00008 {
00009         DECLARE_DYNAMIC(CCertificateDlg)
00010 
00011 public:
00012         CCertificateDlg( const std::string& p_text, bool p_permAcceptEnabled, CWnd* pParent = NULL);   // standard constructor
00013         virtual ~CCertificateDlg();
00014 
00015 // Dialog Data
00016         enum { IDD = IDD_DIALOG2 };
00017         typedef enum Response
00018         {
00019                 PermanentAccept
00020                 , TemoraryAccept
00021                 , Reject
00022         };
00023 
00024 
00025         Response getResp();
00026 
00027 protected:
00028         int         m_leftPad;
00029         int         m_rightPad;
00030 
00031         Response    m_response;
00032         std::string m_certDetails;
00033         bool        m_permAcceptEnabled;
00034 
00035         CEdit       m_textBox;
00036 
00037         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00038         virtual BOOL OnInitDialog();
00039 
00040         DECLARE_MESSAGE_MAP()
00041 public:
00042         afx_msg void OnBnClickedOk();
00043         afx_msg void OnSize(UINT nType, int cx, int cy);
00044 };