ScummVM API documentation
optndlg.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_MAZEDOOM_OPTNDLG_H
23#define HODJNPODJ_MAZEDOOM_OPTNDLG_H
24
25#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
26#include "bagel/hodjnpodj/hnplibs/text.h"
27#include "bagel/hodjnpodj/mazedoom/mod.h"
28#include "bagel/hodjnpodj/mazedoom/resource.h"
29
30namespace Bagel {
31namespace HodjNPodj {
32namespace MazeDoom {
33
34#define LEFT_SIDE 30
35#define OPTIONS_COLOR RGB(0, 0, 0) // Color of the stats info CText
36
38// COptnDlg dialog
39
40class COptnDlg : public CBmpDialog {
41public:
42 COptnDlg(CWnd *pParent = nullptr, CPalette *pPalette = nullptr);
43 ~COptnDlg();
44 void UpdateScrollbars();
45 void ClearDialogImage();
46
47// Dialog Data
48 //{{AFX_DATA(COptnDlg)
49 enum { IDD = IDD_SUBOPTIONS };
50 CScrollBar m_ScrollTime;
51 CScrollBar m_ScrollDifficulty;
52 int _difficulty = 0;
53 int _time = 0;
54 int _seconds = 0;
55 int _minutes = 0;
56 CString mDifficultyTable [MAX_DIFFICULTY];
57 //}}AFX_DATA
58
59// Implementation
60protected:
61 virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
62
63 // Generated message map functions
64 //{{AFX_MSG(COptnDlg)
65 virtual bool OnInitDialog() override;
66 afx_msg void OnHScroll(unsigned int nSBCode, unsigned int nPos, CScrollBar* pScrollBar);
67 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
68 afx_msg bool OnEraseBkgnd(CDC *pDC);
69 virtual void OnOK() override;
70 virtual void OnCancel() override;
71 afx_msg void OnPaint();
72 afx_msg void OnDestroy();
73 //}}AFX_MSG
74 DECLARE_MESSAGE_MAP()
75};
76
77} // namespace MazeDoom
78} // namespace HodjNPodj
79} // namespace Bagel
80
81#endif
Definition: cbofdlg.h:31
Definition: optndlg.h:40
Definition: afxwin.h:721
Definition: afxwin.h:667
Definition: afxwin.h:1765
Definition: afxstr.h:31
Definition: afxwin.h:1141
Definition: minwindef.h:292
Definition: afxwin.h:1116