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

📄 tankdlg.h

📁 本程序是采用VC++和Mysql编写的一款油量换算软件
💻 H
字号:
#if !defined(AFX_TANKDLG_H__972975DA_35DF_4D0D_A22E_6C7C9C34843A__INCLUDED_)
#define AFX_TANKDLG_H__972975DA_35DF_4D0D_A22E_6C7C9C34843A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TankDlg.h : header file
//
#define WM_OT_NTO	    WM_USER+8
/////////////////////////////////////////////////////////////////////////////
// CTankDlg dialog
#include "RdDatabase.h"
class CTankDlg : public CDialog
{
// Construction
public:
	void SetWnd(HWND wnd);
	void SetTankNum(int nTanks);
	CTankDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CTankDlg)
	enum { IDD = IDD_DLG_TANK };
	CEdit	m_ctrName;
	CComboBox	m_ctrOilType;
	int		m_nHeight;
	CString	m_sName;
	float	m_fVolume;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTankDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTankDlg)
	afx_msg void OnBtnNew();
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnOk();
	afx_msg void OnSelchangeCmbOiltype();
	afx_msg void OnBtnNext();
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnBtnEdit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL OpenDB();
	int nTankNum;
	int m_nOldH;
	HWND hWnd;
	int nOilType;
	CString m_sSql;
	CRdDatabase m_ctrlMysql;
	CString isvt(int n);
	CString fsvt(float f);

};

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

#endif // !defined(AFX_TANKDLG_H__972975DA_35DF_4D0D_A22E_6C7C9C34843A__INCLUDED_)

⌨️ 快捷键说明

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