Linux multi-monitor fullscreen support
[ryzomcore.git] / ryzom / tools / leveldesign / georges_dll / splash_screen.cpp
blob0f407024e76fcde1f2265b93f1f185bd9b5082b7
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
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 // splash_screen.cpp : implementation file
20 #include "stdafx.h"
21 #include "splash_screen.h"
22 #include <string>
24 using namespace std;
26 /////////////////////////////////////////////////////////////////////////////
27 // CSplashScreen dialog
30 CSplashScreen::CSplashScreen(CWnd* pParent /*=NULL*/)
31 : CDialog(CSplashScreen::IDD, pParent)
33 //{{AFX_DATA_INIT(CSplashScreen)
34 m_load_list = _T("");
35 //}}AFX_DATA_INIT
39 void CSplashScreen::DoDataExchange(CDataExchange* pDX)
41 CDialog::DoDataExchange(pDX);
42 //{{AFX_DATA_MAP(CSplashScreen)
43 DDX_Text(pDX, IDC_LOAD_GEORGES, m_load_list);
44 //}}AFX_DATA_MAP
47 void CSplashScreen::addLine(std::string newLine)
49 m_load_list=m_load_list+"\n"+newLine.c_str();
50 UpdateData(false);
51 ShowWindow(true);
52 RedrawWindow();
54 void CSplashScreen::close()
56 OnClose();
59 void CSplashScreen::progress (float progressValue)
61 MSG msg;
62 while ( PeekMessage(&msg,NULL,0,0,PM_REMOVE) )
64 TranslateMessage(&msg);
65 DispatchMessage(&msg);
70 BEGIN_MESSAGE_MAP(CSplashScreen, CDialog)
71 //{{AFX_MSG_MAP(CSplashScreen)
72 // NOTE: the ClassWizard will add message map macros here
73 //}}AFX_MSG_MAP
74 END_MESSAGE_MAP()
76 /////////////////////////////////////////////////////////////////////////////
77 // CSplashScreen message handlers