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_ARTPARTS_OPTNDLG_H
23#define HODJNPODJ_ARTPARTS_OPTNDLG_H
24
25#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
26#include "bagel/hodjnpodj/hnplibs/text.h"
27
28namespace Bagel {
29namespace HodjNPodj {
30namespace ArtParts {
31
32#define LEFT_SIDE 30
33#define OPTIONS_COLOR RGB(0, 0, 0) // Color of the stats info CText
34
36// COptnDlg dialog
37
38class COptnDlg : public CBmpDialog {
39// Construction
40public:
41 COptnDlg(CWnd* pParent = nullptr, CPalette *pPalette = nullptr); // standard constructor
42 ~COptnDlg(); // destructor
43 void UpdateScrollbars();
44 void ClearDialogImage();
45
46 int m_nTime = 0;
47 int m_nRows = 0;
48 int m_nColumns = 0;
49 int m_nMins = 0;
50 int m_nSecs = 0;
51 float m_nScore = 0.0;
52 bool m_bFramed = false;
53 int m_nNumParts = 0;
54
55 int nCFacs = 0;
56 int nRFacs = 0;
57
58// Dialog Data
59 //{{AFX_DATA(COptnDlg)
60 enum { IDD = IDD_SUBOPTIONS };
61 CScrollBar m_ScrollTime;
62 CScrollBar m_ScrollColumns;
63 CScrollBar m_ScrollRows;
64 //}}AFX_DATA
65
66// Implementation
67protected:
68 virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
69
70 // Generated message map functions
71 //{{AFX_MSG(COptnDlg)
72 virtual bool OnInitDialog() override;
73 afx_msg void OnHScroll(unsigned int nSBCode, unsigned int nPos, CScrollBar* pScrollBar);
74 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
75 afx_msg bool OnEraseBkgnd(CDC *pDC);
76 virtual void OnOK() override;
77 virtual void OnCancel() override;
78 afx_msg void OnPaint();
79 afx_msg void OnFramed();
80 afx_msg void OnDestroy();
81 //}}AFX_MSG
82 DECLARE_MESSAGE_MAP()
83};
84
85} // namespace ArtParts
86} // namespace HodjNPodj
87} // namespace Bagel
88
89#endif
Definition: optndlg.h:38
Definition: cbofdlg.h:31
Definition: afxwin.h:721
Definition: afxwin.h:667
Definition: afxwin.h:1765
Definition: afxwin.h:1141
Definition: minwindef.h:292
Definition: afxwin.h:1116