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_PEGGLE_OPTNDLG_H
23#define HODJNPODJ_PEGGLE_OPTNDLG_H
24
25#include "bagel/hodjnpodj/peggle/options.h"
26
27namespace Bagel {
28namespace HodjNPodj {
29namespace Peggle {
30
31#define OPTN_BUTTON_WIDTH 50
32#define OPTN_BUTTON_HEIGHT 47
33#define CROSS_X 40
34#define CROSS_Y 27
35#define TRIANGLE_X 40
36#define TRIANGLE_Y 76
37#define CROSSPLUS_X 125
38#define CROSSPLUS_Y 27
39#define TRIANGLEPLUS_X 125
40#define TRIANGLEPLUS_Y 76
41
43// COptnDlg dialog
44
45class COptnDlg : public COptions {
46// Construction
47public:
48 COptnDlg(CWnd* pParent = nullptr, CPalette *pPalette = nullptr); // standard constructor
49
50// Dialog Data
51 //{{AFX_DATA(COptnDlg)
52 enum { IDD = IDD_SUBOPTIONS };
53 //}}AFX_DATA
54
55// Implementation
56protected:
57 virtual void DoDataExchange(CDataExchange *pDX) override; // DDX/DDV support
58
59 // Generated message map functions
60 //{{AFX_MSG(COptnDlg)
61 virtual bool OnInitDialog() override;
62 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
63 afx_msg bool OnEraseBkgnd(CDC *pDC);
64 virtual void OnOK() override;
65 virtual void OnCancel() override;
66 afx_msg void OnPaint();
67 afx_msg void OnClickedOkay() ;
68 afx_msg void OnClickedCancel() ;
69 afx_msg void OnClickedCross() ;
70 afx_msg void OnClickedCrossPlus() ;
71 afx_msg void OnClickedTriangle() ;
72 afx_msg void OnClickedTrianglePlus() ;
73 afx_msg void OnRandom();
74 afx_msg void OnDestroy();
75 //}}AFX_MSG
76 DECLARE_MESSAGE_MAP()
77};
78
79} // namespace Peggle
80} // namespace HodjNPodj
81} // namespace Bagel
82
83#endif
Definition: options.h:33
Definition: optndlg.h:45
Definition: afxwin.h:721
Definition: afxwin.h:667
Definition: afxwin.h:1141
Definition: minwindef.h:292
Definition: afxwin.h:1116