From: Vadim Zeitlin Date: Wed, 6 Feb 2002 01:42:02 +0000 (+0000) Subject: IMPLEMENT_DYNAMIC_CLASS fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/621b3e2127c11427cedf5def9e7e7d096577132b IMPLEMENT_DYNAMIC_CLASS fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 77ac32a68d..bb7b59ef46 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -667,7 +667,7 @@ static void gtk_menu_nolight_callback( GtkWidget *widget, wxMenu *menu ) // wxMenuItem //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxMenuItemBase) +IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxMenuObject) wxMenuItem *wxMenuItemBase::New(wxMenu *parentMenu, int id, diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 77ac32a68d..bb7b59ef46 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -667,7 +667,7 @@ static void gtk_menu_nolight_callback( GtkWidget *widget, wxMenu *menu ) // wxMenuItem //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxMenuItemBase) +IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxMenuObject) wxMenuItem *wxMenuItemBase::New(wxMenu *parentMenu, int id, diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index d84d6c2aa4..09ab2ba32e 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -52,7 +52,7 @@ // wxWin macros // ---------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxCursorBase) +IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxGDIObject) // ---------------------------------------------------------------------------- // globals diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index 3ead2479d1..38a1d16db2 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -175,10 +175,10 @@ private: // wxWin macros // ---------------------------------------------------------------------------- - IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler, wxBitmapHandler) - IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler, wxBitmapHandler) - IMPLEMENT_DYNAMIC_CLASS(wxICOFileHandler, wxGDIImageHandler) - IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxGDIImageHandler) +IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler, wxBitmapHandler) +IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler, wxBitmapHandler) +IMPLEMENT_DYNAMIC_CLASS(wxICOFileHandler, wxObject) +IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxObject) // ---------------------------------------------------------------------------- // private functions diff --git a/src/msw/icon.cpp b/src/msw/icon.cpp index ea5e89cf86..75be5af852 100644 --- a/src/msw/icon.cpp +++ b/src/msw/icon.cpp @@ -49,7 +49,7 @@ // wxWin macros // ---------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxIconBase) +IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxGDIObject) // ============================================================================ // implementation diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index 0686c08269..33e67a5d9f 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -72,11 +72,7 @@ // dynamic classes implementation // ---------------------------------------------------------------------------- -#if wxUSE_OWNER_DRAWN - IMPLEMENT_DYNAMIC_CLASS2(wxMenuItem, wxMenuItemBase, wxOwnerDrawn) -#else //!USE_OWNER_DRAWN - IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxMenuItemBase) -#endif //USE_OWNER_DRAWN +IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxObject) // ---------------------------------------------------------------------------- // wxMenuItem diff --git a/src/msw/slider95.cpp b/src/msw/slider95.cpp index 116e2e5647..e72bb09b17 100644 --- a/src/msw/slider95.cpp +++ b/src/msw/slider95.cpp @@ -37,7 +37,7 @@ #include #endif -IMPLEMENT_DYNAMIC_CLASS(wxSlider95, wxControl) +IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl) // Slider wxSlider95::wxSlider95()