no message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-12-02 14:08:35 +00:00
parent 5b6a40fb0e
commit 9905679b18
5 changed files with 118 additions and 52 deletions

View File

@@ -215,16 +215,17 @@ int wxNotebook::SetSelection(
if (nPage != m_nSelection)
{
wxNotebookEvent event( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
,m_windowId
);
wxNotebookEvent vEvent( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
,m_windowId
);
vEvent.SetSelection(nPage);
vEvent.SetOldSelection(m_nSelection);
vEvent.SetEventObject(this);
if (!GetEventHandler()->ProcessEvent(vEvent) || vEvent.IsAllowed())
{
//
//
// Program allows the page change
//
vEvent.SetEventType(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED);