showgbk.h
来自「测试指定GBK码或者UNICODE码是否存在系统字库中」· C头文件 代码 · 共 64 行
H
64 行
#if !defined(AFX_SHOWGBK_H__4D467D56_7916_472F_B604_DFECBA6A29E9__INCLUDED_)
#define AFX_SHOWGBK_H__4D467D56_7916_472F_B604_DFECBA6A29E9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ShowGBK.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CShowGBK dialog
const int FONT_HEIGHT = 32;
const int CHAR_IN_LINE = 20;
const int LINE_IN_PAGE = 10;
class CShowGBK : public CDialog
{
// Construction
public:
CShowGBK(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CShowGBK)
enum { IDD = IDD_SHOWGBK_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CShowGBK)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CShowGBK)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnButton1();
afx_msg void OnButton2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void DrawPage(int nIndex);
private:
CFont m_font;
char *m_pGBK;
TCHAR *m_pUnicode;
int m_nCurr;
int m_nChar;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SHOWGBK_H__4D467D56_7916_472F_B604_DFECBA6A29E9__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?