Exemplo n.º 1
0
void selection_properties_t::notify_on_create()
{
	pfc::list_t<t_column> columns;
	columns.add_item(t_column("Field", m_column_name_width, 0));
	columns.add_item(t_column("Value", m_column_field_width, 1));
	set_columns(columns);
	set_group_count(m_show_group_titles ? 1 : 0);

	register_callback();
	static_api_ptr_t<play_callback_manager>()->register_callback(this, play_callback::flag_on_playback_stop|play_callback::flag_on_playback_new_track, true);
	static_api_ptr_t<metadb_io_v3>()->register_callback(this);
	refresh_contents();

	if (0 == g_windows.add_item(this))
		g_message_window.create(NULL);
}
Exemplo n.º 2
0
	void playlist_switcher_t::refresh_columns()
	{
		set_columns(pfc::list_single_ref_t<t_column>(t_column("Name", 100)));
	}