MFC实现最小化到托盘(三)

2014-11-24 09:46:34 · 作者: · 浏览: 2

{
// Construction
public:
LRESULT OnShowTask(WPARAM wParam,LPARAM lParam);
CTimeWakeDlg(CWnd* pParent = NULL); // standard constructor
void OnSize(UINT nType,int cx,int cy);
void OnCancel();
// Dialog Data
//{{AFX_DATA(CTimeWakeDlg)
enum { IDD = IDD_TIMEWAKE_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA

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

//}}AFX_VIRTUAL

// Implementation
protected:
HICON m_hIcon;

// Generated message map functions
//{{AFX_MSG(CTimeWakeDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();

//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TIMEWAKEDLG_H__0D6108FA_D2EB_4C1E_8013_5D4C6617D62E__INCLUDED_)

在这个工程中,添加了一个Dialog
在那个界面上有两个Radio控件,一个是最小化到托盘,一个是关闭程序