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:
Julian Smart
1999-03-23 09:14:07 +00:00
parent 879ba15fba
commit d13c32e99d
2 changed files with 5 additions and 2 deletions

View File

@@ -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();

View File

@@ -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 )