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

📄 datetimeedit.h

📁 改变系统时间的实现
💻 H
字号:
#if !defined(AFX_DATETIMEEDIT_H__C2C2F010_6BF2_11D4_BD73_000021479D21__INCLUDED_)
#define AFX_DATETIMEEDIT_H__C2C2F010_6BF2_11D4_BD73_000021479D21__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DateTimeEdit.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDateTimeEdit window

const UINT WM_DATETIME_EDIT = ::RegisterWindowMessage("WM_DATETIME_EDIT");
#define DTE_DATETIMECHANGED		0x0001

class CDateTimeEdit : public CEdit
{
// Construction
public:
	CDateTimeEdit();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDateTimeEdit)
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	CString GetMask() const {return m_strMask;}
	void SetMask(CString mask);
	COleDateTime GetDateTime();
	COleDateTime GetDateTime(CString str);
	void SetDateTime(COleDateTime dt);

	virtual ~CDateTimeEdit();

	// Generated message map functions
protected:
	afx_msg void OnContextMenu(CWnd*, CPoint point);

	CString m_strMask;
	//{{AFX_MSG(CDateTimeEdit)
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_DATETIMEEDIT_H__C2C2F010_6BF2_11D4_BD73_000021479D21__INCLUDED_)

⌨️ 快捷键说明

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