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

📄 mainfrm.h

📁 CAN__组建现场总线系统设计技术(光盘)
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__6CC88F29_E517_11D6_96AA_0000E87DFECA__INCLUDED_)
#define AFX_MAINFRM_H__6CC88F29_E517_11D6_96AA_0000E87DFECA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "gui\\scbarg.h"
#include "explorer\\wm.h"

#include "leftdlg.h"
#include "bottomdlg.h"

#include "YClientWnd.h"

#include "MySocket.h"

class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:
	CCoolBar m_wndMyBar1;///我们将它作为左边的窗口 
	CCoolBar m_wndMyBar2;///停靠在下方的窗口

	CLeftDlg m_LeftDlg;
	CBottomDlg m_BottomDlg;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	void RemoteData();
	BOOL m_bStartUDP;
	BYTE m_rcbuf[11];

	long m_nFrames;
	void StopSystem();
	void StartSystem();
	void DeInitCAN();
	BOOL m_bThrRunning;
	BOOL InitCAN();
	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;

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnBottomBar();
	afx_msg void OnLeftBar();
	afx_msg void OnUpdateLeftBar(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBottomBar(CCmdUI* pCmdUI);
	afx_msg void OnOpenHere(WPARAM w,LPARAM l);
	afx_msg void OnSysStart();
	afx_msg LRESULT OnReceiveFrame(WPARAM w,LPARAM l);
	afx_msg void OnViewSyscfg();
	afx_msg void OnViewShowdata();
	afx_msg void OnViewFramesShow();
	afx_msg void OnViewCmdbat();
	afx_msg void OnClose();
	afx_msg void OnPopupDatawin();
	afx_msg void OnPopupAttribute();
	afx_msg void OnViewCover();
	afx_msg void OnSysSet7710();
	afx_msg void OnSysFrameCount();
	afx_msg void OnViewSJAReg();
	afx_msg void OnSysStartUdp();
	afx_msg void OnSysUseRemoteSource();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL m_bRemoteSource;
	CMySocket m_sockSend;
	CMySocket m_sockRecv;
	void ShowDataCh(BYTE addr,BYTE ch);
	BOOL m_bInitSuccess;


	YClientWnd m_wndClient;
};

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

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

#endif // !defined(AFX_MAINFRM_H__6CC88F29_E517_11D6_96AA_0000E87DFECA__INCLUDED_)

⌨️ 快捷键说明

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