mainfrm.h

来自「简单的vc编的查看系统进程的程序!!!可以给初学vc的朋友很好的启示」· C头文件 代码 · 共 92 行

H
92
字号
/*
 +------------------------------------------------------------+
 |															  |
 | (c) Copyright 2002, bigwhite, Inc.						  |
 |															  |
 | ALL RIGHTS RESERVED										  |
 |															  |
 +------------------------------------------------------------+
*/

 
/*==================================================================*
 * MainFrm.h : interface of the CMainFrame class                    |
 *  Version 1.1                                                     |
 *=================================================================*/
//
// 

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

#if !defined(AFX_MAINFRM_H__C050A211_E8BC_4E51_8F5B_57A799F666A6__INCLUDED_)
#define AFX_MAINFRM_H__C050A211_E8BC_4E51_8F5B_57A799F666A6__INCLUDED_

#include "ProcessWatchedDialog.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_TASKNOTIFY  WM_USER+100
class CMainFrame : public CFrameWnd
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);//改写该函数以创建分割窗口和视图
	//}}AFX_VIRTUAL

// Implementation
public:
	LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
    CSplitterWnd  m_wndSplitter;
// Generated message map functions
protected:
	NOTIFYICONDATA tnd;
	CProcessWatchedDialog dlg;
	
	CString m_strProcessNameWatched;
	afx_msg void OnContextMenu(CWnd*, CPoint point);
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClose();
	afx_msg void OnAppExit();
	afx_msg void OnWindowRecovery();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnStartProcessWatch();
	afx_msg void OnUpdateStartProcessWatch(CCmdUI* pCmdUI);
	afx_msg void OnSetProcessWatched();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL m_bCurrentState;
};

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

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

#endif // !defined(AFX_MAINFRM_H__C050A211_E8BC_4E51_8F5B_57A799F666A6__INCLUDED_)

⌨️ 快捷键说明

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