Benny Prijono | 5d9c16f | 2008-02-22 23:38:47 +0000 | [diff] [blame] | 1 | #ifndef __POPUP_WND_H__ |
| 2 | #define __POPUP_WND_H__ |
| 3 | |
| 4 | |
| 5 | class CPocketPJDlg; |
| 6 | |
| 7 | ///////////////////////////////////////////////////////////////////////////// |
| 8 | struct 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 | |
| 21 | class CPopUpWnd : public CWnd |
| 22 | { |
| 23 | public: |
| 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 |
| 36 | protected: |
| 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 |
| 55 | protected: |
| 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 | |