?? stdafx.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__4EDE9D72_0205_4087_8DD1_A9F5B570F0D2__INCLUDED_)
#define AFX_STDAFX_H__4EDE9D72_0205_4087_8DD1_A9F5B570F0D2__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#if defined(_WIN32_WCE) && (_WIN32_WCE >= 211) && (_AFXDLL)
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#endif
#include <afxdisp.h> // MFC OLE automation classes
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxsock.h> // MFC socket extensions
//////////////////////////////////////////////////////////
#include <WCHAR.H>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#define M_PI (3.1415926535897932384626433832795028841971693993751058209749445923078)
//164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989)
//#include <time.h>
//#include <winsock.h>//1.1
#define USER_PORT 7510
#include <atlconv.h>
//#include <Winbase.h>
//for CLIST class
#include <afxtempl.h>
//#include <afxdlgs.h>
//#include <Wingdi.h>
//for io port function
#include <CEDDK.h>
//
//for show system disk id
#include <Diskio.h>
#include <Pkfuncs.h>
//for gif and jpeg
#include "ByteArray.h"
#include "STScreenBuffer.h"
//for jpeg,gif,...picture
#include "voimage.h"
/////////////////////////////
//顯示主控制窗體
#define WM_SHOW_MAINWND_MESSAGE WM_USER+1000
//#define MAX_ADD_SHOWWAY 38
//#define MAX_ADD_SHOWWAY 34
//2006.11
#define MAX_ADD_SHOWWAY 36
//for video event
#include <dshow.h>
#define WM_GRAPHNOTIFY WM_APP + 100
// WM_USER+2006
#define WM_STOPVIDEO WM_USER+2007
#define WM_AUTORUN WM_USER+1996
//for system parameter
#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;
//以下對于左移方式有效
int return_flag;//1-自動換行,0-不自動換行,即連續移動
int startx;//1024
int 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;
// 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;//
//
int m_auto_run_flag;//0,1
// int m_watchdog_flag;//0,1
WCHAR m_autorun_tabfile[256];
//
WCHAR m_save_pathname[256];
////該變量為系統保存數據的根目錄video
//注意:1.文本文件保存在text目錄下
// 2.圖片文件(bmp,jpg,gif) 保存在pic目錄下
// 3.GIF動畫文件(*.gif) 保存在ani目錄下
// 4.視頻文件(*.wmv,*.mpg(mpg-1),*.asf等)保存在video目錄下
WCHAR software_SN[256];
WORD hour;
WORD minute;
WORD second;
}SYSTEM_PARAMETER;
//
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_witdth;
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 eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__4EDE9D72_0205_4087_8DD1_A9F5B570F0D2__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -