GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseDialogBox.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace gui_framework
8{
11 public BaseComposite,
14 {
15 public:
16 enum class messageBoxType
17 {
18 ok = MB_OK,
19 okCancel,
20 abortRetryIgnore,
21 yesNoCancel,
22 yesNo,
23 retryCancel,
24 cancelTryContinue
25 };
26
28 {
29 ok = IDOK,
30 cancel,
31 abort,
32 retry,
33 ignore,
34 yes,
35 no,
36 tryAgain = IDTRYAGAIN,
37 continueResponse
38 };
39
40 public:
41 static messageBoxResponse createMessageBox(const std::wstring& text, const std::wstring& title, messageBoxType type, BaseComposite* parent = nullptr, bool helpButton = false);
42
43 protected:
46
47 public:
52 BaseDialogBox(const std::wstring& className, const std::wstring& title, const utility::ComponentSettings& settings, const std::string& dialogBoxFunctionName = "", const std::string& moduleName = "", uint16_t smallIconResource = NULL, uint16_t largeIconResource = NULL);
53
54 int showDialog();
55
58 virtual size_t getHash() const override = 0;
59
60 virtual ~BaseDialogBox();
61 };
62}
#define GUI_FRAMEWORK_API
Base class for all windows that has children windows.
Base class for all dialog boxes.
virtual size_t getHash() const override=0
Used as key in creators.