Skip to content

Commit dd2088d

Browse files
committed
Fixed issue #1248 by removing own WMPrintClient() method.
1 parent 10f854d commit dd2088d

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

Source/VirtualTrees.BaseTree.pas

-33
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,6 @@ TBaseVirtualTree = class abstract(TVTBaseAncestor)
879879
procedure WMPaint(var Message: TWMPaint); message WM_PAINT;
880880
procedure WMPaste(var Message: TWMPaste); message WM_PASTE;
881881
procedure WMPrint(var Message: TWMPrint); message WM_PRINT;
882-
procedure WMPrintClient(var Message: TWMPrintClient); message WM_PRINTCLIENT;
883882
procedure WMRButtonDblClk(var Message: TWMRButtonDblClk); message WM_RBUTTONDBLCLK;
884883
procedure WMRButtonDown(var Message: TWMRButtonDown); message WM_RBUTTONDOWN;
885884
procedure WMRButtonUp(var Message: TWMRButtonUp); message WM_RBUTTONUP;
@@ -7686,38 +7685,6 @@ procedure TBaseVirtualTree.WMPrint(var Message: TWMPrint);
76867685

76877686
//----------------------------------------------------------------------------------------------------------------------
76887687

7689-
procedure TBaseVirtualTree.WMPrintClient(var Message: TWMPrintClient);
7690-
7691-
var
7692-
Window: TRect;
7693-
Target: TPoint;
7694-
Canvas: TCanvas;
7695-
7696-
begin
7697-
// Draw only if the window is visible or visibility is not required.
7698-
if ((Message.Flags and PRF_CHECKVISIBLE) = 0) or IsWindowVisible(Handle) then
7699-
begin
7700-
// Determine area of the entire tree to be displayed in the control.
7701-
Window := ClientRect;
7702-
Target := Window.TopLeft;
7703-
7704-
// The Window rectangle is given in client coordinates. We have to convert it into
7705-
// a sliding window of the tree image.
7706-
OffsetRect(Window, FEffectiveOffsetX, -FOffsetY);
7707-
7708-
Canvas := TCanvas.Create;
7709-
try
7710-
Canvas.Handle := Message.DC;
7711-
PaintTree(Canvas, Window, Target, [poBackground, poDrawFocusRect, poDrawDropMark, poDrawSelection, poGridLines]);
7712-
finally
7713-
Canvas.Handle := 0;
7714-
Canvas.Free;
7715-
end;
7716-
end;
7717-
end;
7718-
7719-
//----------------------------------------------------------------------------------------------------------------------
7720-
77217688
procedure TBaseVirtualTree.WMRButtonDblClk(var Message: TWMRButtonDblClk);
77227689

77237690
var

0 commit comments

Comments
 (0)