ScummVM API documentation
clongdlg.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_WORDSEARCH_CLONGDLG_H
23 #define HODJNPODJ_WORDSEARCH_CLONGDLG_H
24 
25 #include "bagel/afxwin.h"
26 
27 namespace Bagel {
28 namespace HodjNPodj {
29 namespace WordSearch {
30 
31 #define CBUTTON1 IDOK
32 #define CBUTTON2 IDCANCEL
33 
34 class CLongDialog : public CBmpDialog {
35 public:
36  // standard constructor
37  CLongDialog(CWnd *, CPalette *, const char *,
38  const char *, const char *pszText2 = nullptr);
39 
40 private:
41  void ClearDialogImage();
42 
43  // Dialog Data
44  //{{AFX_DATA(C1ButtonDialog)
45  // NOTE: the ClassWizard will add data members here
46  //}}AFX_DATA
47 
48 // Implementation
49 protected:
50  virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
51 
52  // Generated message map functions
53  //{{AFX_MSG(C1ButtonDialog)
54  afx_msg void OnPaint();
55  virtual void OnOK() override;
56  virtual void OnCancel() override;
57  virtual bool OnInitDialog() override;
58  afx_msg void OnDestroy();
59  afx_msg bool OnEraseBkgnd(CDC *pDC);
60  //}}AFX_MSG
61  DECLARE_MESSAGE_MAP()
62 
63 private:
64  CText *m_cTextMessage1;
65  CText *m_cTextMessage2;
66  CText *m_cWordList[WORDSPERLIST];
67  const char *m_pszMessage1;
68  const char *m_pszMessage2;
69  const char *m_pszButton1Text;
70  CColorButton *m_pButton1;
71 };
72 
73 } // namespace Poker
74 } // namespace HodjNPodj
75 } // namespace Bagel
76 
77 #endif
Definition: afxwin.h:1125
Definition: afxwin.h:655
Definition: minwindef.h:291
Definition: cbofdlg.h:31
Definition: afxwin.h:27
Definition: text.h:62
Definition: button.h:141
Definition: afxwin.h:708