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_BEACON_OPTNDLG_H
23#define HODJNPODJ_BEACON_OPTNDLG_H
24
25#include "bagel/hodjnpodj/beacon/resource.h"
26#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
27#include "bagel/hodjnpodj/hnplibs/text.h"
28
29namespace Bagel {
30namespace HodjNPodj {
31namespace Beacon {
32
33#define LEFT_SIDE 30
34#define OPTIONS_COLOR RGB(0, 0, 0) // Color of the stats info CText
35#define NUM_SPEEDS 3
36
38// COptnDlg dialog
39
40class COptnDlg : public CBmpDialog {
41// Construction
42public:
43 COptnDlg(CWnd* pParent = nullptr, CPalette *pPalette = nullptr); // standard constructor
44 ~COptnDlg(); // destructor
45 void UpdateScrollbars();
46 void ClearDialogImage();
47
48// Dialog Data
49 //{{AFX_DATA(COptnDlg)
50 enum { IDD = IDD_SUBOPTIONS };
51 CScrollBar m_ScrollSweeps;
52 CScrollBar m_ScrollSpeed;
53 bool m_bAutomatic = false;
54 bool m_bChangeAtTwelve = false;
55 unsigned int m_nSweeps = 0;
56 unsigned int m_nSpeed = 0;
57 unsigned int nSweepSets = 0;
58 CString mSpeedTable [NUM_SPEEDS];
59 //}}AFX_DATA
60
61// Implementation
62protected:
63 virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
64
65 // Generated message map functions
66 //{{AFX_MSG(COptnDlg)
67 virtual bool OnCommand(WPARAM wParam, LPARAM lParam) override;
68 virtual bool OnInitDialog() override;
69 afx_msg void OnHScroll(unsigned int nSBCode, unsigned int nPos, CScrollBar* pScrollBar);
70 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
71 afx_msg bool OnEraseBkgnd(CDC *pDC);
72 virtual void OnOK() override;
73 virtual void OnCancel() override;
74 afx_msg void OnPaint();
75 afx_msg void OnAutomatic();
76 afx_msg void OnChangeAtTwelve();
77 afx_msg void OnDestroy();
78 //}}AFX_MSG
79 DECLARE_MESSAGE_MAP()
80};
81
82} // namespace Beacon
83} // namespace HodjNPodj
84} // namespace Bagel
85
86#endif
Definition: optndlg.h:40
Definition: cbofdlg.h:31
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