?? xfkilnview.h
字號:
// XFKILNView.h : interface of the CXFKILNView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_XFKILNVIEW_H__8C9F4991_EE6A_4F67_83BB_8878D378572D__INCLUDED_)
#define AFX_XFKILNVIEW_H__8C9F4991_EE6A_4F67_83BB_8878D378572D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SerialPort.h"
#include "DeviceNode.h"
class CXFKILNView : public CView
{
protected: // create from serialization only
CXFKILNView();
DECLARE_DYNCREATE(CXFKILNView)
// Attributes
public:
CXFKILNDoc* GetDocument();
CSerialPort m_CommMeter;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CXFKILNView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
int m_bSelectMeter1;
int m_bSelectMeter2;
int m_bSelectMeter3;
int m_bSelectMeter4;
char strList[50];
int m_count;
virtual ~CXFKILNView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CXFKILNView)
afx_msg void OnCmdTestport();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnAddnode();
afx_msg void OnMeter1();
afx_msg void OnMeter2();
afx_msg void OnMter3();
afx_msg void OnMter4();
afx_msg void OnUpdateMeter1(CCmdUI* pCmdUI);
afx_msg void OnUpdateMeter2(CCmdUI* pCmdUI);
afx_msg void OnUpdateMter3(CCmdUI* pCmdUI);
afx_msg void OnUpdateMter4(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
// CDeviceNode* m_pDevNode;
};
#ifndef _DEBUG // debug version in XFKILNView.cpp
inline CXFKILNDoc* CXFKILNView::GetDocument()
{ return (CXFKILNDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_XFKILNVIEW_H__8C9F4991_EE6A_4F67_83BB_8878D378572D__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -