ScummVM API documentation
cbofdlg.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_HNPLIBS_CBOFDLG_H
23 #define HODJNPODJ_HNPLIBS_CBOFDLG_H
24 
25 #include "bagel/afxwin.h"
26 #include "bagel/hodjnpodj/hnplibs/dibdoc.h"
27 
28 namespace Bagel {
29 namespace HodjNPodj {
30 
31 class CBmpDialog : public CDialog {
32 public:
33  // Construction
34  CBmpDialog(CWnd *, CPalette *, int, const char *, const int dx = -1, const int dy = -1, bool bSaveBackground = true);
35  CBmpDialog(CWnd *, CPalette *, int, int, const int dx = -1, const int dy = -1, bool bSaveBackground = true);
36 
37  void RefreshBackground(CDC *pDC = nullptr);
38 
39 private:
40  // Dialog Data
41  //{{AFX_DATA(CBmpDialog)
42  // NOTE: the ClassWizard will add data members here
43  //}}AFX_DATA
44 
45 protected:
46  // Implementation
47  void EndDialog(int);
48  void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
49 
50  // Generated message map functions
51  //{{AFX_MSG(CBmpDialog)
52  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
53  bool OnInitDialog() override;
54  afx_msg bool OnEraseBkgnd(CDC *pDC);
55  afx_msg void OnPaint();
56  afx_msg void OnDestroy();
57  afx_msg void OnShowWindow(bool bShow, unsigned int nStatus);
58  afx_msg void OnSize(unsigned int nType, int cx, int cy);
59  afx_msg void OnMouseMove(unsigned int nFlags, CPoint point);
60  afx_msg void OnLButtonDown(unsigned int nFlags, CPoint point);
61  //}}AFX_MSG
62  DECLARE_MESSAGE_MAP()
63 
64  CBitmap *m_pDlgBackground;
65  CPalette *m_pPalette;
66  const char *m_pBmpFileName;
67  int m_nBmpID;
68  int m_nDx;
69  int m_nDy;
70  bool m_bSaveBackground;
71 };
72 
73 } // namespace HodjNPodj
74 } // namespace Bagel
75 
76 #endif
Definition: afxwin.h:1125
Definition: atltypes.h:79
Definition: afxwin.h:655
Definition: afxwin.h:1581
Definition: minwindef.h:291
Definition: cbofdlg.h:31
Definition: afxwin.h:27
Definition: afxwin.h:623
Definition: afxwin.h:708
Definition: afxwin.h:1100