Blamite Game Engine - blam!  00296.01.12.21.0102.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, LPSTR 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, LPSTR 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, char* item, int value);
167 
175  BLAM void SetComboBoxSelectedItem(HWND hDlg, int control_id, char* item);
176  }
177  }
178 }
Blam
Namespace surrounding all major engine components.
Definition: blam_api.h:18
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:65
Blam::Dialogs::SentryEventIdDialogProcedure
BLAM void SentryEventIdDialogProcedure(HINSTANCE instance_handle, HWND window_handle)
Definition: sentry_event_notice.cpp:64
Blam::DialogHelpers::SetControlText
BLAM bool SetControlText(HWND dialog, int field, LPSTR text)
Sets the text of the specified control.
Definition: dialog_helpers.cpp:19
Blam::Dialogs::FirstbootDialogProcedure
BLAM void FirstbootDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the Firstboot dialog.
Definition: firstboot.cpp:15
Blam::DialogHelpers::ComboBox::AddItemToComboBox
BLAM void AddItemToComboBox(HWND hDlg, int control_id, char *item, int value)
Adds an item to the specified ComboBox control.
Definition: dialog_helpers.cpp:50
Blam::DialogHelpers::EnableControl
BLAM void EnableControl(HWND dialog, int field)
Enables the specified control.
Definition: dialog_helpers.cpp:33
Blam::DialogHelpers::DisableControl
BLAM void DisableControl(HWND dialog, int field)
Disables the specified control.
Definition: dialog_helpers.cpp:26
Blam::DialogHelpers::DisableWindowThemes
BLAM void DisableWindowThemes(HWND dialog)
Disables visual themes for the specified dialog ().
Definition: dialog_helpers.cpp:7
Blam::DialogHelpers::GetStringFromDword
BLAM std::string GetStringFromDword(DWORD dword)
Converts a DWORD to a std::string.
Definition: dialog_helpers.cpp:41
Blam::DialogHelpers::DisableControlThemes
BLAM void DisableControlThemes(HWND dialog, int field)
Disables visual themes for the specified control.
Definition: dialog_helpers.cpp:13
Blam::DialogHelpers::ComboBox::SetComboBoxSelectedItem
BLAM void SetComboBoxSelectedItem(HWND hDlg, int control_id, char *item)
Change the selected item in a ComboBox.
Definition: dialog_helpers.cpp:60
BLAM
#define BLAM
Definition: dialogs.h:7
Blam::Dialogs::EngineInformationDialogProcedure
BLAM void EngineInformationDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the Engine Information dialog.
Definition: engine_information.cpp:16
Blam::Dialogs::FontTestDialogProcedure
BLAM void FontTestDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the Font Test dialog.
Definition: font_test.cpp:14
Blam::Dialogs::ErrorDialogProcedure
BLAM void ErrorDialogProcedure(HINSTANCE hInst, HWND hWnd, LPSTR error_text)
Dialog procedure for the Error dialog.
Definition: error_notice.cpp:36
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