blob: 55c4a24b72fd7f194f312ded56419f925a7df40e [file] [log] [blame]
Benny Prijono5d9c16f2008-02-22 23:38:47 +00001#ifndef __POPUP_WND_H__
2#define __POPUP_WND_H__
3
4
5class CPocketPJDlg;
6
7/////////////////////////////////////////////////////////////////////////////
8struct CPopUpContent
9{
10 CString m_Title1;
11 CString m_Title2;
12 CString m_Title3;
13 CString m_Btn1;
14 CString m_Btn2;
15};
16
17
18/////////////////////////////////////////////////////////////////////////////
19// CPopUpWnd window
20
21class CPopUpWnd : public CWnd
22{
23public:
24 CPopUpWnd(CPocketPJDlg* pParent);
25 virtual ~CPopUpWnd();
26
27 void SetContent(const CPopUpContent &content);
28 void Hide();
29 void Show();
30
31 void SetWindowSize(int nWindowWidth = 200, int nWindowHeight = 180);
32
33 void PeekAndPump();
34
35// Implementation
36protected:
37 CPocketPJDlg * m_ParentWnd;
38
39 CStatic m_Title1;
40 CStatic m_Title2;
41 CStatic m_Title3;
42 CButton m_Btn1;
43 CButton m_Btn2;
44
45 BOOL Create(CPocketPJDlg* pParent);
46
47// Overrides
48 // ClassWizard generated virtual function overrides
49 //{{AFX_VIRTUAL(CPopUpWnd)
50 public:
51 virtual BOOL DestroyWindow();
52 //}}AFX_VIRTUAL
53
54// Generated message map functions
55protected:
56 //{{AFX_MSG(CPopUpWnd)
57 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
58 //}}AFX_MSG
59 afx_msg void OnCancel1();
60 afx_msg void OnCancel2();
61 DECLARE_MESSAGE_MAP()
62};
63
64
65#endif
66/////////////////////////////////////////////////////////////////////////////
67