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

📄 mainfrm.h

📁 远程网络监视程序的源码
💻 H
字号:
// MainFrm.h : CMainFrame 类的接口
//


#pragma once
#include "trayicon.h"

//托盘事件
#define WM_MYICONNOTIFY  WM_USER + 0x51A

#define CFrameWnd CBCGPFrameWnd

class CPortMonView;
class CMainFrame : public CFrameWnd
{
protected: // 仅从序列化创建
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// 重写
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);

// 实现
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // 控件条嵌入成员
	CBCGPMenuBar m_wndMenuBar;
	CAnimateCtrl m_wndAnimator;
	CBCGPToolBar m_wndToolBar;
	CBCGPReBar m_wndReBar;
	CBCGPStatusBar m_wndStatusBar;
	CSplitterWnd m_wndSplitter;
	BOOL m_bPanelCreated;

// 生成的消息映射函数
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg LRESULT OnToolbarReset(WPARAM, LPARAM);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	DECLARE_MESSAGE_MAP()

public:
	void SetStatusBarInfo(LPCTSTR szInfo);
	CAnimateCtrl& GetAnimateCtrl(void);
	CPortMonView *GetPortView(void);
	CBCGPToolbarComboBoxButton* GetComboIpAddr(void);
	void StopMon(void);

	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg LRESULT OnMyIconNotify(WPARAM wParam/*uID*/,LPARAM lParam/*消息标识值*/);
	afx_msg void OnShow();
	afx_msg void OnHide();
	afx_msg void OnHomePage();

	afx_msg void OnToolCustomize();
	afx_msg void OnViewRefresh();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnToolOptions();
	afx_msg void OnViewNetProc();
	afx_msg void OnUpdateViewNetProc(CCmdUI *pCmdUI);
	afx_msg void OnDestroy();

private:
	CTrayIcon m_obTrayIcon;
};


⌨️ 快捷键说明

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