mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user