Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / 3d / object_viewer / bin_op_dlg.cpp
blob5eecd546c799435ead5c1880d5a5835b3fe481fc
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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/>.
19 #include "std_afx.h"
20 #include "object_viewer.h"
21 #include "bin_op_dlg.h"
22 #include "popup_notify.h"
24 /////////////////////////////////////////////////////////////////////////////
25 // CBinOpDlg dialog
28 CBinOpDlg::CBinOpDlg(IPopupNotify *pn, CWnd* pParent /*=NULL*/)
29 : _PN(pn), CDialog(CBinOpDlg::IDD, pParent)
31 //{{AFX_DATA_INIT(CBinOpDlg)
32 // NOTE: the ClassWizard will add member initialization here
33 //}}AFX_DATA_INIT
37 void CBinOpDlg::create(CWnd *pParent)
39 CDialog::Create(IDD_BIN_OP, pParent);
40 ShowWindow(SW_SHOW);
44 void CBinOpDlg::DoDataExchange(CDataExchange* pDX)
46 CDialog::DoDataExchange(pDX);
47 //{{AFX_DATA_MAP(CBinOpDlg)
48 DDX_Control(pDX, IDC_BIN_OP, m_BinOp);
49 //}}AFX_DATA_MAP
53 BEGIN_MESSAGE_MAP(CBinOpDlg, CDialog)
54 //{{AFX_MSG_MAP(CBinOpDlg)
55 ON_CBN_SELCHANGE(IDC_BIN_OP, OnSelchangeBinOp)
56 ON_WM_CLOSE()
57 //}}AFX_MSG_MAP
58 END_MESSAGE_MAP()
60 /////////////////////////////////////////////////////////////////////////////
61 // CBinOpDlg message handlers
63 BOOL CBinOpDlg::OnInitDialog()
65 CDialog::OnInitDialog();
67 return TRUE; // return TRUE unless you set the focus to a control
68 // EXCEPTION: OCX Property Pages should return FALSE
71 void CBinOpDlg::OnSelchangeBinOp()
73 UpdateData() ;
74 newOp((uint32)m_BinOp.GetItemData(m_BinOp.GetCurSel())) ;
77 void CBinOpDlg::OnClose()
79 CDialog::OnClose();
80 if (_PN) _PN->childPopupClosed(this);