X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca7731b7c89693a5bf60b2e259757ece780f8f1a..cf5f9c9c3e06f4d1104fdeabc61c5e756a24c872:/src/msw/data.cpp diff --git a/src/msw/data.cpp b/src/msw/data.cpp index 12a7c6672b..a692201c45 100644 --- a/src/msw/data.cpp +++ b/src/msw/data.cpp @@ -148,7 +148,7 @@ const char *wxFatalErrorStr = "wxWindows Fatal Error"; const char *wxFloatToStringStr = "%.2f"; const char *wxDoubleToStringStr = "%.2f"; -#ifdef __WINDOWS__ +#ifdef __WXMSW__ const char *wxUserResourceStr = "TEXT"; #endif @@ -201,7 +201,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxDC) IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC) IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC) -#if defined(__WINDOWS__) +#if defined(__WXMSW__) #include "wx/dcprint.h" IMPLEMENT_CLASS(wxPrinterDC, wxDC) #endif @@ -225,7 +225,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject) #include "wx/colordlg.h" #include "wx/fontdlg.h" -#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW +#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW #include "wx/generic/colordlg.h" #include "wx/generic/fontdlg.h" IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog) @@ -253,10 +253,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxPenList, wxList) IMPLEMENT_DYNAMIC_CLASS(wxBrushList, wxList) IMPLEMENT_DYNAMIC_CLASS(wxBitmapList, wxList) +/* #if (!USE_TYPEDEFS) IMPLEMENT_DYNAMIC_CLASS(wxPoint, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxRealPoint, wxObject) #endif +*/ #include "wx/hash.h" IMPLEMENT_DYNAMIC_CLASS(wxHashTable, wxObject) @@ -266,7 +268,7 @@ IMPLEMENT_CLASS(wxHelpControllerBase, wxObject) #if USE_HELP -#ifdef __WINDOWS__ +#ifdef __WXMSW__ #include "wx/msw/helpwin.h" IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController, wxHelpControllerBase) #endif @@ -274,7 +276,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController, wxHelpControllerBase) // Generic wxHelp controller IMPLEMENT_CLASS(wxXLPHelpController, wxHelpControllerBase) -#ifdef __WINDOWS__ +#ifdef __WXMSW__ IMPLEMENT_CLASS(wxXLPHelpClient, wxDDEClient) IMPLEMENT_CLASS(wxXLPHelpConnection, wxDDEConnection) #else @@ -352,7 +354,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent, wxEvent) #include "wx/utils.h" IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList) -IMPLEMENT_DYNAMIC_CLASS(wxRect, wxObject) +// IMPLEMENT_DYNAMIC_CLASS(wxRect, wxObject) #include "wx/process.h" IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler) @@ -395,7 +397,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxToolBarBase, wxControl) #include "wx/tbarsmpl.h" IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxToolBarBase) -#ifdef __WINDOWS__ +#ifdef __WXMSW__ #include "wx/tbarmsw.h" IMPLEMENT_DYNAMIC_CLASS(wxToolBarMSW, wxToolBarBase) @@ -424,7 +426,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxString, wxObject) #endif -#ifdef __MOTIF__ +#ifdef __WXMOTIF__ IMPLEMENT_DYNAMIC_CLASS(wxXColormap, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxXFont, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxXCursor, wxObject) @@ -439,7 +441,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject) IMPLEMENT_DYNAMIC_CLASS(wxMask, wxObject) // This will presumably be implemented on other platforms too -#ifdef __WINDOWS__ +#ifdef __WXMSW__ IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler, wxBitmapHandler) IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler, wxBitmapHandler) @@ -535,7 +537,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPanel, wxWindow) #include "wx/dirdlg.h" #include "wx/choicdlg.h" -#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW +#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW #include "wx/generic/msgdlgg.h" IMPLEMENT_CLASS(wxGenericMessageDialog, wxDialog) #endif @@ -545,12 +547,12 @@ IMPLEMENT_CLASS(wxSingleChoiceDialog, wxDialog) IMPLEMENT_CLASS(wxFileDialog, wxDialog) IMPLEMENT_CLASS(wxDirDialog, wxDialog) -#ifdef __WINDOWS__ +#ifdef __WXMSW__ IMPLEMENT_CLASS(wxMessageDialog) #endif #if USE_GAUGE -#ifdef __MOTIF__ +#ifdef __WXMOTIF__ #include "../../contrib/xmgauge/gauge.h" #endif #include "wx_gauge.h" @@ -613,7 +615,7 @@ BEGIN_EVENT_TABLE(wxTextCtrl, wxControl) EVT_ERASE_BACKGROUND(wxTextCtrl::OnEraseBackground) END_EVENT_TABLE() -#ifdef __WINDOWS__ +#ifdef __WXMSW__ BEGIN_EVENT_TABLE(wxMDIParentWindow, wxFrame) EVT_SIZE(wxMDIParentWindow::OnSize) EVT_ACTIVATE(wxMDIParentWindow::OnActivate) @@ -638,7 +640,7 @@ BEGIN_EVENT_TABLE(wxToolBarSimple, wxToolBarBase) EVT_MOUSE_EVENTS(wxToolBarSimple::OnMouseEvent) END_EVENT_TABLE() -#ifdef __WINDOWS__ +#ifdef __WXMSW__ BEGIN_EVENT_TABLE(wxToolBarMSW, wxToolBarBase) EVT_SIZE(wxToolBarMSW::OnSize) EVT_PAINT(wxToolBarMSW::OnPaint) @@ -667,7 +669,7 @@ BEGIN_EVENT_TABLE(wxControl, wxWindow) EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground) END_EVENT_TABLE() -#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW +#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW BEGIN_EVENT_TABLE(wxGenericMessageDialog, wxDialog) EVT_BUTTON(wxID_YES, wxGenericMessageDialog::OnYes) EVT_BUTTON(wxID_NO, wxGenericMessageDialog::OnNo)