mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
69 lines
2.1 KiB
C++
69 lines
2.1 KiB
C++
// NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
//
|
|
|
|
#include "std_afx.h"
|
|
#include "object_viewer.h"
|
|
#include "edit_user_param.h"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CEditUserParam dialog
|
|
|
|
|
|
CEditUserParam::CEditUserParam(uint32 userParamIndex, CWnd* pParent /*=NULL*/)
|
|
: _UserParamIndex(userParamIndex), CDialog(CEditUserParam::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CEditUserParam)
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void CEditUserParam::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CEditUserParam)
|
|
DDX_Control(pDX, IDC_USER_PARAM_INDEX, m_UserParamIndex);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CEditUserParam, CDialog)
|
|
//{{AFX_MSG_MAP(CEditUserParam)
|
|
ON_CBN_SELCHANGE(IDC_USER_PARAM_INDEX, OnSelchangeUserParamIndex)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CEditUserParam message handlers
|
|
|
|
BOOL CEditUserParam::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
m_UserParamIndex.SetCurSel(_UserParamIndex) ;
|
|
UpdateData(FALSE) ;
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
void CEditUserParam::OnSelchangeUserParamIndex()
|
|
{
|
|
UpdateData() ;
|
|
_UserParamIndex = m_UserParamIndex.GetCurSel() ;
|
|
}
|