📄 extendedit.h
字号:
#if !defined(AFX_EXTENDEDIT_H__6E0ADFC1_65FC_11D8_8753_5254AB32C8FB__INCLUDED_)
#define AFX_EXTENDEDIT_H__6E0ADFC1_65FC_11D8_8753_5254AB32C8FB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ExtendEdit.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CExtendEdit window
#include "ExtendEdit_Grid.h"
class CExtendEdit : public CEdit
{
// Construction
public:
CExtendEdit();
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CExtendEdit)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
bool SetPopRecordset(_RecordsetPtr prst);
bool Changed; // 是否启动SetPopRecordset方法
CWnd* GridParent;
void Refresh();
void HideGrid();
void ShowGrid();
bool assn; //是否启动联想输入
CExtendEdit_Grid Grid;
CString Field; //查询的字段名
CString DataBase; //查询的数据库名
virtual ~CExtendEdit();
_RecordsetPtr rst;
bool IsOnChange;
bool IsShow; //表格是否已经显示出来
bool IsPopShow; //是否显示提示
// Generated message map functions
protected:
//{{AFX_MSG(CExtendEdit)
afx_msg void OnChange();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CFont m_cFont;
bool m_bInputValid;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EXTENDEDIT_H__6E0ADFC1_65FC_11D8_8753_5254AB32C8FB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -