preprint.h

来自「Delphi数据库」· C头文件 代码 · 共 52 行

H
52
字号
/*########################################################################
	【文件名】: 	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 + =
减小字号Ctrl + -
显示快捷键?