Use wxBufferedPaintDC to implement double buffering in wxPG.
This also fixes drawing the PG when buffer is not available and there is necessary do draw directly on window DC. wxPropertyGrid::DrawItems method is simplified and wxPropertyGrid::DoDrawItems method is reimplemented since its 3-rd argument (isBuffered) is unneeded anymore. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2138,9 +2138,28 @@ protected:
|
||||
*/
|
||||
void CorrectEditorWidgetPosY();
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxDEPRECATED_MSG("use two-argument function DoDrawItems(dc,rect)")
|
||||
int DoDrawItems( wxDC& dc,
|
||||
const wxRect* itemsRect,
|
||||
bool isBuffered ) const
|
||||
{
|
||||
return DoDrawItemsBase(dc, itemsRect, isBuffered);
|
||||
}
|
||||
|
||||
int DoDrawItems( wxDC& dc,
|
||||
const wxRect* itemsRect ) const
|
||||
{
|
||||
return DoDrawItemsBase(dc, itemsRect, true);
|
||||
}
|
||||
|
||||
int DoDrawItemsBase( wxDC& dc,
|
||||
const wxRect* itemsRect,
|
||||
bool isBuffered ) const;
|
||||
#else
|
||||
int DoDrawItems( wxDC& dc,
|
||||
const wxRect* itemsRect ) const;
|
||||
#endif
|
||||
|
||||
/** Draws an expand/collapse (ie. +/-) button.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user