ScummVM API documentation
dialogs.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef HODJNPODJ_DFA_DIALOGS_H
23#define HODJNPODJ_DFA_DIALOGS_H
24
25#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
26#include "bagel/hodjnpodj/dfa/dfa.h"
27
28namespace Bagel {
29namespace HodjNPodj {
30namespace DFA {
31
35class CDFAOptDlg : public CBmpDialog {
36private:
37 int m_nGameTime = 0;
38 int m_nBeaverTime = 0;
39 CRect rDisplayGTime;
40 CRect rDisplayBTime;
41
42public:
43 CDFAOptDlg(CWnd* pParent = nullptr, CPalette *pPalette = nullptr, unsigned int = IDD_MINIOPTIONS_DIALOG);
44 void SetInitialOptions(int = 8, int = 1); // Sets the private members
45 void ClearDialogImage();
46 bool OnInitDialog() override;
47
48protected:
49 //{{AFX_MSG(COptions)
50 virtual void OnCancel() override;
51 virtual void OnOK() override;
52 virtual bool OnCommand(WPARAM, LPARAM) override;
53 afx_msg bool OnEraseBkgnd(CDC *pDC);
54 afx_msg void OnHScroll(unsigned int nSBCode, unsigned int nPos, CScrollBar* pScrollBar);
55 afx_msg void OnPaint();
56 afx_msg void OnDestroy();
57 //}}AFX_MSG
58 DECLARE_MESSAGE_MAP()
59};
60
64class CMsgDlg : public CBmpDialog {
65private:
66 int m_nWhichMsg;
67 long m_lScore;
68
69public:
70 CMsgDlg(CWnd* pParent = nullptr, CPalette *pPalette = nullptr, unsigned int = IDD_MESSAGEBOX);
71 void SetInitialOptions(int, long); // Sets the private members
72 void ClearDialogImage();
73 bool OnInitDialog() override;
74
75protected:
76 //{{AFX_MSG(COptions)
77 virtual void OnCancel() override;
78 virtual void OnOK() override;
79 virtual bool OnCommand(WPARAM, LPARAM) override;
80 afx_msg void OnPaint();
81 afx_msg void OnDestroy();
82 //}}AFX_MSG
83 DECLARE_MESSAGE_MAP()
84};
85
86} // namespace DFA
87} // namespace HodjNPodj
88} // namespace Bagel
89
90#endif
Definition: cbofdlg.h:31
Definition: dialogs.h:35
Definition: dialogs.h:64
Definition: afxwin.h:721
Definition: afxwin.h:667
Definition: atltypes.h:131
Definition: afxwin.h:1765
Definition: afxwin.h:1141