From 91ac2d856c5ee7a6f86a6331a81d0bd26ecfb5b0 Mon Sep 17 00:00:00 2001 From: blikblum Date: Mon, 15 Dec 2008 22:07:19 +0000 Subject: [PATCH] * Skip unecessary call to SetWindowPos git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@635 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/virtualtreeview-unstable/VirtualTrees.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/virtualtreeview-unstable/VirtualTrees.pas b/components/virtualtreeview-unstable/VirtualTrees.pas index dba040b8e..a06e4da17 100644 --- a/components/virtualtreeview-unstable/VirtualTrees.pas +++ b/components/virtualtreeview-unstable/VirtualTrees.pas @@ -10333,8 +10333,10 @@ begin if Treeview.HandleAllocated then begin Treeview.UpdateHeaderRect; - SetWindowPos(Treeview.Handle, 0, 0, 0, 0, 0, SWP_FRAMECHANGED or SWP_NOMOVE or SWP_NOACTIVATE or SWP_NOOWNERZORDER or - SWP_NOSENDCHANGING or SWP_NOSIZE or SWP_NOZORDER); + //lclheader + //not necessary since header is draw inside client area + //SetWindowPos(Treeview.Handle, 0, 0, 0, 0, 0, SWP_FRAMECHANGED or SWP_NOMOVE or SWP_NOACTIVATE or SWP_NOOWNERZORDER or + // SWP_NOSENDCHANGING or SWP_NOSIZE or SWP_NOZORDER); end; end;