1 /*---------------------------------------------------------------------------*
2   Project:  HIO2 demos - multi
3   File:     multiView.h
4 
5   (C)2005 HUDSON SOFT
6 
7   $Header: /home/cvsroot/SDK/build/demos/hio2demo/vc++/multi/multiView.h,v 1.3 2006/03/15 06:31:26 mitu Exp $
8 
9   $NoKeywords: $
10  *---------------------------------------------------------------------------*/
11 
12 // multiView.h : interface of the CMultiView class
13 //
14 
15 
16 #pragma once
17 
18 
19 class CMultiView : public CFormView
20 {
21 ///////// for multiApp /////////
22 public:
23 	enum USER_EVENT
24 	{
25 		EVENCT_RECEIVED,
26 		EVENT_CONNECT,
27 		EVENT_DISCONNECT,
28 		EVENT_UPDATE_PC_TIME,
29 		EVENT_WRITE_DONE,
30 	};
31 private:
32 	MULTI_PACKET m_stPacket;
33 
34 protected: // create from serialization only
35 	CMultiView();
36 	DECLARE_DYNCREATE(CMultiView)
37 
38 public:
39 	enum{ IDD = IDD_MULTI_FORM };
40 
41 // Attributes
42 public:
43 	CMultiDoc* GetDocument() const;
44 
45 // Operations
46 public:
47 
48 // Overrides
49 	public:
50 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
51 protected:
52 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
53 	virtual void OnInitialUpdate(); // called first time after construct
54 
55 // Implementation
56 public:
57 	virtual ~CMultiView();
58 #ifdef _DEBUG
59 	virtual void AssertValid() const;
60 	virtual void Dump(CDumpContext& dc) const;
61 #endif
62 
63 protected:
64 
65 // Generated message map functions
66 protected:
67 	DECLARE_MESSAGE_MAP()
68 public:
69 	afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam);
70 	afx_msg void OnBnClickedBtnSend();
71 	afx_msg void OnBnClickedBtnConnect();
72 	afx_msg void OnBnClickedBtnDisconnect();
73 	afx_msg void OnBnClickedRadioSync();
74 	afx_msg void OnBnClickedRadioAsync();
75 protected:
76 	virtual void OnDraw(CDC* /*pDC*/);
77 };
78 
79 #ifndef _DEBUG  // debug version in multiView.cpp
GetDocument()80 inline CMultiDoc* CMultiView::GetDocument() const
81    { return reinterpret_cast<CMultiDoc*>(m_pDocument); }
82 #endif
83 
84