Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Option to disable CResizableLayout::HandleNcCalcSize (help elimin… #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ResizableLib/ResizableLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down