X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1061906dd3e6594753bf99fdedde7c72d9ca12e..9c805dec6caf3c98a3797898cffe795b5b56e606:/include/wx/compositewin.h?ds=sidebyside diff --git a/include/wx/compositewin.h b/include/wx/compositewin.h index a4477e03f2..9e7b5fd6a1 100644 --- a/include/wx/compositewin.h +++ b/include/wx/compositewin.h @@ -18,6 +18,16 @@ // officially stabilized unless you are ready to change it with the next // wxWidgets release. +// FIXME-VC6: This compiler can't compile DoSetForAllParts() template function, +// it can't determine whether the deduced type should be "T" or "const T&". And +// without this function wxCompositeWindow is pretty useless so simply disable +// this code for it, this does mean that setting colours/fonts/... for +// composite controls won't work in the library compiled with it but so far +// this only affects the generic wxDatePickerCtrl which is not used by default +// under MSW anyhow so it doesn't seem to be worth it to spend time and uglify +// the code to fix it. +#ifndef __VISUALC6__ + // ---------------------------------------------------------------------------- // wxCompositeWindow is a helper for implementing composite windows: to define // a class using subwindows, simply inherit from it specialized with the real @@ -107,4 +117,13 @@ private: wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCompositeWindow, W); }; +#else // __VISUALC6__ + +template +class wxCompositeWindow : public W +{ +}; + +#endif // !__VISUALC6__/__VISUALC6__ + #endif // _WX_COMPOSITEWIN_H_