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

📄 mainfrm.h

📁 电信机房MDF、电源柜监控源码,主要用在通信机房配线设备监控、电源柜监控
💻 H
字号:
// MainFrm.h : CMainFrame 类的接口
//


#pragma once

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

// 属性
protected:
	CSplitterWnd m_wndSplitter;
	CSplitterWnd m_wndSplitter2;
public:

// 操作
public:

// 重写
public:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	afx_msg LRESULT onStatusChange(WPARAM wParam, LPARAM lParam);		//设备状态改变

// 实现
public:
	virtual ~CMainFrame();
	CRightForm* GetRightPane();
	void HideMainWin();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // 控件条嵌入成员
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
	CReBar      m_wndReBar;
	CDialogBar      m_wndDlgBar;
	CAdoDB *p_adodb;

// 生成的消息映射函数
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
	afx_msg void OnViewStyle(UINT nCommandID);
	LRESULT OnShellNotify(WPARAM wParam,LPARAM lParam) ;
	DECLARE_MESSAGE_MAP()
public:
	virtual void RecalcLayout(BOOL bNotify = TRUE);
	afx_msg void OnParentNotify(UINT message, LPARAM lParam);
	afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp);
	afx_msg LRESULT onRestart(WPARAM wParam, LPARAM lParam);		//重起监测服务


protected:
	virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
public:
	afx_msg void OnShowcontrol();
	afx_msg void OnShowmainwin();
//	afx_msg void OnExit();
	// 关闭系统服务
	void CloseSystem(void);
protected:
	virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
public:
	afx_msg void OnClose();
	afx_msg void OnExit();
	afx_msg void OnAppExit();
	afx_msg void OnStartcomm();
	afx_msg void OnStopcomm();
	int PlayWave(CString strWaveFile);
	afx_msg void OnCmSound();
};


⌨️ 快捷键说明

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