Pixel corrections for wxListCtrl

Speedup for wxTreeCtrl::Insert()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-12-01 17:41:58 +00:00
parent e0e680d2e3
commit 3db7be8036
6 changed files with 79 additions and 79 deletions

View File

@@ -1478,13 +1478,13 @@ void wxWindow::SetClientSize( int width, int height )
dh += 2 * viewport_class->ythickness;
}
if (GTK_WIDGET_VISIBLE(vscrollbar))
if (scroll_window->vscrollbar_visible)
{
dw += vscrollbar->allocation.width;
dw += scroll_class->scrollbar_spacing;
}
if (GTK_WIDGET_VISIBLE(hscrollbar))
if (scroll_window->hscrollbar_visible)
{
dh += hscrollbar->allocation.height;
dw += scroll_class->scrollbar_spacing;
@@ -1543,14 +1543,14 @@ void wxWindow::GetClientSize( int *width, int *height ) const
dh += 2 * viewport_class->ythickness;
}
if (GTK_WIDGET_VISIBLE(vscrollbar))
if (scroll_window->vscrollbar_visible)
{
// dw += vscrollbar->allocation.width;
dw += 15; // range.slider_width = 11 + 2*2pts edge
dw += scroll_class->scrollbar_spacing;
}
if (GTK_WIDGET_VISIBLE(hscrollbar))
if (scroll_window->hscrollbar_visible)
{
// dh += hscrollbar->allocation.height;
dh += 15;