added wxBookCtrl::ChangeSelection() which is the same as SetSelection() but doesn't send the page change events (second part of patch 1553551)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -243,6 +243,22 @@ int wxNotebook::SetSelection( size_t nPage )
|
||||
return nPage;
|
||||
} // end of wxNotebook::SetSelection
|
||||
|
||||
int wxNotebook::ChangeSelection( size_t nPage )
|
||||
{
|
||||
wxCHECK_MSG( IS_VALID_PAGE(nPage), wxNOT_FOUND, wxT("notebook page out of range") );
|
||||
|
||||
if (nPage != (size_t)m_nSelection)
|
||||
{
|
||||
::WinSendMsg( GetHWND()
|
||||
,BKM_TURNTOPAGE
|
||||
,MPFROMLONG((ULONG)m_alPageId[nPage])
|
||||
,(MPARAM)0
|
||||
);
|
||||
}
|
||||
m_nSelection = nPage;
|
||||
return nPage;
|
||||
}
|
||||
|
||||
bool wxNotebook::SetPageText( size_t nPage,
|
||||
const wxString& rsStrText )
|
||||
{
|
||||
|
Reference in New Issue
Block a user