📄 editctrlbase.h
字号:
//-----------------------------------------------------------------------------
// (c) 2002 by Basler Vision Technologies
// Section: Vision Components
// Project: BCAM
// $Header: EditCtrlBase.h, 3, 02.10.2002 14:31:26, Nebelung, H.$
//-----------------------------------------------------------------------------
/**
\file EditCtrlBase.h
\brief interface for the CTBarEditCtrl class.
*/
#if !defined(AFX_EditCtrlBase_H__64039EFE_F624_11D4_B9D7_0050BACEA3A5__INCLUDED_)
#define AFX_EditCtrlBase_H__64039EFE_F624_11D4_B9D7_0050BACEA3A5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <atlctrls.h>
//////////////////////////////////////////////////////////////////////
/// interface to the edit control part
class CEditCtrlBase : public CWindowImpl<CEditCtrlBase, CEdit>,
public CEditCommands<CEditCtrlBase>
{
protected:
int m_nEditCtrlID;
HWND m_hEditCtrl;
//
char m_szWndTxt[256];
// Properties
bool m_bWantReturn; // if set, edit control needs a RETURN
// to take over new input
bool m_bEscUndos;
bool m_bKillFocus;
public:
CEditCtrlBase();
BEGIN_MSG_MAP(CEditCtrlBase)
// your handlers...
MESSAGE_HANDLER(WM_GETDLGCODE, OnGetDlgCode)
CHAIN_MSG_MAP_ALT(CEditCommands<CEditCtrlBase>, 1)
END_MSG_MAP()
void WantReturn(bool bWantReturn) { m_bWantReturn = bWantReturn; };
void SetEscUndos(bool bEscUndos) { m_bEscUndos = bEscUndos; };
void SetKillFocus(bool bKillFocus) { m_bKillFocus = bKillFocus; };
protected:
BOOL SetWindowText( LPCTSTR lpszString );
private:
LRESULT OnGetDlgCode(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
};
#endif // !defined(AFX_EditCtrlBase_H__64039EFE_F624_11D4_B9D7_0050BACEA3A5__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -