⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainframe.h

📁 数据库程序的作业
💻 H
字号:
#if !defined(AFX_MainFrame_H__881CC7ED_6883_45E7_8265_D6E1E27CFB28__INCLUDED_)
#define AFX_MainFrame_H__881CC7ED_6883_45E7_8265_D6E1E27CFB28__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MainFrame.h : header file
//
#include "afxdao.h"	
#include "ViewData.h"
#include "Query.h"

/////////////////////////////////////////////////////////////////////////////
// MainFrame frame

class MainFrame : public CFrameWnd
{
	DECLARE_DYNCREATE(MainFrame)
protected:
public:
	MainFrame();					// protected constructor used by dynamic creation
	
// Attributes
public:
	CListBox	*listbox;
	CButton *button1, *button2, *button3, *button4; 
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(MainFrame)
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~MainFrame();

	// Generated message map functions
	//{{AFX_MSG(MainFrame)
	afx_msg void OnPaint();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSelChange();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	void OnQuery4();
	void OnQuery3();
	void OnQuery2();
	void OnQuery1();
	BOOL DrawCoordinate(CDC *pDC,CPoint O, int weight, int height);
	int FindBalance(int *a, int length, int n);
	BOOL Draw(CDC *pDC, CPoint O, CSize Range, int *x, int *y, int length);
	CString m_filepathname;
	CDaoDatabase m_MyDatabase;
	CViewData *m_datadlg;
	int *x, *y, m_length;
	int m_preindex;
	int m_button;
	afx_msg LONG OnViewDataClose(WPARAM wP,LPARAM lP);
	afx_msg LONG OnQueryClose(WPARAM wP,LPARAM lP);		 
	afx_msg LONG OnQueryOk(WPARAM wP,LPARAM lP);

	CQuery *querydlg;

};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MainFrame_H__881CC7ED_6883_45E7_8265_D6E1E27CFB28__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -