ScummVM API documentation
zoommap.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 BAGEL_METAGAME_ZOOM_ZOOMMAP_H
23#define BAGEL_METAGAME_ZOOM_ZOOMMAP_H
24
25#include "bagel/hodjnpodj/globals.h"
26#include "bagel/hodjnpodj/metagame/zoom/resource.h"
27#include "bagel/hodjnpodj/hnplibs/dibdoc.h"
28#include "bagel/hodjnpodj/hnplibs/gamedll.h"
29#include "bagel/hodjnpodj/hnplibs/cbofdlg.h" // header for the options library
30#include "bagel/hodjnpodj/hnplibs/mainmenu.h"
31#include "bagel/hodjnpodj/hnplibs/button.h"
32#include "bagel/hodjnpodj/hnplibs/rules.h"
33#include "bagel/hodjnpodj/hnplibs/text.h"
34#include "bagel/hodjnpodj/hnplibs/bitmaps.h"
35#include "bagel/hodjnpodj/hnplibs/sprite.h"
36
37namespace Bagel {
38namespace HodjNPodj {
39namespace Metagame {
40namespace Zoom {
41
42// Button Identifier codes (BIDs)
43#define IDC_OPTION 100
44#define IDC_JUNK 999
45
46// Button positioning constants
47#define OPTION_WIDTH 146
48#define OPTION_HEIGHT 23
49#define OPTION_LEFT 246
50#define OPTION_TOP 0
51
52class CMainZoomWindow : public CFrameWnd {
53private:
54 HWND m_hCallAppWnd = (HWND)0;
55 bool m_bShowExit = false;
56 bool _isDemo = false;
57 CRect MainRect; // screen area spanned by the game window
58 CRect OptionRect; // screen area spanned by the option button
59
60 CRect rText;
61 CRect rLeaveRect;
62
63 int rectIndexOf(const CPoint &pt);
64
65public:
66 CMainZoomWindow(HWND, bool);
67
68 void SplashScreen();
69
70 static void ReleaseResources();
71 static void FlushInputEvents();
72
73protected:
74 bool OnCommand(WPARAM wParam, LPARAM lParam) override;
75
76 //{{AFX_MSG( CMainPackRatWindow )
77 afx_msg void OnPaint();
78 afx_msg void OnClose();
79 afx_msg void OnDestroy();
80 afx_msg void OnTimer(uintptr);
81 afx_msg void OnLButtonDown(unsigned int, CPoint);
82 afx_msg void OnLButtonUp(unsigned int, CPoint);
83 afx_msg void OnMouseMove(unsigned int, CPoint);
84 afx_msg void OnKeyDown(unsigned int, unsigned int, unsigned int);
85 afx_msg bool OnEraseBkgnd(CDC *);
86 afx_msg void OnActivate(unsigned int nState, CWnd *pWndOther, bool bMinimized) override;
87 //}}AFX_MSG
88
89 DECLARE_MESSAGE_MAP()
90};
91
92} // namespace Zoom
93} // namespace Metagame
94} // namespace HodjNPodj
95} // namespace Bagel
96
97#endif
Definition: afxwin.h:721
Definition: afxwin.h:1532
Definition: atltypes.h:79
Definition: atltypes.h:131
Definition: afxwin.h:1141