ceditbox.hpp
来自「bt848,bt878 a采集卡的探测」· HPP 代码 · 共 23 行
HPP
23 行
// 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 + =
减小字号Ctrl + -
显示快捷键?