diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index 072c9d9651..68f84fae4a 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -163,7 +163,9 @@ public: void OnEraseBackground(wxEraseEvent& event); void OnPaint(wxPaintEvent& event); +#ifdef __WXWINCE__ void OnInitDialog( wxInitDialogEvent& event ); +#endif public: // For implementation purposes - sometimes decorations make the client area diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 119a50c4a8..fec6a59d91 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -339,7 +339,9 @@ wxCONSTRUCTOR_DUMMY(wxWindow) BEGIN_EVENT_TABLE(wxWindowMSW, wxWindowBase) EVT_ERASE_BACKGROUND(wxWindowMSW::OnEraseBackground) EVT_SYS_COLOUR_CHANGED(wxWindowMSW::OnSysColourChanged) +#ifdef __WXWINCE__ EVT_INIT_DIALOG(wxWindowMSW::OnInitDialog) +#endif END_EVENT_TABLE() // ===========================================================================