📄 preprint.h
字号:
/*########################################################################
【文件名】: PrePrint.h
【名 称】: DataWin 封装类.
【版 本】: 1.0
【作 者】: 梁均源
【E-mail】: KelvinSpace@citiz.net
注意:必需保留以上信息!!!
########################################################################*/
#if !defined(AFX_PREPRINT_H__CB7FE153_C705_48D6_B9CC_E9B1F061FC88__INCLUDED_)
#define AFX_PREPRINT_H__CB7FE153_C705_48D6_B9CC_E9B1F061FC88__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PrePrint.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPrePrint
#if defined (WIN32)
#define IS_WIN32 TRUE
#else
#define IS_WIN32 FALSE
#endif
#define MAX_DEBUG_STRING 256
#define IS_NT (0 != (IS_WIN32 && ((BOOL)(GetVersion() < 0x80000000))) )
#define IS_WIN32S (0 != (IS_WIN32 && (BOOL)(!(IS_NT) && (LOBYTE(LOWORD(GetVersion()))<4))))
#define IS_WIN95 (0 != ((BOOL)(!(IS_NT) && !(IS_WIN32S)) && IS_WIN32))
class CPrePrint
{
// Construction
protected:
public:
// void SetScrollbar(int cx, int cy);
HDC GetPrinterDC(LPTSTR lpszFriendlyName, PDEVMODE pDevMode = NULL);
LPTSTR GetDefaultPrinterName(void);
LPTSTR GetRegistryString(HKEY hKeyClass, LPTSTR lpszSubKey, LPTSTR lpszValueName);
LPTSTR CopyString(LPTSTR lpszSrc);
PDEVMODE GetDefaultPrinterDevMode(LPTSTR lpszPrinterName);
void DebugMsg (LPTSTR lpszMessage,...);
HDC GetDefaultPrinterDC();
BOOL IsPrinter(LPTSTR pszPrinterName);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PREPRINT_H__CB7FE153_C705_48D6_B9CC_E9B1F061FC88__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -