Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / skippable_message_box.cpp
blob177d52d8dc38b930edab5e3f392b0fc2b17cbb94
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/>.
17 // skippable_message_box.cpp : implementation file
20 #include "std_afx.h"
21 #include "object_viewer.h"
22 #include "skippable_message_box.h"
25 /////////////////////////////////////////////////////////////////////////////
26 // CSkippableMessageBox dialog
29 CSkippableMessageBox::CSkippableMessageBox(const CString &caption, const CString &content, CWnd* pParent /*=NULL*/)
30 : CDialog(CSkippableMessageBox::IDD, pParent)
32 //{{AFX_DATA_INIT(CSkippableMessageBox)
33 // NOTE: the ClassWizard will add member initialization here
34 //}}AFX_DATA_INIT
35 _BypassFlag = false;
36 _Caption = caption;
37 _Content = content;
41 void CSkippableMessageBox::DoDataExchange(CDataExchange* pDX)
43 CDialog::DoDataExchange(pDX);
44 //{{AFX_DATA_MAP(CSkippableMessageBox)
45 // NOTE: the ClassWizard will add DDX and DDV calls here
46 //}}AFX_DATA_MAP
50 BEGIN_MESSAGE_MAP(CSkippableMessageBox, CDialog)
51 //{{AFX_MSG_MAP(CSkippableMessageBox)
52 //}}AFX_MSG_MAP
53 END_MESSAGE_MAP()
55 /////////////////////////////////////////////////////////////////////////////
56 // CSkippableMessageBox message handlers
58 BOOL CSkippableMessageBox::OnInitDialog()
60 CDialog::OnInitDialog();
61 SetWindowText((LPCTSTR) _Caption);
62 GetDlgItem(IDC_MB_CONTENT)->SetWindowText((LPCTSTR) _Content);
63 return TRUE; // return TRUE unless you set the focus to a control
64 // EXCEPTION: OCX Property Pages should return FALSE
67 //*************************************************************************************
68 void CSkippableMessageBox::OnOK()
70 _BypassFlag = ((CButton *) GetDlgItem(IDC_DONT_SHOW_AGAIN))->GetCheck() != 0;
71 CDialog::OnOK();