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

📄 logtestdlg.h

📁 程序开发中写log用的实现代码, C语言代码, 可以不用修改再C++或MFC中使用, 可以将写log的函数使用方法同printf, 可以接收可变参数. 对于开发程序很有帮助.
💻 H
字号:
// LogTestDlg.h : header file
//

#if !defined(AFX_LOGTESTDLG_H__F6711C77_BDA7_443A_A47E_98624D998385__INCLUDED_)
#define AFX_LOGTESTDLG_H__F6711C77_BDA7_443A_A47E_98624D998385__INCLUDED_

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

#include "XPButton.h"
#include "HoverEdit.h"
#include "ColorStatic.h"

/////////////////////////////////////////////////////////////////////////////
// CLogTestDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CLogTestDlg)
	enum { IDD = IDD_LOGTEST_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CLogTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnExcute();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnBrows();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
    CHoverEdit   m_edtString;
    CXPButton    m_btnExec;
    CColorStatic m_stcNotic;

    CString      m_strAppPath;
    CString      m_strLogPath;
    CString      m_strFilePath;
private:
    BOOL BrowsFilePath(OUT CString &strPath, BOOL bIsTextFile);
};

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

#endif // !defined(AFX_LOGTESTDLG_H__F6711C77_BDA7_443A_A47E_98624D998385__INCLUDED_)

⌨️ 快捷键说明

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