From 311747971ba04534d2141df0f9ae02929559e56e Mon Sep 17 00:00:00 2001 From: Blonder Date: Tue, 3 Sep 2019 10:23:55 +0200 Subject: [PATCH] Add Option to disable CResizableLayout::HandleNcCalcSize (help eliminate flickering), because of e.g. VISTA redraw problems. --- ResizableLib/ResizableLayout.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ResizableLib/ResizableLayout.cpp b/ResizableLib/ResizableLayout.cpp index 8550201..738a7cb 100644 --- a/ResizableLib/ResizableLayout.cpp +++ b/ResizableLib/ResizableLayout.cpp @@ -846,6 +846,13 @@ void CResizableLayout::MakeResizable(LPCREATESTRUCT lpCreateStruct) const */ void CResizableLayout::HandleNcCalcSize(BOOL bAfterDefault, LPNCCALCSIZE_PARAMS lpncsp, LRESULT &lResult) { +#ifdef DISABLE_ELIMINATE_FLICKERING +// 3-Feb-09: Disable help eliminate flickering, because of e.g. VISTA redraw problems. +// Paolo posted that it is not really necessary (only on old systems with slow graphic cards for redrawing/anti flickering) + UNREFERENCED_PARAMETER( bAfterDefault ); + UNREFERENCED_PARAMETER( lpncsp ); + UNREFERENCED_PARAMETER( lResult ); +#else // prevent useless complication when size is not changing // prevent recursion when resetting the window region (see below) if ((lpncsp->lppos->flags & SWP_NOSIZE)