From 518ed5e189c36f99af1157995ddd2bb61489b5a5 Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期五, 03 一月 2025 14:31:21 +0800 Subject: [PATCH] 1.联调后优化; --- SourceCode/Bond/BondEq/CProjectPageMain.h | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/SourceCode/Bond/BondEq/CProjectPageMain.h b/SourceCode/Bond/BondEq/CProjectPageMain.h index 21a2387..563e8af 100644 --- a/SourceCode/Bond/BondEq/CProjectPageMain.h +++ b/SourceCode/Bond/BondEq/CProjectPageMain.h @@ -1,5 +1,16 @@ 锘�#pragma once #include "afxdialogex.h" +#include "BlButton.h" + +// BUTTON鎺т欢 +#define BTN_MAX 7 +#define BTN_RUN 0 +#define BTN_AUTO 1 +#define BTN_PUASE 2 +#define BTN_MANUAL 3 +#define BTN_MUTE 4 +#define BTN_OPR 5 +#define BTN_STOP 6 // CProjectPageMain 瀵硅瘽妗� @@ -26,9 +37,9 @@ private: void InitRxWindows(); + void SetButtonBackgroundColors(CBlButton* btn, bool bOff); void HandleOperation(OperationType eOpType); void WriteOperationDataToPLC(OperationType eOpType, bool bPressed); - void ReadPLCDataToUI(); private: COLORREF m_crBkgnd; @@ -36,10 +47,9 @@ IObserver* m_pObserver; CPLC* m_pPLC; - int nVelocityRatio; // 閫熷害姣� - double dTactTime; // 鍛ㄦ湡鏃堕棿 - int nDayShiftCapacity; - int nNightShiftCapacity; +private: + // 鎺т欢 + CBlButton* m_pBlBtns[BTN_MAX]; // 瀵硅瘽妗嗘暟鎹� #ifdef AFX_DESIGN_TIME -- Gitblit v1.9.3