📄 dlggongzhuang.h
字号:
#if !defined(AFX_DLGGONGZHUANG_H__96839408_3FBA_4693_8772_DC2C3AB35CCA__INCLUDED_)
#define AFX_DLGGONGZHUANG_H__96839408_3FBA_4693_8772_DC2C3AB35CCA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgGongzhuang.h : header file
//
#include "public.h"
class CMaintainDoc;
/////////////////////////////////////////////////////////////////////////////
// CDlgGongzhuang frame
class CDlgGongzhuang : public CFrameWnd
{
DECLARE_DYNCREATE(CDlgGongzhuang)
public:
void SetAddress(BYTE by1,BYTE by2)
{byGroupNo=by1;byAddrNo=by2;}
CDlgGongzhuang(); // protected constructor used by dynamic creation
virtual ~CDlgGongzhuang();
// Attributes
private:
void ShowWaitCursor(bool);
bool m_ChangeCursor;
void TimeDelay(int,int,int,int,int,int);
CTime t;//保存时钟测试时下发的时间
void DrawBitmap(HDC hDC, int nX, int nY, UINT nID);
CRect rcSendCode;//工装测试时发送的HEX码区域
CString strSendCode;//工装测试时发送的HEX码
void SendCodeToHEX(BYTE*,int len);
int nYcCount,nYxCount;//遥测遥信收发时返回的个数
int nYxLineLeft,nYcLineLeft;
BYTE byGroupNo,byAddrNo;
void OverTimeNotReturn();
void ClockTest();
void I2CTest();
void SPITest();
void AddrLineTest();
void BuzzerTest(bool);
void CommTest();
void YtTest();
void YkTestStop();
void YkTestBegin();
bool bYKBegin,bBuzzerBegin;
//byte byBoardType;//主控板还是信号板
int xBmp,yBmp,nRightOfYcLine;
int nYtNoWidth,nYtNoHeight;
CEdit editYtNo,editYtValue,editGzNo;
int nBtnIconWidth,nBtnIconHeight,nPowerWidth,nPowerHeight;
void PaintBkLine(CPaintDC&);
void ShowGzYcYxData(CPaintDC&);
void RefreshGzYcYxDisplay();
void DrawTitleOnBmp(HDC hDC, int nX, int nY, CString str);
CToolBar m_toolBar;
CStatusBar m_statusBar;
int nCell,nleft,ntop,nIconWidth,nCellYcWidth,nCellYcHigh;
BYTE bDataBuf[512];
void ProcessGzData(BYTE *buf,int len);
CStatic yxicon[GONGZHUANG_YXOUNT];
float ycValue[GONGZHUANG_YCOUNT];
float ycValueOld[GONGZHUANG_YCOUNT];
BYTE yxValue[GONGZHUANG_YXOUNT];
BYTE yxValueOld[GONGZHUANG_YXOUNT];
CMaintainDoc *m_doc;
void CallYcYx();
void CreateFont();
int timer1,timer2,timer3;
void SetStatusBarInfo(CString);
CFont m_font;
CString strRtn;
int nCurOperation;//当前操作类型
// Operations
public:
void TransBuf(BYTE* buf,int len);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgGongzhuang)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgGongzhuang)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPaint();
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnI2c();
afx_msg void OnSpi();
afx_msg void OnAddressline();
afx_msg void OnBuzzerOn();
afx_msg void OnBuzzerOff();
afx_msg void OnGzclock();
afx_msg void OnGzcomm();
afx_msg void OnGzycyxOn();
afx_msg void OnGzycyxOff();
afx_msg void OnGzYkbegin();
afx_msg void OnGzYkend();
afx_msg void OnGzYt();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnGzclockcall();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGGONGZHUANG_H__96839408_3FBA_4693_8772_DC2C3AB35CCA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -