Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
dialogs.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Windows.h>
4 #include <string>
5 
6 #ifndef BLAM
7 #define BLAM
8 #endif
9 
10 namespace Blam
11 {
15  namespace Dialogs
16  {
27  BLAM void FirstbootDialogProcedure(HINSTANCE hInst, HWND hWnd);
28 
39  BLAM void AboutDialogProcedure(HINSTANCE hInst, HWND hWnd);
40 
49  BLAM void EngineInformationDialogProcedure(HINSTANCE hInst, HWND hWnd);
50 
61  BLAM void ErrorDialogProcedure(HINSTANCE hInst, HWND hWnd, const char* error_text);
62 
73  BLAM void FontTestDialogProcedure(HINSTANCE hInst, HWND hWnd);
74 
87  BLAM int ErrorDialogModal(HINSTANCE hInst, HWND hWnd, LPSTR error_text, bool allow_continue, bool allow_safemode);
88 
89  BLAM void SentryEventIdDialogProcedure(HINSTANCE instance_handle, HWND window_handle);
90  }
91 
95  namespace DialogHelpers
96  {
105  BLAM void DisableWindowThemes(HWND dialog);
106 
113  BLAM void DisableControlThemes(HWND dialog, int field);
114 
124  BLAM bool SetControlText(HWND dialog, int field, const char* text);
125 
135  BLAM std::string GetStringFromDword(DWORD dword);
136 
143  BLAM void DisableControl(HWND dialog, int field);
144 
151  BLAM void EnableControl(HWND dialog, int field);
152 
156  namespace ComboBox
157  {
166  BLAM void AddItemToComboBox(HWND hDlg, int control_id, const char* item, int value);
167 
175  BLAM void SetComboBoxSelectedItem(HWND hDlg, int control_id, const char* item);
176  }
177  }
178 }
Blam
Namespace surrounding all major engine components.
Definition: blam_api.h:28
Blam::DialogHelpers::SetControlText
BLAM bool SetControlText(HWND dialog, int field, const char *text)
Sets the text of the specified control.
Definition: dialog_helpers.cpp:19
Blam::Dialogs::AboutDialogProcedure
BLAM void AboutDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the About dialog.
Definition: about.cpp:14
hInst
HINSTANCE hInst
Application instance handle.
Definition: main.cpp:69
Blam::Dialogs::SentryEventIdDialogProcedure
BLAM void SentryEventIdDialogProcedure(HINSTANCE instance_handle, HWND window_handle)
Definition: sentry_event_notice.cpp:64
dialogs.h
Blam::Dialogs::FirstbootDialogProcedure
BLAM void FirstbootDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the Firstboot dialog.
Definition: firstboot.cpp:15
Blam::DialogHelpers::EnableControl
BLAM void EnableControl(HWND dialog, int field)
Enables the specified control.
Definition: dialog_helpers.cpp:33
IDC_AB_COPYRIGHT
#define IDC_AB_COPYRIGHT
Definition: resource.h:71
Blam::Config::GetConfig
BLAM ConfigFile * GetConfig()
Retrieves the engine configuration file.
Definition: compat.cpp:5
Blam::DialogHelpers::DisableControl
BLAM void DisableControl(HWND dialog, int field)
Disables the specified control.
Definition: dialog_helpers.cpp:26
AboutDialog
INT_PTR CALLBACK AboutDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Main dialog procedure for About dialog.
Definition: about.cpp:48
IDC_AB_VERSION_TITLE
#define IDC_AB_VERSION_TITLE
Definition: resource.h:72
Blam::DialogHelpers::ComboBox::SetComboBoxSelectedItem
BLAM void SetComboBoxSelectedItem(HWND hDlg, int control_id, const char *item)
Change the selected item in a ComboBox.
Definition: dialog_helpers.cpp:60
Blam::DialogHelpers::DisableWindowThemes
BLAM void DisableWindowThemes(HWND dialog)
Disables visual themes for the specified dialog ().
Definition: dialog_helpers.cpp:7
NULL
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
Blam::DialogHelpers::GetStringFromDword
BLAM std::string GetStringFromDword(DWORD dword)
Converts a DWORD to a std::string.
Definition: dialog_helpers.cpp:41
IDD_ABOUTBOX
#define IDD_ABOUTBOX
Definition: resource.h:11
resource.h
Blam::DialogHelpers::DisableControlThemes
BLAM void DisableControlThemes(HWND dialog, int field)
Disables visual themes for the specified control.
Definition: dialog_helpers.cpp:13
Blam::Dialogs::ErrorDialogProcedure
BLAM void ErrorDialogProcedure(HINSTANCE hInst, HWND hWnd, const char *error_text)
Dialog procedure for the Error dialog.
Definition: error_notice.cpp:36
Blam::DialogHelpers::ComboBox::AddItemToComboBox
BLAM void AddItemToComboBox(HWND hDlg, int control_id, const char *item, int value)
Adds an item to the specified ComboBox control.
Definition: dialog_helpers.cpp:50
BLAM
#define BLAM
Definition: dialogs.h:7
ab_instance_handle
HINSTANCE ab_instance_handle
Local copy of application instance handle.
Definition: about.cpp:9
value
Offset font vertically by altering the io Font DisplayOffset value
Definition: README.txt:67
Blam::Dialogs::EngineInformationDialogProcedure
BLAM void EngineInformationDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the Engine Information dialog.
Definition: engine_information.cpp:16
config.h
Blam::Dialogs::FontTestDialogProcedure
BLAM void FontTestDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the Font Test dialog.
Definition: font_test.cpp:14
Blam::Dialogs::ErrorDialogModal
BLAM int ErrorDialogModal(HINSTANCE hInst, HWND hWnd, LPSTR error_text, bool allow_continue, bool allow_safemode)
Displays the Error dialog as a modal dialog - in other words, it halts engine execution.
Definition: error_notice.cpp:23
IDC_AB_ENGINE_INFO
#define IDC_AB_ENGINE_INFO
Definition: resource.h:74