summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/pocketpj/PopUpWnd.h
blob: 55c4a24b72fd7f194f312ded56419f925a7df40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef __POPUP_WND_H__
#define __POPUP_WND_H__


class CPocketPJDlg;

/////////////////////////////////////////////////////////////////////////////
struct CPopUpContent
{
    CString m_Title1;
    CString m_Title2;
    CString m_Title3;
    CString m_Btn1;
    CString m_Btn2;
};


/////////////////////////////////////////////////////////////////////////////
// CPopUpWnd window

class CPopUpWnd : public CWnd
{
public:
    CPopUpWnd(CPocketPJDlg* pParent);
    virtual ~CPopUpWnd();

    void SetContent(const CPopUpContent &content);
    void Hide();
    void Show();

    void SetWindowSize(int nWindowWidth = 200, int nWindowHeight = 180);

    void PeekAndPump();
    
// Implementation
protected:
    CPocketPJDlg * m_ParentWnd;

    CStatic       m_Title1;
    CStatic       m_Title2;
    CStatic       m_Title3;
    CButton       m_Btn1;
    CButton       m_Btn2;

    BOOL Create(CPocketPJDlg* pParent);

// Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CPopUpWnd)
	public:
	virtual BOOL DestroyWindow();
	//}}AFX_VIRTUAL

// Generated message map functions
protected:
    //{{AFX_MSG(CPopUpWnd)
    afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
    afx_msg void OnCancel1();
    afx_msg void OnCancel2();
    DECLARE_MESSAGE_MAP()
};


#endif
/////////////////////////////////////////////////////////////////////////////