⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdafx.h

📁 客户端: 这是一个完整的基于Wince 4.1图形图象,网络通讯(C/S)模式下的商用程序源代码包.
💻 H
字号:
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__0D637005_F47B_4FE1_A8CC_2F5A27E8A54C__INCLUDED_)
#define AFX_STDAFX_H__0D637005_F47B_4FE1_A8CC_2F5A27E8A54C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//#include "resource.h"
#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers
//#define _WIN32_WINNT 0x0400
//
#define _WIN32_DCOM   //???这个很重要

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#include <afxpriv.h>		// required for WM_SETMESSAGESTRING
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
#include <math.h>
#define	M_PI (3.1415926535897932384626433832795028841971693993751058209749445923078)
//#include <iphlpapi.h>

#include <afxsock.h>		// MFC socket extensions
//#include <winsock.h>
#define SERVER_PORT 7510

//for xpbutton
#include "XPButton.h"
//show picture
#include "Picture.h"

//显示主控制窗体
#define WM_SHOW_MAINWND_MESSAGE WM_USER+1000

//#define MAX_ADD_SHOWWAY 38

//#define MAX_ADD_SHOWWAY 34
#define MAX_ADD_SHOWWAY 36 //2006.11

//for video event objbase.h
#include <dshow.h>
#include <objbase.h>

//#include <commctrl.h>
//#include <commdlg.h>
//#include <stdio.h>
#include <tchar.h>
#include <atlbase.h>
#include <ole2.h>

#define WM_GRAPHNOTIFY WM_APP + 100
//for CLIST class
#include <afxtempl.h>
//for unicode and ansi alt
#include <atlconv.h>


#pragma  pack(push, 1)
typedef struct MYTextProperty
{
 int m_text_font_name;
 int m_text_font_width;
 int m_text_font_height;
 COLORREF m_text_fc_color;
 COLORREF m_text_bc_color;
 //以下对于左移方式有效
 WORD  return_flag;//1-自动换行,0-不自动换行,即连续移动
 WORD  startx;//1024
 WORD  starty;//768
}TEXTPROPERTY;

typedef  struct MYLISTData
{
  int type;//类型
  TCHAR filename[256];
  //文件名:Text,PICTURE:BMP,JPEG,GIF-PIC,ANI:GIF-ANI,VIDEO
  int  in;//进入显示方式
  int  out;//退出显示方式
  long speed;//显示速度
  long delaytime;//延迟时间
  //文本属性,当type==0,即为文本时才有效
  TEXTPROPERTY tp;
  //对于网络共享文件,不必要传文件内容
  WORD  share_flag;//1-共享文件,0-非共享文件
  //2006.9.9
  int position;//0-center,1-stretch,2-flat:all file type

}CPlayTableData;
typedef struct MYSYS_PARAMETER
{
 int m_show_startx;
 int m_show_starty;
 int m_show_width;
 int m_show_height;
 //FOR SERVER
 int m_auto_run_flag;//0,1
 int m_watchdog_flag;//0,1
 char m_server_ip[256];
 //WCHAR m_autorun_tabfile[256];:固定为一个文件名:PLAYTABLE.DAT:二进制文件
 char m_savepath_str[256];
 //auto reset server times
 WORD hour;
 WORD minute;
 WORD second;
 //softmode
 int softmode;//0-stand-alone,1-network-client
 //timeout
 int timeout;//0-180s
}SYSTEM_PARAMETER;
//send file head:256+28=284

typedef struct FILEHEAD_STRUCT
{
	WORD  edit_flag;//flag=1:append;2:modify
	WORD  item_no;//
	WORD  type;//1-text,2-pic,3-ani_gif,4-video
	char  filename[256];//不能为空
	DWORD filelen;//文件长度,不能为零
	WORD  fun_in;
	WORD  fun_out;
	WORD  speed;
	WORD  delaytime;//Repeat playing time(s)-->for gif_ani;delay time-->others
	//以下为文本方式显示使用
	WORD  font;//for text:该字体编号为PDA系统能支持的字体编号,
	                      //设置之前请先判断,不要超出pda能提供的字体数
	DWORD fc;  //for text forecolor
	DWORD bc;  //for text backcolor
	WORD  font_width;
	WORD  font_height;
	//以下对于左移方式有效
	WORD  return_flag;//1-自动换行,0-不自动换行,即连续移动
	WORD  startx;//1024
	WORD  starty;//768
	//对于网络共享文件,可不传文件内容
	WORD  share_flag;//1-共享文件,0-非共享文件
	 //2006.9.9
    WORD position;//0-center,1-stretch,2-flat:all file type

}SENDFILEHEAD;
typedef struct TMYLOGFONT
{
   LONG lfHeight;
   LONG lfWidth;
   LONG lfEscapement;
   LONG lfOrientation;
   LONG lfWeight;
   BYTE lfItalic;
   BYTE lfUnderline;
   BYTE lfStrikeOut;
   BYTE lfCharSet;
   BYTE lfOutPrecision;
   BYTE lfClipPrecision;
   BYTE lfQuality;
   BYTE lfPitchAndFamily;
   char fontname[512];
}MYLOGFONT;
#pragma  pack(pop)
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__0D637005_F47B_4FE1_A8CC_2F5A27E8A54C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -