|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // myclientDlg.h : header file |
|
22 // |
|
23 |
|
24 #if !defined(AFX_MYCLIENTDLG_H__DCBFD0A5_CBD8_11D6_AF94_000000000000__INCLUDED_) |
|
25 #define AFX_MYCLIENTDLG_H__DCBFD0A5_CBD8_11D6_AF94_000000000000__INCLUDED_ |
|
26 |
|
27 #if _MSC_VER > 1000 |
|
28 #pragma once |
|
29 #endif // _MSC_VER > 1000 |
|
30 |
|
31 #include <statsocket.h> |
|
32 |
|
33 ///////////////////////////////////////////////////////////////////////////// |
|
34 // CMyclientDlg dialog |
|
35 |
|
36 class CMyclientDlg : public CDialog |
|
37 { |
|
38 // Construction |
|
39 public: |
|
40 CMyclientDlg(CWnd* pParent = NULL); // standard constructor |
|
41 |
|
42 CSTATSocket* pSocket; |
|
43 |
|
44 // Dialog Data |
|
45 //{{AFX_DATA(CMyclientDlg) |
|
46 enum { IDD = IDD_MYCLIENT_DIALOG }; |
|
47 CButton m_ChkListen; |
|
48 CEdit m_Port; |
|
49 CEdit m_Machine; |
|
50 CButton m_Connect; |
|
51 CButton m_Send; |
|
52 CEdit m_SendMsg; |
|
53 CListBox m_RecvList; |
|
54 //}}AFX_DATA |
|
55 |
|
56 // ClassWizard generated virtual function overrides |
|
57 //{{AFX_VIRTUAL(CMyclientDlg) |
|
58 protected: |
|
59 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|
60 //}}AFX_VIRTUAL |
|
61 |
|
62 // Implementation |
|
63 protected: |
|
64 HICON m_hIcon; |
|
65 |
|
66 // Generated message map functions |
|
67 //{{AFX_MSG(CMyclientDlg) |
|
68 virtual BOOL OnInitDialog(); |
|
69 afx_msg void OnSysCommand(UINT nID, LPARAM lParam); |
|
70 afx_msg void OnPaint(); |
|
71 afx_msg HCURSOR OnQueryDragIcon(); |
|
72 afx_msg void OnSend(); |
|
73 afx_msg void OnConnect(); |
|
74 virtual void OnOK(); |
|
75 //}}AFX_MSG |
|
76 DECLARE_MESSAGE_MAP() |
|
77 |
|
78 private: |
|
79 void GetMessages(); |
|
80 |
|
81 HANDLE hThreadHandle; |
|
82 }; |
|
83 |
|
84 //{{AFX_INSERT_LOCATION}} |
|
85 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|
86 |
|
87 #endif // !defined(AFX_MYCLIENTDLG_H__DCBFD0A5_CBD8_11D6_AF94_000000000000__INCLUDED_) |