?? hoveredit.cpp
字號:
// HoverEdit.cpp : implementation file
// Modified by jingzhou xu
#include "stdafx.h"
#include "HoverEdit.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHoverEdit
CHoverEdit::CHoverEdit()
{
}
CHoverEdit::~CHoverEdit()
{
}
BEGIN_MESSAGE_MAP(CHoverEdit, CEdit)
//{{AFX_MSG_MAP(CHoverEdit)
ON_WM_NCPAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CHoverEdit message handlers
void CHoverEdit::OnHoverEnter()
{
Redraw();
}
void CHoverEdit::OnHoverLeave()
{
Redraw();
}
void CHoverEdit::Redraw()
{
RedrawWindow(NULL,NULL,RDW_FRAME|RDW_INVALIDATE);
}
void CHoverEdit::OnNcPaint()
{
CWindowDC DC(this);
CRect Rect;
GetWindowRect(&Rect);
if (IsHover())
DC.Rectangle(0,0,Rect.Width(),Rect.Height());
else
DC.DrawEdge(CRect(0,0,Rect.Width(),Rect.Height()),EDGE_SUNKEN,BF_FLAT|BF_RECT);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -