foobar2000 SDK  2015-08-03
Functions
dropdown_helper.cpp File Reference

Go to the source code of this file.

Functions

static void g_setup_dropdown_fromlist (HWND wnd, const pfc::ptr_list_t< char > &list)
 

Function Documentation

static void g_setup_dropdown_fromlist ( HWND  wnd,
const pfc::ptr_list_t< char > &  list 
)
static

Definition at line 35 of file dropdown_helper.cpp.

36 {
37  t_size n, m = list.get_count();
38  uSendMessage(wnd,CB_RESETCONTENT,0,0);
39  for(n=0;n<m;n++) {
40  uSendMessageText(wnd,CB_ADDSTRING,0,list[n]);
41  }
42 }
LRESULT SHARED_EXPORT uSendMessageText(HWND wnd, UINT msg, WPARAM wp, const char *text)
t_size get_count() const
Definition: list.h:365
size_t t_size
Definition: int_types.h:48