git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1079
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
long style = 0,
const wxString& name = wxPanelNameStr)
{
long style = 0,
const wxString& name = wxPanelNameStr)
{
Create(parent, id, pos, size, style, name);
}
Create(parent, id, pos, size, style, name);
}
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxEvtHandler)
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxEvtHandler)
BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler)
BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler)
-EVT_CHAR(wxWindow::OnChar)
-EVT_ERASE_BACKGROUND(wxWindow::OnEraseBackground)
-EVT_SYS_COLOUR_CHANGED(wxWindow::OnSysColourChanged)
-EVT_INIT_DIALOG(wxWindow::OnInitDialog)
-EVT_IDLE(wxWindow::OnIdle)
+ EVT_CHAR(wxWindow::OnChar)
+ EVT_ERASE_BACKGROUND(wxWindow::OnEraseBackground)
+ EVT_SYS_COLOUR_CHANGED(wxWindow::OnSysColourChanged)
+ EVT_INIT_DIALOG(wxWindow::OnInitDialog)
+ EVT_IDLE(wxWindow::OnIdle)
// Find an item given the MS Windows id
wxWindow *wxWindow::FindItem(int id) const
{
// Find an item given the MS Windows id
wxWindow *wxWindow::FindItem(int id) const
{
long style,
const wxString& name)
{
long style,
const wxString& name)
{
wxCHECK_MSG( parent, FALSE, "can't create wxWindow without parent" );
parent->AddChild(this);
wxCHECK_MSG( parent, FALSE, "can't create wxWindow without parent" );
parent->AddChild(this);
- win->MSWNotify(wParam, lParam, &result);
+ if ( win->MSWNotify(wParam, lParam, &result) )
+ return result;
{
wxWindow *child = (wxWindow *)node->Data();
if ( child->MSWNotify(wParam, lParam, &result) )
{
wxWindow *child = (wxWindow *)node->Data();
if ( child->MSWNotify(wParam, lParam, &result) )
+ // finally try this window too (catches toolbar case)
+ if ( MSWNotify(wParam, lParam, &result) )
+ return result;
+ }