📄 edit.h
字号:
// edit.h: interface for the edit class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_EDIT_H__6274E25E_637F_4A1D_8EBC_E6E031293A4B__INCLUDED_)
#define AFX_EDIT_H__6274E25E_637F_4A1D_8EBC_E6E031293A4B__INCLUDED_
#include "commdlg.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define MAX_TEXT 256 //最大查找替换字符串长度
class edit
{
private: // 类变量声明
HWND hWnd;
HWND hWndEdit;
HFONT hFont;
LOGFONT logfont,lf;
HDC hDC;
RECT rect;
TCHAR szFindText [MAX_TEXT] ;
TCHAR szReplText [MAX_TEXT] ;
int iLength, iPos ;
PTSTR pstrDoc, pstrPos ;
public: // 类函数声明
edit();
virtual ~edit() ;
void gethwnd( HWND ) ;
void FontInitialize ( HWND ) ;
void gethwndedit( HWND );
void FileInitialize ( OPENFILENAME * ) ;
BOOL FileOpenDlg ( OPENFILENAME *, PTSTR , PTSTR ) ;
BOOL FileSaveDlg ( OPENFILENAME *, PTSTR , PTSTR ) ;
BOOL FileRead ( PTSTR ) ;
BOOL FileWrite ( PTSTR ) ;
void SetFont(CHOOSEFONT *, HFONT, BOOL *) ;
HWND FindFindDlg (LPFINDREPLACE) ;
HWND FindReplaceDlg (LPFINDREPLACE) ;
BOOL FindFindText ( int * , LPFINDREPLACE) ;
BOOL FindReplaceText ( int * , LPFINDREPLACE) ;
BOOL FindValidFind (void) ;
BOOL FindNextText ( int * , LPFINDREPLACE) ;
};
#endif // !defined(AFX_EDIT_H__6274E25E_637F_4A1D_8EBC_E6E031293A4B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -