Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
Blam::DialogHelpers::ComboBox Namespace Reference

Helpers relating to a ComboBox control. More...

Functions

BLAM void AddItemToComboBox (HWND hDlg, int control_id, const char *item, int value)
 Adds an item to the specified ComboBox control. More...
 
BLAM void SetComboBoxSelectedItem (HWND hDlg, int control_id, const char *item)
 Change the selected item in a ComboBox. More...
 

Detailed Description

Helpers relating to a ComboBox control.

Function Documentation

◆ AddItemToComboBox()

void Blam::DialogHelpers::ComboBox::AddItemToComboBox ( HWND  hDlg,
int  control_id,
const char *  item,
int  value 
)

Adds an item to the specified ComboBox control.

Parameters
hDlg- The dialog containing the control.
control_id- The control of the ComboBox.
item- The name of the item to add to the ComboBox.
value- The value to apply to the ComboBox item.
+ Here is the caller graph for this function:

◆ SetComboBoxSelectedItem()

void Blam::DialogHelpers::ComboBox::SetComboBoxSelectedItem ( HWND  hDlg,
int  control_id,
const char *  item 
)

Change the selected item in a ComboBox.

Parameters
hDlg- The dialog containing the control.
control_id- The control of the ComboBox.
item- The name of the item to select.
+ Here is the caller graph for this function: