Added a Refresh() to SetSelection() so programmatic tab changing works

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-11-23 20:12:45 +00:00
parent 57350623b6
commit 00bb90a5ef
2 changed files with 2 additions and 0 deletions

View File

@@ -216,6 +216,7 @@ int wxNotebook::SetSelection(int nPage)
ChangePage(m_nSelection, nPage); ChangePage(m_nSelection, nPage);
SetControl32BitValue( (ControlHandle) m_macControl , m_nSelection + 1 ) ; SetControl32BitValue( (ControlHandle) m_macControl , m_nSelection + 1 ) ;
Refresh();
return m_nSelection; return m_nSelection;
} }

View File

@@ -216,6 +216,7 @@ int wxNotebook::SetSelection(int nPage)
ChangePage(m_nSelection, nPage); ChangePage(m_nSelection, nPage);
SetControl32BitValue( (ControlHandle) m_macControl , m_nSelection + 1 ) ; SetControl32BitValue( (ControlHandle) m_macControl , m_nSelection + 1 ) ;
Refresh();
return m_nSelection; return m_nSelection;
} }