📄 activecectl.h
字号:
#if !defined(AFX_ACTIVECECTL_H__7341C502_B120_4D07_961B_ED851A7A506D__INCLUDED_)
#define AFX_ACTIVECECTL_H__7341C502_B120_4D07_961B_ED851A7A506D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxctl.h>
#include <Winsock2.h>
#include <windows.h>
#include <Windows.h>
#define jpg_height 640
#define jpg_width 480
#define SERV_PORT 7777
#define NUM 15000
//#define NUM 50
// ActiveceCtl.h : Declaration of the CActiveceCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CActiveceCtrl : See ActiveceCtl.cpp for implementation.
class CActiveceCtrl : public COleControl
{
DECLARE_DYNCREATE(CActiveceCtrl)
// Constructor
public:
CActiveceCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CActiveceCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
HANDLE m_Thread;
char * recvBuf;
SOCKET socketClient;
SOCKADDR_IN addrClnt;
SOCKADDR_IN addrSrv;
int jpginsize;
//int jpgsize;
int addr_len;
BOOL m_Quit;
DWORD m_dwMultiAddr; // 此组使用的多播地址
DWORD m_dwLocalAddr; // 用户要使用的本地接口
int getpicsize(char *buf,int insize);
// int DrawPic(char *buf,int size);
BOOL JoinGroup();
friend DWORD WINAPI JpgDraw(LPVOID lpParam);
// Implementation
protected:
~CActiveceCtrl();
DECLARE_OLECREATE_EX(CActiveceCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CActiveceCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CActiveceCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CActiveceCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CActiveceCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CActiveceCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CActiveceCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CActiveceCtrl)
// NOTE: ClassWizard will add and remove enumeration elements here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ACTIVECECTL_H__7341C502_B120_4D07_961B_ED851A7A506D__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -