📄 hexedit.cpp
字号:
// HexEdit.cpp : implementation file
//
#include "stdafx.h"
#include "二进制编辑.h"
#include "HexEdit.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHexEdit
CHexEdit::CHexEdit()
{
if ( m_strWindowClass.IsEmpty())
m_strWindowClass = AfxRegisterWndClass ( CS_DBLCLKS, ::LoadCursor(0, IDC_IBEAM) );
}
CHexEdit::~CHexEdit()
{
}
BEGIN_MESSAGE_MAP(CHexEdit, CWnd)
//{{AFX_MSG_MAP(CHexEdit)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CHexEdit message handlers
BOOL CHexEdit::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
cs.lpszClass = m_strWindowClass;
return CWnd::PreCreateWindow(cs);
}
/*
CDC dc;
dc.CreateCompatibleDC(pdc);
CBitmap bm;
bm.CreateCompatibleBitmap(pdc, rc.Width(), rc.Height());
dc.SelectObject(bm);
*/
void CHexEdit::OnPaint()
{
CRect rc;
GetClientRect(rc);
CPaintDC dc(this);
CBrush bkBrush(GetSysColor(COLOR_BACKGROUND));
dc.FillRect(rc, &bkBrush);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -