[Commits] (davids) Windows native dbl-buffering support, take 3
commits at osafoundation.org
commits at osafoundation.org
Fri Sep 24 00:51:35 PDT 2004
Commit by: davids
Modified files:
internal/wxPython-2.5/src/msw/toplevel.cpp 2.5 2.6
Log message:
Windows native dbl-buffering support, take 3
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/internal/wxPython-2.5/src/msw/toplevel.cpp.diff?r1=text&tr1=2.5&r2=text&tr2=2.6
Index: internal/wxPython-2.5/src/msw/toplevel.cpp
diff -u internal/wxPython-2.5/src/msw/toplevel.cpp:2.5 internal/wxPython-2.5/src/msw/toplevel.cpp:2.6
--- internal/wxPython-2.5/src/msw/toplevel.cpp:2.5 Wed Sep 22 14:34:01 2004
+++ internal/wxPython-2.5/src/msw/toplevel.cpp Fri Sep 24 00:51:34 2004
@@ -4,7 +4,7 @@
// Author: Vadim Zeitlin
// Modified by:
// Created: 24.09.01
-// RCS-ID: $Id: toplevel.cpp,v 2.5 2004/09/22 21:34:01 heikki Exp $
+// RCS-ID: $Id: toplevel.cpp,v 2.6 2004/09/24 07:51:34 davids Exp $
// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
// License: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@@ -221,13 +221,13 @@
// there is no taskbar under CE, so omit all this
#if !defined(__WXWINCE__)
-#if 0
+#if 1
// take advantage of WinXP native window double-buffering
if (wxApp::GetComCtl32Version() >= 500)
- if (GetKeyState( VK_CAPITAL ) == 0)
+// if (GetKeyState( VK_CAPITAL ) == 0)
{
*exflags |= 0x02000000; // WS_EX_COMPOSITED
- MessageBox( NULL, _T(""), _T("TopLevel::MSWGetStyle - exStyle hack"), MB_OK );
+// MessageBox( NULL, _T(""), _T("TopLevel::MSWGetStyle - exStyle hack"), MB_OK );
}
#endif
@@ -439,7 +439,7 @@
wxSize sz(size);
#endif
-#if 0
+#if 1
// cannot let this flag go through...
if (! IsTopLevel())
exflags &= ~0x02000000; // ~WS_EX_COMPOSITED
More information about the Commits
mailing list