📄 ceditbox.hpp
字号:
// EditBox class
#ifndef _CEDITBOX_HPP
#define _CEDITBOX_HPP
#include "CWnd.hpp"
#include "CString.hpp"
class CEditBox : public CWnd {
public:
// Constructors
CEditBox() {}
CEditBox(CWnd& father,int nID) : CWnd(father,nID) {}
// This seems to be very useful
CEditBox& operator=(LPTSTR txt) { SetText(txt); return *this; }
CEditBox& operator=(CString& txt) { SetText(txt); return *this; }
// To limit text length
void SetLimitText(int max) { SendMessage(EM_SETLIMITTEXT,(WPARAM)max*sizeof(TCHAR),(LPARAM)0);}
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -