datamanview.h

来自「共享内存的源代码」· C头文件 代码 · 共 141 行

H
141
字号
// DataManView.h : interface of the CDataManView class
//
/////////////////////////////////////////////////////////////////////////////
#include "CDataManDoc.h"
#include "TaskbarNotifier.h"
#if !defined(AFX_DataManVIEW_H__B5D76094_D25C_47F2_A5D0_B3792640437B__INCLUDED_)
#define AFX_DataManVIEW_H__B5D76094_D25C_47F2_A5D0_B3792640437B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define ASSERT_VALID_STRING( str ) ( (void)0 )
class CDataManView : public CListView
{
protected: // create from serialization only
	CDataManView();
	DECLARE_DYNCREATE(CDataManView)

// Attributes
public:
	CDataManDoc* GetDocument();
	// flag whether to query user before map/unmap a server
	BOOL m_bQueryBeforeMap;
	public:
	void OpenMicrexF(BOOL fQuery = TRUE);
	static int CALLBACK NPLVcmpProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
	BOOL SetMicrexFComPort(int nCOM);
protected:
	void RefreshItem(int nItem);
	BOOL SetNPServiceStatus(bool bStatus);
private:
	// file path of YICTPRO+PDS.Ldx
	CString m_strFilePath;
	CString m_strKeyPLCComm;//

	//SaveMirexFilePath
    CString m_strSaveMirexFilePath;
private:
	void SimulateKeyInput(CString strKeyInput);

// Operations
public:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDataManView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CDataManView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	CImageList m_ilSmall;
	CImageList m_ilLarge;
	//{{AFX_MSG(CDataManView)
	afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnViewRefresh();
	afx_msg void OnMapAutomap();
	afx_msg void OnMapUnmap();
	afx_msg void OnViewChoosedetails();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnUpdateMapAutomap(CCmdUI *pCmdUI);
	afx_msg void OnViewShowgrids();
	afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/);
	afx_msg void OnFileMicrex();
	afx_msg void OnMapProp();//ciew右击菜单
	afx_msg void OnUpdateMapUnmap(CCmdUI *pCmdUI);
	afx_msg void OnUpdateMapProp(CCmdUI *pCmdUI);
	afx_msg void OnMapResetall();
	afx_msg void OnLvnColumnclick(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnToolsOptions();
	afx_msg void OnFileOpen();
	afx_msg void OnUpdateViewShowgrids(CCmdUI *pCmdUI);
	afx_msg void OnFileReload();
	//afx_msg void OnHelpFind();
	//afx_msg void OnHelpSetcomport();
	//afx_msg void OnMapWriteregistry();
//	afx_msg void OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult);
	//afx_msg void OnNcRButtonDown(UINT nHitTest, CPoint point);
	afx_msg void OnMapMapandLoad();
	afx_msg void OnUpdateMapMapandLoad(CCmdUI *pCmdUI);

	
	//afx_msg LRESULT OnMapComPort(WPARAM wPARAM, LPARAM lPARAM);
	
	//Option
	int m_IfAutoSelMicrexF;
	CString m_strMirexFilePath;
	char MirexFilePath[255];
	DWORD MirexFilePathsize;

	void OnToolsOptionsRegInit(char * MirexFilePath , DWORD MirexFilePathsize , int& IfAutoResetList,int& m_IfAutoSelMicrexF);
	void OnToolsOptionsRegSave(char * MirexFilePath , DWORD MirexFilePathsize , int& IfAutoResetList,int& m_IfAutoSelMicrexF);

	//YCNum
	void OnCMSFirstAutoDataManager(void);
	void OnCMSAddYCStatus(void);
	void OnCMSCutYCStatus(void);

	//上升对话框
	CTaskbarNotifier m_wndTaskbarNotifier1;
	CTaskbarNotifier m_wndTaskbarNotifier2;
	CTaskbarNotifier m_wndTaskbarNotifier3;
	CTaskbarNotifier m_wndTaskbarNotifier4;
	//右下角上升对话框选择
	bool m_Tips_Show_VIEW;

	int m_optimiz_time_int_view;
	void OnRefreshItemAll(void);
	void OnRefreshItemAllWithChange(int YCNum , int);
};

#ifndef _DEBUG  // debug version in DataManView.cpp
inline CDataManDoc* CDataManView::GetDocument()
   { return (CDataManDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DataManVIEW_H__B5D76094_D25C_47F2_A5D0_B3792640437B__INCLUDED_)

⌨️ 快捷键说明

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