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

📄 mainfrm.h

📁 关于进程&线程查看器 用过vc++自带的Process Viewer
💻 H
字号:
/*
 +------------------------------------------------------------+
 |															  |
 | (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
#if _MFC_VER>=0x0700
#define AnimateWindowS()  AnimateWindow(1000,AW_CENTER)
#define AnimateWindowH()  AnimateWindow(1000,AW_CENTER|AW_HIDE)
#else
#define AnimateWindowH()  AnimateWindow(this->m_hWnd,1000,AW_CENTER|AW_HIDE)
#define AnimateWindowS()  AnimateWindow(this->m_hWnd,1000,AW_CENTER)
#endif
#define WM_TASKNOTIFY  WM_USER+100
class CMainFrame : public CFrameWnd
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:
    
	//绘制XP风格窗体
	CRect				m_rtButtExit;			//关闭按钮位置
	CRect				m_rtButtMax;			//最大化按钮位置
	CRect				m_rtButtMin;			//最小化按钮位置
    CRect				m_rtIcon;				//程序图标位置
     
// Operations
public:
     void	DrawTitleBar(CDC *pDC);				//绘制具有XP风格的窗体框架
     void   DrawXPBmp(CDC *pDC,int ID,CPoint pt1,CPoint pt2);
 
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);//改写该函数以创建分割窗口和视图
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}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;
	
	
	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 OnSetProcessWatched();
	afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
	afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	//}}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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -