📄 speedview.h
字号:
// SpeedView.h : interface of the CSpeedView class
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
class CSpeedView : public CWindowImpl<CSpeedView, CEdit>,
public CEditCommands<CSpeedView>
{
public:
DECLARE_WND_SUPERCLASS(NULL, CEdit::GetWndClassName())
BOOL PreTranslateMessage(MSG* pMsg);
BEGIN_MSG_MAP(CSpeedView)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
MSG_OCM_CTLCOLORSTATIC(OnCtlColorStatic)
COMMAND_ID_HANDLER(ID_EDIT_FONT, OnEditFont)
COMMAND_ID_HANDLER(ID_EDIT_FONT_LARGE, OnEditFontLarge)
COMMAND_ID_HANDLER(ID_EDIT_FONT_SMALL, OnEditFontSmall)
CHAIN_MSG_MAP_ALT(CEditCommands<CSpeedView>, 1)
DEFAULT_REFLECTION_HANDLER()
END_MSG_MAP()
// Handler prototypes (uncomment arguments if needed):
// LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
// LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
// LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnCtlColorStatic(HDC hdc, HWND hwnd);
LRESULT OnEditFont(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
LRESULT OnEditFontLarge(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
LRESULT OnEditFontSmall(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
void SetFontPoint(int pt);
void SetDefaultFont();
private:
CFont m_font;
CFont m_fontText;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -