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

📄 maindlg.h

📁 定时关机
💻 H
字号:
#if !defined(AFX_MAINDLG_H__CCA2CA07_E4E6_4EA8_925F_B743C0498DDF__INCLUDED_)
#define AFX_MAINDLG_H__CCA2CA07_E4E6_4EA8_925F_B743C0498DDF__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMainDlg dialog

class CMainDlg : public CDialog
{
// Construction
public:
	CMainDlg(CWnd* pParent = NULL);   // standard constructor
	
	void SetRun(bool rr){
		run=rr;
		
	}

int Gethow(){
		return how;
	}

void SetHH(int hour){
	hh=hour;
}

void SetMM(int min){
	mm=min;
}
// Dialog Data
	//{{AFX_DATA(CMainDlg)
	enum { IDD = IDD_DIALOG1 };
	CComboBox	m_how;
	CButton	m_stop;
	CButton	m_run;
	int		m_hour;
	int		m_min;
	//}}AFX_DATA

BOOL OnInitDialog();
void SetHwnd(HWND hh){
	hwnd=hh;
}

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

// Implementation
protected:
  bool run;
  CTime time;
  CString currenttime;
  HWND hwnd;
  int how;
  int hh,mm;
	// Generated message map functions
	//{{AFX_MSG(CMainDlg)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_MAINDLG_H__CCA2CA07_E4E6_4EA8_925F_B743C0498DDF__INCLUDED_)

⌨️ 快捷键说明

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