FLImaging 7.10.21.1
GUIDialogCustom.h
1#pragma once
2
10
12namespace FLImaging
13{
15 namespace GUI
16 {
24 class FL_EXPORT CGUIDialogCustom : public CDialogEx, public Base::CFLBase
25 {
26 DECLARE_DYNAMIC(CGUIDialogCustom)
27
28 public:
36
44
52
64 CGUIDialogCustom(UINT nIDTemplate, CWnd* pParent = nullptr);
65
77 CGUIDialogCustom(LPCTSTR lpszTemplateName, CWnd* pParentWnd = nullptr);
78
86
100 virtual const CResult Assign(const CGUIDialogCustom* pRhs);
101
115 virtual const CResult Assign(const CGUIDialogCustom& rhs);
116
126 virtual uint32_t GetResourceID() const;
127
128 SupportToDuplicateObject(CGUIDialogCustom, *this);
129 DeclareGetClassType();
130
131 virtual void SetParentWnd(CWnd* pParentWnd);
132 virtual CWnd* GetParentWnd() const;
133 virtual bool IsExternalParent();
134
135 public:
136 DECLARE_MESSAGE_MAP()
137 afx_msg void OnPaint();
138 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
139 virtual BOOL OnInitDialog() override;
140 virtual BOOL PreTranslateMessage(MSG* pMsg) override;
141 afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
142 afx_msg void OnDisplayChange(UINT nBitsPerPixel, int cx, int cy);
143 afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
144
145 protected:
146 uint32_t m_u32ResourceID;
147 CBrush m_brBrush;
148 COLORREF m_crClientFillColor;
149 bool m_bInitialized;
150 CWnd* m_pParentWnd;
151
152 std::vector<CWnd*>& m_vctChildWnd;
153 };
154 }
155}
Top-level base class of FLImaging.
Definition FLImagingBase/FLBase.h:36
FLImaging module execution result object.
Definition FLImagingBase/ResultsDef.h:1712
CGUIDialogCustom(const CGUIDialogCustom &rhs)
Copy constructor by reference.
CGUIDialogCustom(const CGUIDialogCustom *pRhs)
Copy constructor by pointer.
virtual ~CGUIDialogCustom()
Default destructor.
virtual const CResult Assign(const CGUIDialogCustom *pRhs)
Copies the dialog object.
virtual uint32_t GetResourceID() const
Returns the resource ID.
virtual const CResult Assign(const CGUIDialogCustom &rhs)
Copies the dialog object.
CGUIDialogCustom(UINT nIDTemplate, CWnd *pParent=nullptr)
Constructs a CGUIDialogCustom object.
CGUIDialogCustom(LPCTSTR lpszTemplateName, CWnd *pParentWnd=nullptr)
Constructs a CGUIDialogCustom object.
CGUIDialogCustom()
Default constructor.
Definition D2DObject.h:12