chenluhua1980
2026-01-09 6b306b81f8a07c3e36676a0a5c305b3b1ea68c60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <chrono>
#include "HmLabel.h"
 
// CPageProOverview 对话框
class CPageProdOverview : public CDialogEx
{
    DECLARE_DYNAMIC(CPageProdOverview)
 
public:
    CPageProdOverview(CWnd* pParent = nullptr);   // 标准构造函数
    virtual ~CPageProdOverview();
    void SetBackgroundColor(COLORREF color);
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
 
    DECLARE_MESSAGE_MAP()
public:
    virtual BOOL OnInitDialog();
    afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
    afx_msg void OnDestroy();
    afx_msg void OnSize(UINT nType, int cx, int cy);
    afx_msg void OnTimer(UINT_PTR nIDEvent);
 
private:
    void RefreshData();
 
private:
    COLORREF m_clrBackground{ RGB(240, 240, 240) };
    CBrush m_brushBackground;
    UINT_PTR m_timerId = 0;
    CHmLabel m_labelDayOut;
    CHmLabel m_labelNightOut;
    CHmLabel m_labelDayTakt;
    CHmLabel m_labelNightTakt;
};