?? stdafx.h
字號:
// stdafx.h : 標準系統包含文件的包含文件,
// 或是經常使用但不常更改的
// 項目特定的包含文件
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // 從 Windows 標頭中排除不常使用的資料
#endif
// 如果您必須使用下列所指定的平臺之前的平臺,則修改下面的定義。
// 有關不同平臺的相應值的最新信息,請參考 MSDN。
#ifndef WINVER // 允許使用 Windows 95 和 Windows NT 4 或更高版本的特定功能。
#define WINVER 0x0400 //為 Windows98 和 Windows 2000 及更新版本改變為適當的值。
#endif
#ifndef _WIN32_WINNT // 允許使用 Windows NT 4 或更高版本的特定功能。
#define _WIN32_WINNT 0x0400 //為 Windows98 和 Windows 2000 及更新版本改變為適當的值。
#endif
#ifndef _WIN32_WINDOWS // 允許使用 Windows 98 或更高版本的特定功能。
#define _WIN32_WINDOWS 0x0410 //為 Windows Me 及更新版本改變為適當的值。
#endif
#ifndef _WIN32_IE // 允許使用 IE 4.0 或更高版本的特定功能。
#define _WIN32_IE 0x0400 //為 IE 5.0 及更新版本改變為適當的值。
#endif
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 構造函數將是顯式的
// 關閉 MFC 對某些常見但經常被安全忽略的警告消息的隱藏
#define _AFX_ALL_WARNINGS
#include <afxwin.h> // MFC 核心和標準組件
#include <afxext.h> // MFC 擴展
#include <afxcview.h>
#include <afxdisp.h> // MFC 自動化類
#include "Util.h"
#include "define.h"
#include <WINSPOOL.H>
#define B5_W 182 //B5紙寬度mm
#define B5_H 257 //B5紙高度mm
#define B5_ONELINE 29 //B5紙第一頁行數
#define B5_OTHERLINE 30 //B5紙其它頁行數
//打印結構
typedef struct
{
int nMaxLine; //最大行數
int nCountPage; //一共頁數
int nCurPage; //當前頁碼
BOOL IsPrint; //是否打印
HWND hWnd; //窗口句柄
HWND hListView; //列表控件句柄
TCHAR szTag[256]; //其它數據
int nTag; //其它數據
LPVOID lpVoid; //其它數據
}PRNINFO, *PPRNINFO;
typedef void(*PRINTPREVIEW) (CDC &MemDC, PRNINFO PrnInfo);
#include "Resource.h"
#include "PreParent.h"
#include <afxdtctl.h> // Internet Explorer 4 公共控件的 MFC 支持
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // Windows 公共控件的 MFC 支持
#endif // _AFX_NO_AFXCMN_SUPPORT
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -