[6a7162]: / AboutDlg.h  Maximize  Restore  History

Download this file

56 lines (44 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright (c) 2003-2008 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
#pragma once
/// \file AboutDlg.h
//-----------------------------------------------------------------------------
#include "PWDialog.h"
#include "DboxMain.h"
#include "RichEditCtrlExtn.h"
class CAboutDlg : public CPWDialog
{
public:
CAboutDlg(CWnd* pParent = NULL);
// Dialog Data
//{{AFX_DATA(CAddDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
protected:
virtual BOOL OnInitDialog();
// Generated message map functions
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
private:
int m_nMajor;
int m_nMinor;
int m_nBuild;
CString m_appversion;
CString m_appcopyright;
CString m_newVerStatus;
CRichEditCtrlExtn m_RECExNewVerStatus;
CRichEditCtrlExtn m_RECExWebSite;
enum CheckStatus {UP2DATE, NEWER_AVAILABLE, CANT_CONNECT, CANT_READ};
CheckStatus CheckLatestVersion(CString &latest);
void CheckNewVer();
static bool OnCheckVersion(const CString &URL, const CString &FName, LPARAM instance);
};