FLImaging 7.11.27.4
GUIDialogSystemInformation.h
1#pragma once
2#include "GUIDialogCustomEmbedded.h"
3
4namespace FLImaging
5{
6 namespace GUI
7 {
8 class CGUISystemInformationCardCpu;
9 class CGUISystemInformationCardMemory;
10 class CGUISystemInformationCardGpuNvidia;
11 class CGUISystemInformationCardGpuAmd;
12 class CGUISystemInformationCardBase;
13 class CGUISystemInformationSampler;
14
15 class FL_EXPORT CGUIDialogSystemInformation : public CGUIDialogCustomEmbedded
16 {
17 DECLARE_DYNAMIC(CGUIDialogSystemInformation)
18
19 public:
20 CGUIDialogSystemInformation(CWnd* pParent = nullptr);
21 virtual ~CGUIDialogSystemInformation();
22
23 #ifdef AFX_DESIGN_TIME
24 enum {
25 IDD = IDD_DIALOG_RESOURCEPANEL
26 };
27 #endif
28
29 SupportToDuplicateObject(CGUIDialogSystemInformation);
30 DeclareGetClassType();
31
32 protected:
33 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀԴϴÙ.
34
35 protected:
36 CGUISystemInformationSampler& m_sampler;
37 bool IsPanelVisible() const;
38
39 public:
40 virtual void SetDetailedView(bool bDetailed);
41 virtual bool IsDetailedView() const;
42
43 // ǥ½Ã ¼ø¼­´ë·Î À¯ȿÇÑ īµå ¸ñ·Ï (CPU, Memory, GPU(Nvidia), GPU(AMD))
44 std::vector<CGUISystemInformationCardBase*> GetCards() const;
45 void UpdateCards();
46 CRect GetUptimeRect() const;
47
48 private:
49 void UpdateControlsLayout();
50
51 private:
52 CTime m_tStartTime;
53 Base::CFLString<wchar_t> m_strUptimeName;
54 Base::CFLString<wchar_t> m_strUptimeVal;
55
56 CGUISystemInformationCardCpu* m_pResCardCPU;
57 CGUISystemInformationCardGpuNvidia* m_pResCardGPUNvidia;
58 CGUISystemInformationCardMemory* m_pResCardSysMem;
59 CGUISystemInformationCardGpuAmd* m_pResCardGPUAmd;
60
61 int32_t m_i32ScrollPos;
62 int32_t m_i32CurHeight;
63 int32_t m_i32TotalHeight;
64 int32_t m_i32TotalWidth;
65 int32_t m_i32ScrollPosX;
66 int32_t m_i32CurWidth;
67 int32_t m_i32NumOfContents;
68 bool m_bInOnSize;
69 bool m_bInitialized;
70 bool m_bDetailedViewBeforeInit;
71
72 DECLARE_MESSAGE_MAP()
73
74 public:
75 virtual BOOL OnInitDialog();
76 afx_msg void OnTimer(UINT_PTR nIDEvent);
77 afx_msg void OnDestroy();
78 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
79 afx_msg void OnPaint();
80 afx_msg void OnSize(UINT nType, int cx, int cy);
81 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
82 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
83 afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
84 afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
85 afx_msg LRESULT OnSystemInformationSampled(WPARAM wParam, LPARAM lParam);
86 };
87 }
88}
리소스 뷰에서 만든 다이얼로그를 부모 창(dockable pane 등)의 자식으로 추가할 수 있는 사용자 정의 다이얼로그 클래스.
Definition GUIDialogCustomEmbedded.h:26
Definition D2DObject.h:12