Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CExitMode.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-c++src
File size: 682 byte(s)


1 #include "stdafx.h"
2 #include "CExitMode.h"
3 #include "CSimpleDialog.h"
4
5 // 内部定数
6 const int WW = 256, WH = TILE_UNIT*6; // 窓サイズ
7
8 /*
9 * コンストラクタ
10 */
11 CExitMode::CExitMode(){
12 m_Dialog = NULL;
13 }
14
15 /*
16 * モードを有効化
17 */
18 void CExitMode::EnterInterface(){
19 ms_ModeLabel = lang(Quit);
20 g_ModalDialog = m_Dialog = new CYesNoDialog(
21 lang(QuitCfmMessage), lang(QuitCfm), false);
22 }
23
24 /*
25 * モーダル処理
26 */
27 void CExitMode::ModalFuncInterface(){
28 if(m_Dialog->CheckYes()){
29 DELETE_V(g_ModalDialog);
30 m_Dialog = NULL;
31 Sleep(200);
32 Exit();
33 }else if(m_Dialog->CheckNo()){
34 DELETE_V(g_ModalDialog);
35 m_Dialog = NULL;
36 SetNeutral();
37 }
38 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26