GME  13
CredentialDlg.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "resource.h"
00003 #include "afxwin.h"
00004 
00005 // CCredentialDlg dialog
00006 
00007 class CCredentialDlg : public CDialog
00008 {
00009         DECLARE_DYNAMIC(CCredentialDlg)
00010 
00011 public:
00012         CCredentialDlg( bool p_userNameOnly, bool p_visibleMaySave, bool p_maySave, const std::string& p_uName, const char* p_realmStr, CWnd* pParent = NULL);   // standard constructor
00013         virtual ~CCredentialDlg();
00014 
00015         std::string name();
00016         std::string word();
00017         bool        maySave();
00018 
00019 // Dialog Data
00020         enum { IDD = IDD_DIALOG1 };
00021 
00022 protected:
00023         bool        m_userNameOnly;
00024         bool        m_visibleMaySave;
00025         bool        m_maySave;
00026         std::string m_suggestedName;
00027         const char* m_realmStrPtr;
00028 
00029         int         m_leftPad;
00030         int         m_rightPad;
00031 
00032         bool        m_resMaySave;
00033         std::string m_resName;
00034         std::string m_resWord;
00035 
00036         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00037         virtual BOOL OnInitDialog();
00038 
00039         DECLARE_MESSAGE_MAP()
00040 public:
00041         afx_msg void OnBnClickedOk();
00042         afx_msg void OnSize(UINT nType, int cx, int cy);
00043 
00044         CButton m_btnMaySave;
00045         CEdit   m_edtName;
00046         CEdit   m_edtWord;
00047         CEdit   m_edtRealm;
00048         CStatic m_msgAtTheTop;
00049 };