📄 replace.cpp
字号:
// REPLACE.cpp : implementation file
//
#include "stdafx.h"
#include "miniword.h"
#include "REPLACE.h"
#include"StructWord.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
char ReplaceString[10];
CString Replacer;
//char SearchString[10];
//CString Searches;
////////////////////////////////////////////////////////////////////////////
// CREPLACE dialog
CREPLACE::CREPLACE(CWnd* pParent /*=NULL*/)
: CDialog(CREPLACE::IDD, pParent)
{
//{{AFX_DATA_INIT(CREPLACE)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CREPLACE::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CREPLACE)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CREPLACE, CDialog)
//{{AFX_MSG_MAP(CREPLACE)
ON_COMMAND(IDM_REPLACE, OnReplace)
ON_BN_CLICKED(IDOK1, OnOk1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CREPLACE message handlers
void CREPLACE::OnReplace()
{
// TODO: Add your command handler code here
}
void CREPLACE::OnOk1()
{
// TODO: Add your control notification handler code here
int i;
GetDlgItemText(IDC_EDIT2,SearchString,10);
GetDlgItemText(IDC_EDIT3,ReplaceString,10);
for(i=0;i<=9;i++)
Searches+=SearchString[i];
for(i=0;i<=9;i++)
Replacer+=ReplaceString[i];
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -