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

📄 codetooldlg.h

📁 是一个数制转换的源码
💻 H
字号:
// CodeToolDlg.h : header file
//

#if !defined(AFX_CODETOOLDLG_H__2EE12037_1600_11D2_8514_00104B369FD5__INCLUDED_)
#define AFX_CODETOOLDLG_H__2EE12037_1600_11D2_8514_00104B369FD5__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCodeToolDlg dialog

#define _MAX_DATA 10
#define _MAX_TYPE 3

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

	enum { typeBin = 0, typeDec = 1, typeHex = 2 };

// Dialog Data
	//{{AFX_DATA(CCodeToolDlg)
	enum { IDD = IDD_CODETOOL_DIALOG };
	CString	m_bin;
	CString	m_dec;
	CString	m_hex;
	BOOL	m_bByte;
	//}}AFX_DATA

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

// Implementation
protected:
	virtual void intToStrBin(LPTSTR str, int i);
	virtual void MakeDateString(int nDataType);
	virtual int strBinToInt(LPCTSTR str);
	virtual BOOL VerifyData(int nDataType, CString str); // verify whether the data in the string is valid

	HICON m_hIcon;

	int m_data[_MAX_DATA];		// save datas
	int m_num;					// data num

	CString m_binLast;			// save the previous strings
	CString m_decLast;
	CString m_hexLast;

	// Generated message map functions
	//{{AFX_MSG(CCodeToolDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnChangeBin();
	afx_msg void OnChangeDec();
	afx_msg void OnChangeHex();
	afx_msg void OnAbout();
	afx_msg void OnCheck1();
	afx_msg void OnExit();
	afx_msg void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CODETOOLDLG_H__2EE12037_1600_11D2_8514_00104B369FD5__INCLUDED_)

⌨️ 快捷键说明

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