bottomdlg.h

来自「CAN__组建现场总线系统设计技术(光盘)」· C头文件 代码 · 共 60 行

H
60
字号
#if !defined(AFX_BOTTOMDLG_H__6CC88F3A_E517_11D6_96AA_0000E87DFECA__INCLUDED_)
#define AFX_BOTTOMDLG_H__6CC88F3A_E517_11D6_96AA_0000E87DFECA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BottomDlg.h : header file
//
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
// CBottomDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CBottomDlg)
	enum { IDD = IDD_DIALOG_BOTTOMBAR };
	CEdit	m_edit;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CBottomDlg)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

//-----------------输出信息----------------
private:
	CString m_imf;//保存信息内容
public:
	CBrush m_brush;//背景画刷
	void OnCancel();
	void OnOK();
	void AppendText(CString str);//追加信息
	void SetText(CString str);//重设信息
	CString GetText();//获取信息。可用于保存日志等用途
//----------------end of 输出信息-----------
};

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

#endif // !defined(AFX_BOTTOMDLG_H__6CC88F3A_E517_11D6_96AA_0000E87DFECA__INCLUDED_)

⌨️ 快捷键说明

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