1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "object_viewer.h"
22 #include "edit_user_param.h"
25 /////////////////////////////////////////////////////////////////////////////
26 // CEditUserParam dialog
29 CEditUserParam::CEditUserParam(uint32 userParamIndex
, CWnd
* pParent
/*=NULL*/)
30 : _UserParamIndex(userParamIndex
), CDialog(CEditUserParam::IDD
, pParent
)
32 //{{AFX_DATA_INIT(CEditUserParam)
37 void CEditUserParam::DoDataExchange(CDataExchange
* pDX
)
39 CDialog::DoDataExchange(pDX
);
40 //{{AFX_DATA_MAP(CEditUserParam)
41 DDX_Control(pDX
, IDC_USER_PARAM_INDEX
, m_UserParamIndex
);
46 BEGIN_MESSAGE_MAP(CEditUserParam
, CDialog
)
47 //{{AFX_MSG_MAP(CEditUserParam)
48 ON_CBN_SELCHANGE(IDC_USER_PARAM_INDEX
, OnSelchangeUserParamIndex
)
52 /////////////////////////////////////////////////////////////////////////////
53 // CEditUserParam message handlers
55 BOOL
CEditUserParam::OnInitDialog()
57 CDialog::OnInitDialog();
59 m_UserParamIndex
.SetCurSel(_UserParamIndex
) ;
61 return TRUE
; // return TRUE unless you set the focus to a control
62 // EXCEPTION: OCX Property Pages should return FALSE
65 void CEditUserParam::OnSelchangeUserParamIndex()
68 _UserParamIndex
= m_UserParamIndex
.GetCurSel() ;