extendedit.h

来自「商品库存管理系统 用VC++6.0编写」· C头文件 代码 · 共 61 行

H
61
字号
#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 + =
减小字号Ctrl + -
显示快捷键?