Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
Blam::DialogHelpers Namespace Reference

Namespace containing helper functions for Win32 dialogs. More...

Namespaces

 ComboBox
 Helpers relating to a ComboBox control.
 

Functions

BLAM void DisableWindowThemes (HWND dialog)
 Disables visual themes for the specified dialog (). More...
 
BLAM void DisableControlThemes (HWND dialog, int field)
 Disables visual themes for the specified control. More...
 
BLAM bool SetControlText (HWND dialog, int field, LPSTR text)
 Sets the text of the specified control. More...
 
BLAM std::string GetStringFromDword (DWORD dword)
 Converts a DWORD to a std::string. More...
 
BLAM void DisableControl (HWND dialog, int field)
 Disables the specified control. More...
 
BLAM void EnableControl (HWND dialog, int field)
 Enables the specified control. More...
 

Detailed Description

Namespace containing helper functions for Win32 dialogs.

Function Documentation

◆ DisableControl()

void Blam::DialogHelpers::DisableControl ( HWND  dialog,
int  field 
)

Disables the specified control.

Parameters
dialog- The dialog containing the control.
field- The control to disable.

◆ DisableControlThemes()

void Blam::DialogHelpers::DisableControlThemes ( HWND  dialog,
int  field 
)

Disables visual themes for the specified control.

Parameters
dialog- The dialog containing the control to disable themes for.
field- The control to disable visual themes of.

◆ DisableWindowThemes()

void Blam::DialogHelpers::DisableWindowThemes ( HWND  dialog)

Disables visual themes for the specified dialog ().

Note
Applies to dialog frames only. To disable visual themes for controls, use Blam::DialogHelpers::DisableControlThemes
Parameters
dialog- The dialog to disable visual themes for.

◆ EnableControl()

void Blam::DialogHelpers::EnableControl ( HWND  dialog,
int  field 
)

Enables the specified control.

Parameters
dialog- The dialog containing the control.
field- The control to enable.

◆ GetStringFromDword()

std::string Blam::DialogHelpers::GetStringFromDword ( DWORD  dword)

Converts a DWORD to a std::string.

Parameters
dword- The DWORD to convert to a string.
Returns
The resulting string.
Todo:
Move this to #BlamStrings::Converters.

◆ SetControlText()

bool Blam::DialogHelpers::SetControlText ( HWND  dialog,
int  field,
LPSTR  text 
)

Sets the text of the specified control.

Parameters
dialog- The dialog containing the control.
field- The control to change the text of.
text- The text to apply to the control.
Returns
Whether or not the text was applied successfully.