// this defines a CASTWNDPROC macro which casts a pointer to the type of a
// window proc
// ---------------------------------------------------------------------------
-#ifdef __GNUWIN32__
+#if defined(__GNUWIN32__) && !defined(__MINGW32__)
# define CASTWNDPROC (long unsigned)
#else
# ifdef __BORLANDC__
#include "wx/event.h"
#include "wx/textctrl.h"
-#ifdef __GNUWIN32__
-# ifdef GetFirstChild
-# undef GetFirstChild
-# endif
-
-# ifdef GetNextSibling
-# undef GetNextSibling
-# endif
-#endif
-
// the type for "untyped" data
typedef long wxDataType;
#ifdef StartDoc
#undef StartDoc
+ #ifdef __MINGW32__
+ #define DOCINFOW DOCINFO
+ #define DOCINFOA DOCINFO
+ #endif
#ifdef _UNICODE
inline int StartDoc(HDC h, CONST DOCINFOW* info)
{
// GetNextSibling
#ifdef GetNextSibling
- #undef GetNextSibling
- inline HWND GetNextSibling(HWND h)
- {
- return GetWindow(h, GW_HWNDNEXT);
- }
+ #undef GetNextSibling
+ inline HWND GetNextSibling(HWND h)
+ {
+ return GetWindow(h, GW_HWNDNEXT);
+ }
#endif
// GetWindowProc
#endif
#ifndef WX_PRECOMP
-#include "wx/defs.h"
+ #include "wx/window.h"
+ #include "wx/msw/private.h"
#endif
#include "wx/dc.h"
// wxWindows
#ifndef WX_PRECOMP
+ #include "wx/window.h"
+ #include "wx/msw/private.h"
#include <wx/event.h>
#include <wx/app.h>
#include <wx/string.h>
#include "wx/checkbox.h"
#include "wx/settings.h"
#include "wx/slider.h"
+#include "wx/icon.h"
#include "wx/statbox.h"
#include "wx/statbmp.h"
#if wxUSE_GAUGE
########################## Compiler flags #############################
# Miscellaneous compiler options
-OPTIONS= -D__EGCS__ # -D__MINGW32__
+OPTIONS= -D__EGCS__ -DSTRICT # -D__MINGW32__
# Debugging information
# AIX: comment out.
#ifndef WX_PRECOMP
#include "wx/window.h"
+ #include "wx/log.h"
#endif // WX_PRECOMP
#include "wx/caret.h"
#include "wx/frame.h"
#include "wx/bitmap.h"
#include "wx/utils.h"
+ #include "wx/intl.h"
#endif
#if wxUSE_METAFILE
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/cursor.h"
+#include "wx/icon.h"
#endif
#include "wx/msw/private.h"
#pragma hdrstop
#endif
+#include "wx/frame.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
- #include "wx/frame.h"
#include "wx/dc.h"
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/dcmemory.h"
+ #include "wx/log.h"
#endif
#include "wx/dcprint.h"
-#include "wx/msw/private.h"
#include <string.h>
#include <math.h>
#pragma hdrstop
#endif
-#include "wx/dcclient.h"
+#include "wx/string.h"
#include "wx/log.h"
+#include "wx/window.h"
#include "wx/msw/private.h"
+#include "wx/dcclient.h"
+
// ----------------------------------------------------------------------------
// macros
// ----------------------------------------------------------------------------
#ifndef WX_PRECOMP
#endif
-#include "wx/dcprint.h"
+#include "wx/string.h"
#include "wx/log.h"
-#include "math.h"
-
+#include "wx/window.h"
#include "wx/msw/private.h"
+#include "wx/dcprint.h"
+#include "math.h"
#if wxUSE_COMMON_DIALOGS
#include <commdlg.h>
#endif
#ifndef WX_PRECOMP
+ #include "wx/string.h"
+ #include "wx/window.h"
+ #include "wx/msw/private.h"
#endif
#include "wx/dcscreen.h"
-#include <windows.h>
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
#include "wx/frame.h"
#include "wx/app.h"
#include "wx/settings.h"
+#include "wx/intl.h"
+#include "wx/log.h"
#endif
#include "wx/msw/private.h"
#include <stdio.h>
#include "wx/setup.h"
#include "wx/window.h"
-#include "wx/dcclient.h"
+#include "wx/icon.h"
+#include "wx/dc.h"
+#include "wx/string.h"
#endif
#include "wx/log.h"
#pragma hdrstop
#endif
-#include <windows.h>
+#include "wx/string.h"
+#include "wx/window.h"
+#include "wx/msw/private.h"
#ifndef __GNUWIN32__
#include <mmsystem.h>
#pragma hdrstop
#endif
+#include <windowsx.h>
+#include "wx/window.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
- #include "wx/listbox.h"
- #include "wx/settings.h"
- #include "wx/brush.h"
- #include "wx/font.h"
- #include "wx/dc.h"
+#include "wx/listbox.h"
+#include "wx/settings.h"
+#include "wx/brush.h"
+#include "wx/font.h"
+#include "wx/dc.h"
#endif
-#include "wx/msw/private.h"
+#include "wx/dynarray.h"
+#include "wx/log.h"
-#include <windows.h>
-#include <windowsx.h>
+#if wxUSE_OWNER_DRAWN
+ #include "wx/ownerdrw.h"
+#endif
#ifndef __TWIN32__
#ifdef __GNUWIN32__
#endif
#endif
-#if wxUSE_OWNER_DRAWN
- #include "wx/ownerdrw.h"
-#endif
-
-#include "wx/dynarray.h"
-#include "wx/log.h"
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
#include "wx/dialog.h"
#include "wx/statusbr.h"
#include "wx/settings.h"
+ #include "wx/intl.h"
+ #include "wx/log.h"
#endif
#include "wx/mdi.h"
#include "wx/frame.h"
#include "wx/menu.h"
#include "wx/utils.h"
+ #include "wx/intl.h"
#endif
#if wxUSE_OWNER_DRAWN
#endif
#ifndef WX_PRECOMP
- #include "wx/menu.h"
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/settings.h"
#include "wx/font.h"
+ #include "wx/accel.h"
+ #include "wx/menu.h"
+ #include "wx/string.h"
+ #include "wx/window.h"
#endif
#include "wx/ownerdrw.h"
#pragma hdrstop
#endif
+#include "wx/window.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
#include "wx/setup.h"
#include "wx/event.h"
#if wxUSE_ITSY_BITSY
#include "wx/minifram.h"
-#include "wx/msw/private.h"
#ifndef __TWIN32__
#ifdef __GNUWIN32__
//
//////////////////////////////////////////////////////////////////////////
-#include <windows.h>
-#include <windowsx.h>
+#include "wx/window.h"
+#include "wx/msw/private.h"
#include <string.h>
#endif
#ifndef WX_PRECOMP
+ #include "wx/window.h"
+ #include "wx/msw/private.h"
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/dcmemory.h"
#include "wx/ownerdrw.h"
#include "wx/menuitem.h"
-#include "wx/msw/private.h"
// ============================================================================
// implementation of wxOwnerDrawn class
#include "wx/defs.h"
#ifndef WX_PRECOMP
+ #include "wx/window.h"
+ #include "wx/msw/private.h"
#include "wx/utils.h"
#include "wx/dc.h"
#include "wx/app.h"
#include "wx/msgdlg.h"
+ #include "wx/intl.h"
#endif
#include "wx/msw/printwin.h"
#include "wx/msw/region.h"
#include "wx/gdicmn.h"
+#include "wx/window.h"
#include "wx/msw/private.h"
#if !USE_SHARED_LIBRARY
#pragma hdrstop
#endif
+#include "wx/window.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
+ #include "wx/icon.h"
#include "wx/statbmp.h"
#endif
#include <stdio.h>
-#include "wx/msw/private.h"
// ---------------------------------------------------------------------------
// macors
#pragma hdrstop
#endif
+#include "wx/window.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
-#include "wx/dcclient.h"
#include "wx/app.h"
+#include "wx/dcclient.h"
#endif
#include "wx/statbox.h"
-#include "wx/msw/private.h"
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
#pragma hdrstop
#endif
+#include "wx/window.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
#include "wx/setup.h"
#include "wx/list.h"
#include "wx/log.h"
#include "wx/timer.h"
-#include "wx/msw/private.h"
#include <time.h>
#include <sys/types.h>
#pragma hdrstop
#endif
+#include "wx/window.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
- #include "wx/wx.h"
+ #include "wx/settings.h"
+#endif
+
+// Mingw32 is a bit mental even though this is done in winundef
+#ifdef GetFirstChild
+#undef GetFirstChild
+#endif
+#ifdef GetNextSibling
+#undef GetNextSibling
#endif
#if defined(__WIN95__)
#include "wx/imaglist.h"
#include "wx/msw/treectrl.h"
-#include "wx/msw/private.h"
-
#ifdef __GNUWIN32__
#include "wx/msw/gnuwin32/extra.h"
#endif
if ((home = getenv("TMP")) != NULL ||
(home = getenv("TMPDIR")) != NULL ||
(home = getenv("TEMP")) != NULL)
- return *home ? home : "\\";
+ return *home ? home : (char*)"\\";
}
if (Stricmp(tmp, WXSTRINGCAST user1) == 0)
user1 = "";
#endif
#ifndef WX_PRECOMP
+ #include <windows.h>
+ #include "wx/msw/winundef.h"
+ #include "wx/accel.h"
#include "wx/setup.h"
#include "wx/menu.h"
#include "wx/dc.h"
#include "wx/menuitem.h"
#include "wx/log.h"
+#include "wx/msw/private.h"
+
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
#endif
#include "wx/intl.h"
#include "wx/log.h"
-#include "wx/msw/private.h"
#include "wx/textctrl.h"
#endif
#endif
-#include "wx/msw/winundef.h"
-
// ---------------------------------------------------------------------------
// macros
// ---------------------------------------------------------------------------