WS_CLIPCHILDREN is not always enabled in wxNotebook (caused painting problems).
Memory leak checking in app.cpp (wxMSW) now does checking from last checkpoint. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -557,7 +557,7 @@ void wxApp::CleanUp()
|
|||||||
// blocks that aren't part of the wxDebugContext itself,
|
// blocks that aren't part of the wxDebugContext itself,
|
||||||
// as a special case. Then when dumping we need to ignore
|
// as a special case. Then when dumping we need to ignore
|
||||||
// wxDebugContext, too.
|
// wxDebugContext, too.
|
||||||
if (wxDebugContext::CountObjectsLeft() > 0)
|
if (wxDebugContext::CountObjectsLeft(TRUE) > 0)
|
||||||
{
|
{
|
||||||
wxLogDebug("There were memory leaks.");
|
wxLogDebug("There were memory leaks.");
|
||||||
wxDebugContext::Dump();
|
wxDebugContext::Dump();
|
||||||
|
@@ -133,7 +133,10 @@ bool wxNotebook::Create(wxWindow *parent,
|
|||||||
// style
|
// style
|
||||||
m_windowStyle = style | wxTAB_TRAVERSAL;
|
m_windowStyle = style | wxTAB_TRAVERSAL;
|
||||||
|
|
||||||
long tabStyle = WS_CHILD | WS_VISIBLE | WS_TABSTOP | TCS_TABS | WS_CLIPCHILDREN;
|
long tabStyle = WS_CHILD | WS_VISIBLE | WS_TABSTOP | TCS_TABS;
|
||||||
|
|
||||||
|
if (m_windowStyle & wxCLIP_CHILDREN)
|
||||||
|
tabStyle |= WS_CLIPCHILDREN;
|
||||||
if ( m_windowStyle & wxTC_MULTILINE )
|
if ( m_windowStyle & wxTC_MULTILINE )
|
||||||
tabStyle |= TCS_MULTILINE;
|
tabStyle |= TCS_MULTILINE;
|
||||||
if ( m_windowStyle & wxBORDER )
|
if ( m_windowStyle & wxBORDER )
|
||||||
|
Reference in New Issue
Block a user