foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
cfg_dropdown_history

#include <dropdown_helper.h>

+ Inheritance diagram for cfg_dropdown_history:

Public Member Functions

 cfg_dropdown_history (const GUID &p_guid, unsigned p_max=10, const char *init_vals="")
 
void get_state (pfc::string_base &out) const
 
void set_state (const char *val)
 
- Public Member Functions inherited from _cfg_dropdown_history_base
 _cfg_dropdown_history_base (unsigned p_max)
 
bool add_item (const char *item)
 
bool add_item (const char *item, HWND combobox)
 
bool is_empty ()
 
bool on_context (HWND wnd, LPARAM coords)
 
void on_init (HWND ctrl, const char *initVal)
 
void setup_dropdown (HWND wnd)
 
void setup_dropdown (HWND wnd, UINT id)
 

Private Attributes

cfg_string m_state
 

Additional Inherited Members

- Public Types inherited from _cfg_dropdown_history_base
enum  { separator = '\n' }
 

Detailed Description

Definition at line 27 of file dropdown_helper.h.

Constructor & Destructor Documentation

cfg_dropdown_history::cfg_dropdown_history ( const GUID p_guid,
unsigned  p_max = 10,
const char *  init_vals = "" 
)
inline

Definition at line 29 of file dropdown_helper.h.

29 : _cfg_dropdown_history_base(p_max), m_state(p_guid, init_vals) {}
_cfg_dropdown_history_base(unsigned p_max)

Member Function Documentation

void cfg_dropdown_history::get_state ( pfc::string_base out) const
inlinevirtual

Implements _cfg_dropdown_history_base.

Definition at line 31 of file dropdown_helper.h.

31 {out = m_state;}
void cfg_dropdown_history::set_state ( const char *  val)
inlinevirtual

Implements _cfg_dropdown_history_base.

Definition at line 30 of file dropdown_helper.h.

30 {m_state = val;}

Field Documentation

cfg_string cfg_dropdown_history::m_state
private

Definition at line 33 of file dropdown_helper.h.


The documentation for this class was generated from the following file: