4#include "GUIWndCtrlBase.h"
5#include "GUIEditCtrl.h"
6#include "GUILayoutBase.h"
7#include "GUIBoxLayout.h"
8#include "GUIGridLayout.h"
11#include "GUIComboBox.h"
12#include "GUICheckBox.h"
13#include "GUIStaticText.h"
14#include "GUIListCtrl.h"
15#include "GUIListCtrlMassive.h"
17#include "GUIDialogBase.h"
35 class CInternalDialog;
74 friend class CGUILayoutBase;
75 friend class CGUIBoxLayout;
76 friend class CGUIGridLayout;
77 friend class CGUIPaneDialog;
78 friend class CGUIManagerViewImageObjectImageFigure;
160 CGUIDialog(LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL);
195 virtual BOOL
Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL)
override;
210 virtual BOOL
Create(UINT nIDTemplate, CWnd* pParentWnd = NULL)
override;
227 virtual BOOL
CreateIndirect(LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd = NULL,
void* lpDialogInit = NULL)
override;
242 virtual BOOL
CreateIndirect(HGLOBAL hDialogTemplate, CWnd* pParentWnd = NULL)
override;
1028 #ifdef AFX_DESIGN_TIME
1031 IDD = IDD_DIALOG_CUSTOM
1034 DECLARE_MESSAGE_MAP()
1062 virtual int32_t
Add(CGUILayoutBase* pLayout);
1077 virtual CGUILayoutBase*
GetAt(int32_t i32Index);
1107 virtual
bool SetFocusWnd(CGUIGridLayout* pLayout, int32_t i32Row, int32_t i32Col);
1166 virtual
void InitDefaults();
1167 virtual
void InternalSetWindowPosMinimized();
1168 virtual
bool InternalOKButtonClickProcedure();
1169 virtual
bool InternalCancelButtonClickProcedure();
1170 virtual
bool InternalYesButtonClickProcedure();
1171 virtual
bool InternalNoButtonClickProcedure();
1174 virtual BOOL PreTranslateMessage(MSG* pMsg);
1175 virtual
void OnOK();
1176 virtual
void OnCancel();
1177 virtual
void OnYes();
1178 virtual
void OnNo();
1179 virtual
void DrawBorder(CDC* pDC);
1180 virtual
void DrawCloseButton(CDC* pDC);
1181 virtual
void DrawMinButton(CDC* pDC);
1182 virtual
void DrawTitleRect(CDC* pDC);
1184 virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
1185 virtual
bool CreateButton();
1186 virtual
bool AdjustLayoutButton(int32_t i32BtnW, int32_t i32BtnH, int32_t i32BtnMargin, int32_t i32BtnSpace, int32_t i32BtnTop);
1187 virtual BOOL HitTestGrip(MSG* pMsg);
1189 virtual
bool IsExternalParent();
1190 virtual
bool IsNeedRegisterHook();
1192 DeclareGetClassType();
1197 int32_t m_i32MinWidth;
1198 int32_t m_i32MinHeight;
1202 int32_t m_i32WndowWidthUserDefined;
1203 int32_t m_i32WndowHeightUserDefined;
1204 int32_t m_i32ContentsW;
1205 int32_t m_i32ContentsH;
1206 int32_t m_i32MarginL;
1207 int32_t m_i32MarginT;
1208 int32_t m_i32MarginR;
1209 int32_t m_i32MarginB;
1211 int32_t m_i32RowCnt;
1212 int32_t m_i32ColCnt;
1213 int32_t m_i32WndCtrlCnt;
1214 int32_t m_i32BtnCnt;
1217 int32_t m_i32TitleHeight;
1218 bool m_bShowWindowOnAdjustLayout;
1221 CInternalDialog* m_pInternal;
1232 bool m_bLButtonDown;
1233 bool m_bLockWindowUpdate;
1237 CRect m_rcMinimizeBtn;
1239 CRect m_rcTitleRect;
1241 int32_t m_i32IntervalSpacing;
1242 int32_t m_i32HoveringBtn;
1243 int32_t m_i32HoveringBtnBf;
1244 COLORREF m_clrBorder;
1245 COLORREF m_clrBorderActive;
1246 COLORREF m_clrClientFill;
1247 std::vector<CGUILayoutBase*>& m_vctLayout;
1248 std::vector<CGUIDialogLayoutElement*>& m_vctInputWnd;
1252 Base::CFLString<
wchar_t> m_strTitle;
1254 Base::CFLString<
wchar_t> m_strOkBtnName;
1255 Base::CFLString<
wchar_t> m_strCancelBtnName;
1256 Base::CFLString<
wchar_t> m_strYesBtnName;
1257 Base::CFLString<
wchar_t> m_strNoBtnName;
1259 CGUIScrollWnd* m_pScrollWnd;
1265 CGUIDialogLayoutElement* m_pWndCtrlOK;
1266 CGUIDialogLayoutElement* m_pWndCtrlCancel;
1267 CGUIDialogLayoutElement* m_pWndCtrlYes;
1268 CGUIDialogLayoutElement* m_pWndCtrlNo;
1269 CGUIPaneDialog* m_pParentPaneDialog;
1272 bool m_bEnableScroll;
1273 bool m_bScrollWndIncludeButtons;
1275 bool m_bCenterWindowDone;
1276 bool m_bShowCaption;
1277 bool m_bShowCaptionMinBtn;
1278 bool m_bShowCaptionCloseBtn;
1280 bool m_bShowCancelBtn;
1283 bool m_bEnableOkBtn;
1284 bool m_bEnableCancelBtn;
1285 bool m_bEnableYesBtn;
1286 bool m_bEnableNoBtn;
1288 bool m_bIsResizable;
1289 bool m_bAlreadyInsideProcedure;
1292 int32_t m_i32MinimizeWidth;
1295 CGUILayoutBase* m_pFocusLayout;
1297 int32_t m_i32FocusIdx;
1298 int32_t m_i32FocusIdxRow;
1299 int32_t m_i32FocusIdxCol;
1301 CWndCtrlProcedure* m_pProcedureOfCloseButtonOnCaption;
1302 bool m_bProcedureOfCloseButtonOnCaptionAutoDestroy;
1303 int32_t m_i32CloseButtonOnCaptionClickCount;
1305 bool m_bRegisterHook;
1308 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
1309 afx_msg
void OnPaint();
1310 afx_msg
void OnNcPaint();
1311 afx_msg
void OnMouseMove(UINT nFlags, CPoint point);
1312 afx_msg
void OnLButtonDown(UINT nFlags, CPoint point);
1313 afx_msg
void OnLButtonUp(UINT nFlags, CPoint point);
1314 afx_msg
void OnSetFocus(CWnd* pOldWnd);
1315 afx_msg
void OnKillFocus(CWnd* pNewWnd);
1316 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
1317 afx_msg
void OnDestroy();
1318 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
1319 afx_msg
void OnSize(UINT nType,
int cx,
int cy);
1320 afx_msg BOOL OnNcActivate(BOOL bActive);
1321 afx_msg
void OnMouseLeave();
1322 afx_msg
void OnNcMouseMove(UINT nHitTest, CPoint point);
1323 afx_msg
void OnNcMouseLeave();
1324 virtual
void PreSubclassWindow();
1325 afx_msg
void OnSysCommand(UINT nID, LPARAM lParam);
1326 afx_msg
void OnWindowPosChanging(WINDOWPOS* lpwndpos);
1327 afx_msg
void OnDisplayChange(UINT nBitsPerPixel,
int cx,
int cy);
1328 afx_msg
void OnShowWindow(BOOL bShow, UINT nStatus);
1329 afx_msg
void OnClose();
Template type 의 문자열 클래스
Definition FLString.h:34
콤보박스 클래스
Definition GUIComboBox.h:29
virtual bool IsCaptionVisible() const
캡션(타이틀 바)의 표시 여부를 반환합니다.
virtual void ShowCancelButton(bool bShow)
Cancel 버튼을 표시하거나 숨깁니다.
virtual int32_t GetIntervalSpacing() const
레이아웃 간 간격을 반환합니다.
virtual int32_t GetMinimizeWidth() const
최소화 상태일 때의 다이얼로그 너비를 반환합니다.
virtual void SetNoButtonName(Base::CFLString< wchar_t > strNoBtnName)
No 버튼에 표시될 텍스트를 설정합니다.
virtual void SetIntervalSpacing(int32_t i32IntervalSpacing)
레이아웃 간 간격을 설정합니다.
virtual void SetCloseButtonOnCaptionClickCount(int32_t i32ClickCount)
캡션 닫기 버튼의 클릭 횟수를 설정합니다.
virtual void ShowCaption(bool bShow=true)
캡션(타이틀 바)을 표시하거나 숨깁니다.
virtual void SetMinimizeWidth(int32_t i32Width=120)
최소화 상태일 때의 다이얼로그 너비를 설정합니다.
virtual void UpdateTheme()
현재 테마를 다이얼로그 및 하위 컨트롤에 적용합니다.
virtual void PostNcDestroy()
윈도우가 파괴된 후 호출되며 최종 정리 작업을 수행합니다.
virtual void ShowMinimizeButtonOnCaption(bool bShow=false)
캡션의 최소화 버튼을 표시하거나 숨깁니다.
virtual void SetCancelButtonName(Base::CFLString< wchar_t > strCancelBtnName)
Cancel 버튼에 표시될 텍스트를 설정합니다.
virtual void SetNoButtonCallback(CWndCtrlProcedure *pFunc, bool bAutoDestroy=true)
No 버튼 클릭 시 수행될 콜백 함수를 설정합니다.
virtual bool AdjustLayout()
다이얼로그 내 컨트롤 및 버튼의 레이아웃을 재계산하여 적용합니다.
CGUIDialog(UINT nIDTemplate, CWnd *pParent=NULL)
다이얼로그 템플릿 리소스 ID를 지정하는 생성자
virtual BOOL Create(UINT nIDTemplate, CWnd *pParentWnd=NULL) override
템플릿 리소스 ID로 다이얼로그를 모델리스 창으로 생성합니다.
virtual void EnableOkButton(bool bEnable)
Ok 버튼을 활성화하거나 비활성화합니다.
virtual CGUILayoutBase * GetAt(int32_t i32Index)
지정한 인덱스의 레이아웃을 반환합니다.
virtual void OnReceiveBroadcast(const Base::CBroadcastMessage *pMessage) override
브로드캐스트 메시지를 수신했을 때 호출됩니다.
virtual bool IsScrollEnabled() const
스크롤 사용 여부를 반환합니다.
virtual void ShowYesButton(bool bShow)
Yes 버튼을 표시하거나 숨깁니다.
virtual void EnableCancelButton(bool bEnable)
Cancel 버튼을 활성화하거나 비활성화합니다.
virtual void SetOkButtonCallback(CWndCtrlProcedure *pFunc, bool bAutoDestroy=true)
Ok 버튼 클릭 시 수행될 콜백 함수를 설정합니다.
virtual bool IsCancelButtonEnabled() const
Cancel 버튼의 활성화 여부를 반환합니다.
virtual bool SetFocusWnd(CGUIGridLayout *pLayout, int32_t i32Row, int32_t i32Col)
격자 레이아웃의 지정한 셀에 있는 컨트롤에 포커스를 설정합니다.
virtual void EnableScroll(bool bEnable, bool bIncludeButtons=true)
컨텐츠 영역의 스크롤 사용 여부를 설정합니다.
virtual BOOL CreateIndirect(LPCDLGTEMPLATE lpDialogTemplate, CWnd *pParentWnd=NULL, void *lpDialogInit=NULL) override
메모리상의 다이얼로그 템플릿으로 다이얼로그를 모델리스 창으로 생성합니다.
virtual void SetYesButtonCallback(CWndCtrlProcedure *pFunc, bool bAutoDestroy=true)
Yes 버튼 클릭 시 수행될 콜백 함수를 설정합니다.
virtual bool IsOkButtonEnabled() const
Ok 버튼의 활성화 여부를 반환합니다.
virtual int32_t GetMarginLeft() const
컨텐츠 영역의 왼쪽 여백을 반환합니다.
virtual void SetTitleHeight(int32_t i32Height)
타이틀(캡션) 영역의 높이를 설정합니다.
virtual BOOL Create(LPCTSTR lpszTemplateName, CWnd *pParentWnd=NULL) override
템플릿 리소스 이름으로 다이얼로그를 모델리스 창으로 생성합니다.
static CGUIDialog * CreateModelessDialog()
새 모델리스 다이얼로그 인스턴스를 생성합니다.
EButton
다이얼로그의 버튼
Definition GUIDialog.h:90
@ EButton_Yes
Yes 버튼
Definition GUIDialog.h:113
@ EButton_Cancel
Cancel 버튼
Definition GUIDialog.h:105
@ EButton_Ok
Ok 버튼
Definition GUIDialog.h:97
@ EButton_No
No 버튼
Definition GUIDialog.h:121
virtual int32_t GetTitleHeight() const
타이틀(캡션) 영역의 높이를 반환합니다.
virtual void SetCancelButtonCallback(CWndCtrlProcedure *pFunc, bool bAutoDestroy=true)
Cancel 버튼 클릭 시 수행될 콜백 함수를 설정합니다.
virtual INT_PTR DoModal() override
다이얼로그를 모달 창으로 표시하며, 창이 닫힐 때 반환합니다.
virtual Base::CFLString< wchar_t > GetTitle() const
다이얼로그의 타이틀을 반환합니다.
virtual void ShowCloseButtonOnCaption(bool bShow=true)
캡션의 닫기 버튼을 표시하거나 숨깁니다.
virtual void SetMarginLeft(int32_t i32Margin)
컨텐츠 영역의 왼쪽 여백을 설정합니다.
virtual int32_t GetMarginRight() const
컨텐츠 영역의 오른쪽 여백을 반환합니다.
virtual void SetOkButtonName(Base::CFLString< wchar_t > strOkBtnName)
Ok 버튼에 표시될 텍스트를 설정합니다.
virtual int32_t Add(CGUILayoutBase *pLayout)
다이얼로그에 레이아웃을 추가합니다.
CGUIDialog(const CGUIDialog &rhs)
복사 생성자
virtual int32_t GetMarginBottom() const
컨텐츠 영역의 아래쪽 여백을 반환합니다.
virtual bool SetCloseButtonOnCaptionCallback(CWndCtrlProcedure *pFunc, bool bAutoDestroy=true)
캡션의 닫기 버튼 클릭 시 수행될 콜백 함수를 설정합니다.
virtual bool IsYesButtonEnabled() const
Yes 버튼의 활성화 여부를 반환합니다.
virtual void ShowOkButton(bool bShow)
Ok 버튼을 표시하거나 숨깁니다.
virtual bool SetTitle(const Base::CFLString< wchar_t > &strTitle)
다이얼로그의 타이틀을 설정합니다.
virtual void SetMarginTop(int32_t i32Margin)
컨텐츠 영역의 위쪽 여백을 설정합니다.
virtual int32_t GetMarginTop() const
컨텐츠 영역의 위쪽 여백을 반환합니다.
virtual BOOL OnInitDialog() override
다이얼로그를 초기화합니다. 다이얼로그가 표시되기 전에 호출됩니다.
virtual bool IsCloseButtonOnCaptionVisible() const
캡션의 닫기 버튼 표시 여부를 반환합니다.
virtual void SetWindowSize(int32_t i32Width, int32_t i32Height)
다이얼로그의 창 크기를 설정합니다.
virtual BOOL CreateIndirect(HGLOBAL hDialogTemplate, CWnd *pParentWnd=NULL) override
다이얼로그 템플릿 핸들로 다이얼로그를 모델리스 창으로 생성합니다.
virtual void EnableNoButton(bool bEnable)
No 버튼을 활성화하거나 비활성화합니다.
virtual CWndCtrlProcedure * GetCloseButtonOnCaptionCallback() const
캡션 닫기 버튼의 콜백 함수를 반환합니다.
CGUIDialog(CWnd *pParent=nullptr)
기본 생성자
virtual void SetMarginRight(int32_t i32Margin)
컨텐츠 영역의 오른쪽 여백을 설정합니다.
virtual void ShowNoButton(bool bShow)
No 버튼을 표시하거나 숨깁니다.
virtual void SetYesButtonName(Base::CFLString< wchar_t > strYesBtnName)
Yes 버튼에 표시될 텍스트를 설정합니다.
virtual bool IsNoButtonEnabled() const
No 버튼의 활성화 여부를 반환합니다.
virtual int32_t GetCloseButtonOnCaptionClickCount() const
캡션의 닫기 버튼이 클릭된 횟수를 반환합니다.
virtual void SetMarginBottom(int32_t i32Margin)
컨텐츠 영역의 아래쪽 여백을 설정합니다.
virtual void EnableYesButton(bool bEnable)
Yes 버튼을 활성화하거나 비활성화합니다.
virtual void ClearCloseButtonOnCaptionClickCount()
캡션 닫기 버튼의 클릭 횟수를 0으로 초기화합니다.
virtual bool IsMinimizeButtonOnCaptionVisible() const
캡션의 최소화 버튼 표시 여부를 반환합니다.
CGUIDialog(LPCTSTR lpszTemplateName, CWnd *pParentWnd=NULL)
다이얼로그 템플릿 리소스 이름을 지정하는 생성자
문자열 편집 창 클래스
Definition GUIEditCtrl.h:30
저장할 데이터가 매우 많은 경우의 리스트 컨트롤 클래스
Definition GUIListCtrlMassive.h:39
Definition FLImagingBase/AESCryptography.h:18
Definition D2DObject.h:12
EOrientation
방향
Definition FLImagingGUI/DefinitionsGUI.h:10037
ELayout
다이얼로그의 레이아웃
Definition GUIDialog.h:45
@ BoxLayout
박스 레이아웃
Definition GUIDialog.h:61
@ GridLayout
격자 레이아웃
Definition GUIDialog.h:52