Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

NameDlg.cpp

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 // NameDlg.cpp : implementation file
00023 //
00024 
00025 #include "stdafx.h"
00026 #include "Radiant.h"
00027 #include "NameDlg.h"
00028 
00029 #ifdef _DEBUG
00030 #define new DEBUG_NEW
00031 #undef THIS_FILE
00032 static char THIS_FILE[] = __FILE__;
00033 #endif
00034 
00036 // CNameDlg dialog
00037 
00038 
00039 CNameDlg::CNameDlg(const char *pName, CWnd* pParent /*=NULL*/)
00040     : CDialog(CNameDlg::IDD, pParent)
00041 {
00042     //{{AFX_DATA_INIT(CNameDlg)
00043     m_strName = _T("");
00044     //}}AFX_DATA_INIT
00045   m_strCaption = pName;
00046 }
00047 
00048 
00049 void CNameDlg::DoDataExchange(CDataExchange* pDX)
00050 {
00051     CDialog::DoDataExchange(pDX);
00052     //{{AFX_DATA_MAP(CNameDlg)
00053     DDX_Text(pDX, IDC_EDIT_NAME, m_strName);
00054     //}}AFX_DATA_MAP
00055 }
00056 
00057 
00058 BEGIN_MESSAGE_MAP(CNameDlg, CDialog)
00059     //{{AFX_MSG_MAP(CNameDlg)
00060     //}}AFX_MSG_MAP
00061 END_MESSAGE_MAP()
00062 
00064 // CNameDlg message handlers
00065 
00066 void CNameDlg::OnOK() 
00067 {
00068     CDialog::OnOK();
00069 }
00070 
00071 BOOL CNameDlg::OnInitDialog() 
00072 {
00073     CDialog::OnInitDialog();
00074 
00075   SetWindowText(m_strCaption);
00076     
00077     return TRUE;  // return TRUE unless you set the focus to a control
00078                   // EXCEPTION: OCX Property Pages should return FALSE
00079 }

Generated on Thu Aug 25 12:38:33 2005 for Quake III Arena by  doxygen 1.3.9.1