FLImaging 7.8.25.3
GUIDialogSystemInformation.h
1#pragma once
2#include "GUIDialogCustomEmbedded.h"
3
4namespace FLImaging
5{
6 namespace GUI
7 {
8 class CGUISystemInformationCardBase;
9 class CGUISystemInformationCardGPU;
10
11 class FL_EXPORT CGUIDialogSystemInformation : public CGUIDialogCustomEmbedded
12 {
13 DECLARE_DYNAMIC(CGUIDialogSystemInformation)
14
15 public:
16 CGUIDialogSystemInformation(CWnd* pParent = nullptr);
17 virtual ~CGUIDialogSystemInformation();
18
19 #ifdef AFX_DESIGN_TIME
20 enum {
21 IDD = IDD_DIALOG_RESOURCEPANEL
22 };
23 #endif
24
25 SupportToDuplicateObject(CGUIDialogSystemInformation);
26 DeclareGetClassType();
27
28 protected:
29 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀÔ´Ï´Ù.
30
31 DECLARE_MESSAGE_MAP()
32
33 public:
34 virtual BOOL OnInitDialog();
35 afx_msg void OnTimer(UINT_PTR nIDEvent);
36 afx_msg void OnDestroy();
37 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
38 afx_msg void OnPaint();
39 afx_msg void OnSize(UINT nType, int cx, int cy);
40 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
41 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
42 afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
43
44 private:
45 void UpdateControlsLayout();
46
47 private:
48 CTime m_tStartTime;
49 Base::CFLString<wchar_t> m_strUptimeName;
50 Base::CFLString<wchar_t> m_strUptimeVal;
51
52 CGUISystemInformationCardBase* m_pResCardCPU;
53 CGUISystemInformationCardGPU* m_pResCardGPUNvidia;
54 CGUISystemInformationCardBase* m_pResCardSysMem;
55 CGUISystemInformationCardBase* m_pResCardGPUAmd;
56
57 int32_t m_i32ScrollPos;
58 int32_t m_i32CurHeight;
59 int32_t m_i32TotalHeight;
60 int32_t m_i32TotalWidth;
61 int32_t m_i32ScrollPosX;
62 int32_t m_i32CurWidth;
63 int32_t m_i32NumOfContents;
64 bool m_bInOnSize;
65 };
66 }
67}
A custom dialog class that allows a dialog created in the resource view to be embedded as a child of ...
Definition GUIDialogCustomEmbedded.h:26
Definition D2DObject.h:12