File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2538,7 +2538,6 @@ TBaseVirtualTree = class(TCustomControl)
25382538 procedure WMThemeChanged(var Message: TMessage); message WM_THEMECHANGED;
25392539 procedure WMVScroll(var Message: TWMVScroll); message WM_VSCROLL;
25402540 function GetRangeX: Cardinal;
2541- function GetDoubleBuffered: Boolean;
25422541 procedure SetDoubleBuffered(const Value: Boolean);
25432542 function GetVclStyleEnabled: Boolean; inline;
25442543 procedure SetOnPrepareButtonImages(const Value: TVTPrepareButtonImagesEvent);
@@ -2721,6 +2720,7 @@ TBaseVirtualTree = class(TCustomControl)
27212720 ImgCheckState: TCheckState = csUncheckedNormal; ImgEnabled: Boolean = True): Integer; virtual;
27222721 function GetColumnClass: TVirtualTreeColumnClass; virtual;
27232722 function GetDefaultHintKind: TVTHintKind; virtual;
2723+ function GetDoubleBuffered: Boolean; {$if CompilerVersion >= 36} override; {$ifend}
27242724 function GetHeaderClass: TVTHeaderClass; virtual;
27252725 function GetHintWindowClass: THintWindowClass; virtual;
27262726 procedure GetImageIndex(var Info: TVTPaintInfo; Kind: TVTImageKind; InfoIndex: TVTImageInfoIndex); virtual;
@@ -17823,6 +17823,12 @@ procedure TBaseVirtualTree.WMPrintClient(var Message: TWMPrintClient);
1782317823 Canvas: TCanvas;
1782417824
1782517825begin
17826+ if RTLVersion >= 36 then // see issue #1248, for newer Delphi versions use inherited version of WMPrintClient()
17827+ begin
17828+ inherited;
17829+ exit;
17830+ end;
17831+
1782617832 // Draw only if the window is visible or visibility is not required.
1782717833 if ((Message.Flags and PRF_CHECKVISIBLE) = 0) or IsWindowVisible(Handle) then
1782817834 begin
You can’t perform that action at this time.
0 commit comments