unitsdlg.h

来自「实现长度、重量、体积等单位换算。在wince 环境下开发」· C头文件 代码 · 共 88 行

H
88
字号
// UnitsDlg.h : header file
//

#if !defined(AFX_UNITSDLG_H__B113599B_089B_4A94_98C7_7919263F0698__INCLUDED_)
#define AFX_UNITSDLG_H__B113599B_089B_4A94_98C7_7919263F0698__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

/////////////////////////////////////////////////////////////////////////////
// CUnitsDlg dialog

class CUnitsDlg : public CDialog
{
// Construction
public:
	double GetNumber(double dResult);
	double TemperatureUnit(double dResult, INT nTypeUp, INT nTypeDown);
	double SpeedUnit(int nType);
	double PressUnit(int nType);
	double PowerUnit(int nType);
	double RadianUnit(int nType);
	double AreaUnit(int nType);
	double VolumeUnit(int nType);
	double WeightUnit(int nType);
	double LengthUnit(int nType);
	void ShowComboRight();
	TCHAR** GetText();
	CUnitsDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CUnitsDlg)
	enum { IDD = IDD_UNITS_DIALOG };
	double m_dValue2;
	CString	m_EditNumer;
	CString	m_ComboLeft;
	CString	m_ComboRightDown;
	CString	m_ComboRightUp;
	//}}AFX_DATA

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

// Implementation
private:
	int nCurSel;
	int nCurSelRightUp;
	int nCurSelRightDown;
	bool SetNew;
	bool SetPoint;
	CComboBox* pComboLeft;
	CComboBox* pComboRightUp;
	CComboBox* pComboRightDown;
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CUnitsDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonZero();
	afx_msg void OnButtonOne();
	afx_msg void OnButtonTwo();
	afx_msg void OnButtonThree();
	afx_msg void OnButtonFour();
	afx_msg void OnButtonFive();
	afx_msg void OnButtonPoint();
	afx_msg void OnButtonSix();
	afx_msg void OnButtonSeven();
	afx_msg void OnButtonEight();
	afx_msg void OnButtonNine();
	afx_msg void OnButtonC();
	afx_msg void OnButtonBack();
	afx_msg void OnSelchangeComboRightup();
	afx_msg void OnSelchangeComboRightdown();
	afx_msg void OnSelchangeComboLeft();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_UNITSDLG_H__B113599B_089B_4A94_98C7_7919263F0698__INCLUDED_)

⌨️ 快捷键说明

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