Crypt Library Demo 1.00
|
Public Member Functions | |
virtual BOOL | OnInitDialog () |
afx_msg void | OnDestroy () |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
Protected Attributes | |
CFont | m_fontCourier |
CStatic | m_ctrlVersion |
CEdit | m_ctrlWarning |
CVersionInfo | m_pVersionInfo |
CHyperlinkStatic | m_ctrlWebsite |
CHyperlinkStatic | m_ctrlEmail |
Private Types | |
enum | { IDD = IDD_ABOUTBOX } |
Private Attributes | |
D | __pad0__:/Projects/CryptLibraryDemo/CryptLibraryDemoDlg.cpp" 2"D:/Projects/CryptLibraryDemo/CryptLibraryDemoDlg.cpp" 2"D:/Projects/CryptLibraryDemo/CryptLibraryDemoDlg.cpp" 2public: CAboutDlg() |
Definition at line 32 of file CryptLibraryDemoDlg.cpp.
anonymous enum [private] |
Definition at line 41 of file CryptLibraryDemoDlg.cpp.
: virtual BOOL OnInitDialog();
void CAboutDlg::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 63 of file CryptLibraryDemoDlg.cpp.
{ CDialog::DoDataExchange(pDX); DDX_Control(pDX, IDC_VERSION, m_ctrlVersion); DDX_Control(pDX, IDC_WARNING, m_ctrlWarning); DDX_Control(pDX, IDC_WEBSITE, m_ctrlWebsite); DDX_Control(pDX, IDC_EMAIL, m_ctrlEmail); }
void CAboutDlg::OnDestroy | ( | ) |
Definition at line 114 of file CryptLibraryDemoDlg.cpp.
{ CDialog::OnDestroy(); VERIFY(m_fontCourier.DeleteObject()); }
BOOL CAboutDlg::OnInitDialog | ( | ) | [virtual] |
Definition at line 76 of file CryptLibraryDemoDlg.cpp.
{ CDialog::OnInitDialog(); if (m_pVersionInfo.Load(AfxGetApp()->m_pszExeName)) { CString strName = m_pVersionInfo.GetProductName(); CString strVersion = m_pVersionInfo.GetProductVersionAsString(); strVersion.Replace(_T(" "), _T("")); strVersion.Replace(_T(","), _T(".")); const int nFirst = strVersion.Find(_T('.')); const int nSecond = strVersion.Find(_T('.'), nFirst + 1); strVersion.Truncate(nSecond); m_ctrlVersion.SetWindowText(strName + _T(" version ") + strVersion); } // set up window's terminal fixed font LOGFONT logfont; memset(&logfont, 0, sizeof(logfont)); logfont.lfCharSet = OEM_CHARSET; logfont.lfPitchAndFamily = FIXED_PITCH; // logfont.lfQuality = ANTIALIASED_QUALITY; logfont.lfOutPrecision = OUT_TT_PRECIS; logfont.lfWeight = FW_NORMAL; logfont.lfHeight = 10; _tcscpy_s(logfont.lfFaceName, LF_FACESIZE, _T("Tahoma")); VERIFY(m_fontCourier.CreateFontIndirect(&logfont)); m_ctrlWarning.SetFont(&m_fontCourier); m_ctrlWarning.SetWindowText(_T("THE SOFTWARE IS PROVIDED \"AS-IS\" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MIHAI MOGA BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.")); m_ctrlWebsite.SetHyperlink(_T("http://www.mihaimoga.com/")); m_ctrlEmail.SetHyperlink(_T("mailto:contact@mihaimoga.com")); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
D CAboutDlg::__pad0__ [private] |
Definition at line 38 of file CryptLibraryDemoDlg.cpp.
CHyperlinkStatic CAboutDlg::m_ctrlEmail [protected] |
Definition at line 57 of file CryptLibraryDemoDlg.cpp.
CStatic CAboutDlg::m_ctrlVersion [protected] |
Definition at line 53 of file CryptLibraryDemoDlg.cpp.
CEdit CAboutDlg::m_ctrlWarning [protected] |
Definition at line 54 of file CryptLibraryDemoDlg.cpp.
CHyperlinkStatic CAboutDlg::m_ctrlWebsite [protected] |
Definition at line 56 of file CryptLibraryDemoDlg.cpp.
CFont CAboutDlg::m_fontCourier [protected] |
Definition at line 52 of file CryptLibraryDemoDlg.cpp.
CVersionInfo CAboutDlg::m_pVersionInfo [protected] |
Definition at line 55 of file CryptLibraryDemoDlg.cpp.