unitconversiondlg.h

来自「evc下做的一个单位转换了程序」· C头文件 代码 · 共 71 行

H
71
字号
// UnitConversionDlg.h : header file
//

#if !defined(AFX_UNITCONVERSIONDLG_H__D10C87EC_0220_4967_95A6_3FB8AD2F687F__INCLUDED_)
#define AFX_UNITCONVERSIONDLG_H__D10C87EC_0220_4967_95A6_3FB8AD2F687F__INCLUDED_

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

class CUnitConversionDlg : public CDialog
{
// Construction
public:
	CUnitConversionDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CUnitConversionDlg)
	enum { IDD = IDD_UNITCONVERSION_DIALOG };
	CButton	m_button;
	CStatic	m_name;
	CEdit	m_Input;
	CComboBox	m_list;
	CListBox	m_result;
	CListBox	m_typelist;
	CString	m_input;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CUnitConversionDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	void listaddlength();
	void listaddarea();
	void listaddcubage();
	void listaddweight();
	void listaddtem();
	void listaddpower();
	void listaddenergy();
	void listaddpress();
	//计算温度
	void temconversion();
	//控制控件大小和位置
	void controldialog();
	// Generated message map functions
	//{{AFX_MSG(CUnitConversionDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangetypelist();
	afx_msg void OnButton1();
	afx_msg void OnSelchangelist();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnSetfocusinput();
	afx_msg void OnKillfocusinput();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_UNITCONVERSIONDLG_H__D10C87EC_0220_4967_95A6_3FB8AD2F687F__INCLUDED_)

⌨️ 快捷键说明

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