OSDN Git Service

- Replace include guards with #pragma once like winmerge2011
[winmerge-jp/winmerge-jp.git] / Src / AboutDlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 //    License (GPLv2+):
3 //    This program is free software; you can redistribute it and/or modify
4 //    it under the terms of the GNU General Public License as published by
5 //    the Free Software Foundation; either version 2 of the License, or
6 //    (at your option) any later version.
7 //
8 //    This program is distributed in the hope that it will be useful, but
9 //    WITHOUT ANY WARRANTY; without even the implied warranty of
10 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 //    General Public License for more details.
12 //
13 //    You should have received a copy of the GNU General Public License
14 //    along with this program; if not, write to the Free Software
15 //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 /////////////////////////////////////////////////////////////////////////////
17 /** 
18  * @file  AboutDlg.h
19  *
20  * @brief Declaration file for CAboutDlg.
21  *
22  */
23 #pragma once
24
25 #include "statlink.h"
26 #include "Picture.h"
27 #include "resource.h" // IDD_ABOUTBOX
28
29 /** 
30  * @brief About-dialog class.
31  * 
32  * Shows About-dialog bitmap and draws version number and other
33  * texts into it.
34  */
35 class CAboutDlg : public CDialog
36 {
37 public:
38         CAboutDlg();
39
40 // Dialog Data
41         //{{AFX_DATA(CAboutDlg)
42         enum { IDD = IDD_ABOUTBOX };
43         CStatic m_ctlCompany;
44         CStaticLink     m_ctlWWW;
45         CString m_strVersion;
46         CString m_strPrivateBuild;
47         CPicture m_image;
48         CFont m_font;
49         //}}AFX_DATA
50
51         // ClassWizard generated virtual function overrides
52         //{{AFX_VIRTUAL(CAboutDlg)
53         protected:
54         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
55         //}}AFX_VIRTUAL
56
57 // Implementation
58 protected:
59         //{{AFX_MSG(CAboutDlg)
60         virtual BOOL OnInitDialog();
61         //}}AFX_MSG
62         DECLARE_MESSAGE_MAP()
63 public:
64         afx_msg void OnBnClickedOpenContributors();
65         afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
66         afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
67 };