Applied patch [ 1218833 ] [wxMSW] wxListBox optimisation for XP
Also removed temporary fix to hardwire listbox background colour git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -151,6 +151,13 @@ protected:
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
// under XP when using "transition effect for menus and tooltips" if we
|
||||
// return true for WM_PRINTCLIENT here then it causes noticable slowdown
|
||||
virtual bool MSWShouldPropagatePrintChild()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
// control items
|
||||
wxListBoxItemsArray m_aItems;
|
||||
|
@@ -391,6 +391,14 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
// some controls (e.g. wxListBox) need to set the return value themselves
|
||||
//
|
||||
// return true to let parent handle it if we don't, false otherwise
|
||||
virtual bool MSWShouldPropagatePrintChild()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Responds to colour changes: passes event on to children.
|
||||
void OnSysColourChanged(wxSysColourChangedEvent& event);
|
||||
|
Reference in New Issue
Block a user