📄 readme.wzd
字号:
/////////////////////////////////////////////////////////////////////
// Any class that owns a visible window
/////////////////////////////////////////////////////////////////////
// 1) to change the default cursor for the window, add this to PreCreateWindow()
BOOL CWzdView::PreCreateWindow(CREATESTRUCT& cs)
{
cs.lpszClass = AfxRegisterWndClass(CS_DBLCLKS,
AfxGetApp()->LoadStandardCursor(IDC_CROSS),
(HBRUSH)(COLOR_WINDOW+1),
AfxGetApp()->LoadIcon(IDR_MAINFRAME));
return CView::PreCreateWindow(cs);
}
// 2) to temporarily change the cursor when in a particular mode, add a SetCursor handler
BOOL CWzdView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
if (m_bDrawMode)
{
SetCursor(AfxGetApp()->LoadCursor(IDC_DRAW_CURSOR));
return TRUE;
}
return CView::OnSetCursor(pWnd, nHitTest, message);
}
// 3) to change the cursor just when mouse pressed, add this to OnLButtonDown
void CWzdView::OnLButtonDown(UINT nFlags, CPoint point)
{
::SetCursor(AfxGetApp()->LoadCursor(IDC_DRAW_CURSOR1));
CView::OnLButtonDown(nFlags, point);
}
/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1998 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -