Fancy theming of ListCtrls: explorer style (windows vista+)

This requires that we ev.Skip() EVT_MOTION, otherwise the list becomes very sluggish to update.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1611 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2011-01-10 22:08:17 +00:00
parent 9cf9277082
commit befa10125b
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -23,6 +23,13 @@ ItemList::ItemList(Window* parent, int id, long additional_style, bool multi_sel
il->Add(load_resource_image(_("sort_asc")), Color(255,0,255));
il->Add(load_resource_image(_("sort_desc")), Color(255,0,255));
AssignImageList(il, wxIMAGE_LIST_SMALL);
// Theming things wx fails to do for us
#if defined(__WXMSW__) && defined(LVS_EX_DOUBLEBUFFER)
// Fancy theming (on windows)
enable_themed_selection_rectangle(this);
// Use double buffering
ListView_SetExtendedListViewStyle(GetHwnd(), ListView_GetExtendedListViewStyle(GetHwnd()) | LVS_EX_DOUBLEBUFFER);
#endif
}
// ----------------------------------------------------------------------------- : ItemList : Selection