1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
8 // This program is free software; you can redistribute it and/or modify it
9 // under the terms of the GNU General Public License as published by the Free
10 // Software Foundation; either version 2 of the License, or (at your option)
13 // This program is distributed in the hope that it will be useful, but WITHOUT
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc.,
20 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
25 // PkgAdminLicenseDlg.cpp : implementation file
30 #include "PkgAdminLicenseDlg.h"
35 static char THIS_FILE[] = __FILE__;
38 /////////////////////////////////////////////////////////////////////////////
39 // CPkgAdminLicenseDlg dialog
42 CPkgAdminLicenseDlg::CPkgAdminLicenseDlg(CWnd* pParent /*=NULL*/)
43 : CeCosDialog(CPkgAdminLicenseDlg::IDD, pParent)
45 //{{AFX_DATA_INIT(CPkgAdminLicenseDlg)
46 m_strLicense = _T("");
47 m_strCaption = _T("");
52 void CPkgAdminLicenseDlg::DoDataExchange(CDataExchange* pDX)
54 CeCosDialog::DoDataExchange(pDX);
55 //{{AFX_DATA_MAP(CPkgAdminLicenseDlg)
56 DDX_Control(pDX, IDC_PKGADMIN_LICENSE, m_edtLicense);
57 DDX_Text(pDX, IDC_PKGADMIN_LICENSE, m_strLicense);
62 BEGIN_MESSAGE_MAP(CPkgAdminLicenseDlg, CeCosDialog)
63 //{{AFX_MSG_MAP(CPkgAdminLicenseDlg)
67 /////////////////////////////////////////////////////////////////////////////
68 // CPkgAdminLicenseDlg message handlers
71 BOOL CPkgAdminLicenseDlg::OnInitDialog()
73 CeCosDialog::OnInitDialog();
75 m_fontLicense.CreatePointFont (90, _T("Courier New")); // use monospaced font
76 m_edtLicense.SetFont (&m_fontLicense, FALSE);
78 if (! m_strCaption.IsEmpty ())
79 SetWindowText (m_strCaption);
81 return TRUE; // return TRUE unless you set the focus to a control
82 // EXCEPTION: OCX Property Pages should return FALSE