1: /*
2: ============================================================================
3: xoblite™ -> an advanced "extended shell" for Microsoft® Windows® 11
4: Copyright © 2002-2026 Karl Henrik Henriksson [qwilk/@xoblite]
5: Copyright © 2001-2004 The Blackbox for Windows Development Team
6: http://xoblite.net/ + https://github.com/xoblite/
7: ============================================================================
8:
9: Blackbox for Windows is free software, released under the
10: GNU General Public License (GPL version 2 or later), with an extension
11: that allows linking of proprietary modules under a controlled interface.
12: What this means is that plugins etc. are allowed to be released
13: under any license the author wishes. Please note, however, that the
14: original Blackbox gradient math code used in Blackbox for Windows
15: is available under the BSD license.
16:
17: http://www.fsf.org/licenses/gpl.html
18: http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface
19: http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5
20:
21: This program is distributed in the hope that it will be useful,
22: but WITHOUT ANY WARRANTY; without even the implied warranty of
23: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24: GNU General Public License for more details.
25:
26: For additional license information, please read the included license.html.
27:
28: ============================================================================
29: */
30:
31: #ifndef __POPUPDIALOG_H
32: #define __POPUPDIALOG_H
33:
34: #include "..\API\BBApi.h"
35: #include "..\Settings\Settings.h"
36: #include "..\Graphics\BImage.h"
37: #include "..\Sounds\Sounds.h"
38: #include "..\Resources\resource.h"
39:
40: //===========================================================================
41:
42: typedef struct messageItem
43: {
44: char title[MAX_LINE_LENGTH];
45: char body[MAX_LINE_LENGTH*10];
46: LPCSTR icon;
47: char url[MAX_LINE_LENGTH];
48: } messageItem;
49:
50: //====================
51:
52: class PopupDialog
53: {
54: public:
55: PopupDialog(HINSTANCE hInstance);
56: ~PopupDialog();
57:
58: friend LRESULT CALLBACK PopupDialogProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
59:
60: void UpdatePopupDialog();
61: void GetDimensions();
62:
63: //====================
64:
65: HINSTANCE hPopupDialogInstance;
66: HWND hBlackboxWnd; // Blackbox window handle
67: HWND hPopupDialogWnd; // PopupDialog window handle
68: HDC cachedBackground;
69:
70: int ScreenWidth, ScreenHeight;
71: int PopupDialogX, PopupDialogY, PopupDialogWidth, PopupDialogHeight;
72: int PopupDialogTitleHeight, PopupDialogYesNoHeight;
73: bool PopupDialogHidden;
74: bool PopupTypeYesNo;
75:
76: int dynamicFontHeight;
77: int popupIconSize;
78: RECT popupTitleTextRect, popupBodyTextRect;
79: RECT popupYesRect, popupNoRect;
80:
81: messageItem message;
82: };
83:
84: //===========================================================================
85:
86: #endif /* __POPUPDIALOG_H */
87: