ScummVM API documentation
options.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_OPTIONS_H
23#define HODJNPODJ_PEGGLE_OPTIONS_H
24
25#include "bagel/hodjnpodj/hnplibs/dibdoc.h"
26#include "bagel/hodjnpodj/globals.h"
27#include "bagel/hodjnpodj/peggle/optres.h"
28
29namespace Bagel {
30namespace HodjNPodj {
31namespace Peggle {
32
33class COptions : public CDialog {
34// Construction
35public:
36 COptions(CWnd* pParent, CPalette *pPalette, int iDlgId);
37
38 void ClearDialogImage();
39 void RefreshBackground();
40
41 int m_iDlgId = 0; // dialog id
42 CWnd *m_pDlgParentWnd = nullptr;
43 CBitmap *m_pDlgBackground = nullptr;
44
45private:
46 CRect OptionsRect, OkayRect;
47
48 // Dialog Data
49 //{{AFX_DATA(COptions)
50 enum { IDD = IDD_OPTIONS_DIALOG };
51 // NOTE: the ClassWizard will add data members here
52 //}}AFX_DATA
53
54// Implementation
55protected:
56 virtual void DoDataExchange(CDataExchange *pDX) override; // DDX/DDV support
57
58 // Generated message map functions
59 //{{AFX_MSG(COptions)
60 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
61 virtual bool OnInitDialog() override;
62 afx_msg bool OnEraseBkgnd(CDC *pDC);
63 virtual void OnOK() override;
64 afx_msg void OnPaint();
65 afx_msg void OnShowWindow(bool bShow, unsigned int nStatus);
66 afx_msg void OnSize(unsigned int nType, int cx, int cy);
67 afx_msg void OnMouseMove(unsigned int nFlags, CPoint point);
68 afx_msg void OnLButtonDown(unsigned int nFlags, CPoint point);
69 afx_msg void OnClickedRules() ;
70 afx_msg void OnClickedNewgame() ;
71 afx_msg void OnClickedOptions() ;
72 afx_msg void OnClickedAudio() ;
73 afx_msg void OnClickedReturn();
74 afx_msg void OnClickedQuit();
75 afx_msg void OnDestroy();
76// afx_msg void OnActivate(unsigned int nState, CWnd *pWndOther, bool bMinimized);
77 //}}AFX_MSG
78 DECLARE_MESSAGE_MAP()
79};
80
81} // namespace Peggle
82} // namespace HodjNPodj
83} // namespace Bagel
84
85#endif
Definition: options.h:33
Definition: afxwin.h:635
Definition: afxwin.h:721
Definition: afxwin.h:1599
Definition: afxwin.h:667
Definition: atltypes.h:79
Definition: atltypes.h:131
Definition: afxwin.h:1141
Definition: minwindef.h:292
Definition: afxwin.h:1116