?? transserverdlg.h
字號(hào):
// TransServerDlg.h : header file
//
#if !defined(AFX_TRANSSERVERDLG_H__CA15086A_698D_44BB_8C5D_AA23C94DEF66__INCLUDED_)
#define AFX_TRANSSERVERDLG_H__CA15086A_698D_44BB_8C5D_AA23C94DEF66__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Afxmt.h"
#include "BtnST.h"
#include "ListenSocket.h"
#include "ServerStreamSocket.h"
#include "..\Defines.h"
typedef struct _CONNECTION{
int Channel;//from 0 to 3
CServerStreamSocket* pSocket;
CEvent BeginSendEvent;
CWinThread* pSendThread;
}CONNECTION;
UINT SendThread(LPVOID pParam);//used by CServerStreamSocket
/////////////////////////////////////////////////////////////////////////////
// CTransServerDlg dialog
class CTransServerDlg : public CDialog
{
// Construction
public:
//***********************************
//image buffers
JPEG_CORE_PROPERTIES m_jcprops[4];
BYTE* m_pDib[4];//for smaple image
BYTE* m_JpegBuffer[4];//for transfer image
int m_JpegSize[4];//the actual size of jpeg buffer
BYTE* m_pThumb[4];//for local display
BITMAPINFO m_bmInfo[4];
//***********************************
//sample thread
CWinThread* m_SampleThread[4];
BOOL m_CanSample[4];//is channel opened
DWORD m_TotalTime[4][3];
//***********************************
//connectons
CListenSocket* m_ListenSocket;
CPtrList m_ConnectionList[4];
//***********************************
//image database
int m_PatientID;//the current ID of patient record
int m_ChannelToSave;//which channel should be save,-1 means no channel
//***********************************
//options
DWORD m_SampleFrequency;
BYTE m_CompressQuality;
//***********************************
//functions
void RemoveConnection(int Channel,CONNECTION* connection);
void DrawImg(int Channel,BOOL bDraw);
void AddLog(LPCTSTR Msg);
CTransServerDlg(CWnd* pParent = NULL); // standard constructor
void EnableSample(int Channel,BOOL Enable);
// Dialog Data
//{{AFX_DATA(CTransServerDlg)
enum { IDD = IDD_TRANSSERVER_DIALOG };
CEdit m_EditLog;
//}}AFX_DATA
int m_Slider[4];
CButtonST m_Sample[8];
CButtonST m_Button[8];
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTransServerDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTransServerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnBtnSample1();
afx_msg void OnBtnSample2();
afx_msg void OnBtnSample3();
afx_msg void OnBtnSample4();
afx_msg void OnBtnSample5();
afx_msg void OnBtnSample6();
afx_msg void OnBtnSample7();
afx_msg void OnBtnSample8();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
afx_msg void OnButton5();
afx_msg void OnButton6();
afx_msg void OnButton7();
afx_msg void OnButton8();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TRANSSERVERDLG_H__CA15086A_698D_44BB_8C5D_AA23C94DEF66__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -