]> git.saurik.com Git - wxWidgets.git/commitdiff
Various wxUniversal/wxMicroWindows fixes
authorJulian Smart <julian@anthemion.co.uk>
Mon, 2 Jul 2001 13:22:19 +0000 (13:22 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 2 Jul 2001 13:22:19 +0000 (13:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

29 files changed:
include/wx/confbase.h
include/wx/univ/combobox.h
include/wx/univ/renderer.h
include/wx/univ/setup.h
samples/minimal/makefile.mic
src/common/config.cpp
src/common/filefn.cpp
src/common/filename.cpp
src/common/log.cpp
src/generic/tipwin.cpp
src/msw/app.cpp
src/msw/bitmap.cpp
src/msw/clipbrd.cpp
src/msw/colour.cpp
src/msw/dc.cpp
src/msw/dialog.cpp
src/msw/evtloop.cpp
src/msw/makefile.mic
src/msw/microwin.c
src/msw/window.cpp
src/univ/combobox.cpp
src/univ/listbox.cpp
src/univ/menu.cpp
src/univ/notebook.cpp
src/univ/renderer.cpp
src/univ/scrolbar.cpp
src/univ/themes/gtk.cpp
src/univ/themes/win32.cpp
src/univ/winuniv.cpp

index 95d9f8f282932cbac03697bf6be8e549ace6389c..25b97678b819c4d3919dbf16ab5f147e96bc0d52 100644 (file)
@@ -19,6 +19,7 @@
 #endif
 
 #include "wx/defs.h"
+#include "wx/string.h"
 
 // ----------------------------------------------------------------------------
 // constants
@@ -306,7 +307,8 @@ private:
   Replace environment variables ($SOMETHING) with their values. The format is
   $VARNAME or ${VARNAME} where VARNAME contains alphanumeric characters and
   '_' only. '$' must be escaped ('\$') in order to be taken literally.
- */
+*/
+
 WXDLLEXPORT wxString wxExpandEnvVars(const wxString &sz);
 
 /*
index 2b8c141588270f3e101e33c0d337b77f2c1f2422..ec3baf4390ade1d3cc7185df280736baeea6a56a 100644 (file)
@@ -43,6 +43,8 @@
 class WXDLLEXPORT wxComboControl;
 class WXDLLEXPORT wxListBox;
 class WXDLLEXPORT wxPopupComboWindow;
+class WXDLLEXPORT wxTextCtrl;
+class WXDLLEXPORT wxButton;
 
 // ----------------------------------------------------------------------------
 // the actions supported by this control
index 11fa00a8ccdc6661ed1b16628c988c1e89692886..23dcaa13fc2ef203d48796b6c91f3af347aac9e3 100644 (file)
@@ -35,6 +35,9 @@ class WXDLLEXPORT wxMenu;
 class WXDLLEXPORT wxScrollBar;
 class WXDLLEXPORT wxTextCtrl;
 class WXDLLEXPORT wxWindow;
+#if wxUSE_GAUGE
+class WXDLLEXPORT wxGauge;
+#endif // wxUSE_GAUGE
 
 #include "wx/string.h"
 #include "wx/gdicmn.h"
index cbb152eb4160bd699778f680a54d4ac5e23b0c69..1f4af2a8997ba3e3cd803581febc95e8977d4b86 100644 (file)
@@ -55,7 +55,7 @@
 #define wxUSE_ZIPSTREAM     0
 #define wxUSE_ZLIB          0
 #define wxUSE_APPLE_IEEE          0
-#define wxUSE_FILE                0
+#define wxUSE_FILE                1
 #define wxUSE_FFILE               1
 #define wxUSE_TEXTFILE            0
 #define wxUSE_INTL                0
 #define wxUSE_MS_HTML_HELP 0
 #define wxUSE_RESOURCES   0
 #define wxUSE_CONSTRAINTS 1
-#define wxUSE_CLIPBOARD   1
+#define wxUSE_CLIPBOARD   0
 #define wxUSE_DATAOBJ     1
 #define wxUSE_SPLINES     0
 #define wxUSE_DRAG_AND_DROP 0
index c73f434bcdbb98523f62648ce9ff51cdb0a04da9..3110304db4686d075f97b54ee410cb1d56c25e16 100644 (file)
@@ -3,7 +3,7 @@
 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
 ##############################################################################
 
-TOP=/home/julians/microwindows/microwin/src
+TOP=/home/julians/local/microwindows/microwin/src
 CONFIG = $(TOP)/config
 WXDIR = ../..
 OBJSUFF = o
@@ -25,7 +25,7 @@ include $(CONFIG)
 # Directories list for header files
 INCLUDEDIRS += -I$(WXDIR)/include
 # Defines for preprocessor
-DEFINES += -DMWIN -D__WXMICROWIN__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__
+DEFINES += -DMWIN -D__WXMSW__ -D__WXMICROWIN__ -D__WXUNIVERSAL__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__ -DwxSIZE_T_IS_UINT -DWXWIN_OS_DESCRIPTION="\"MicroWindows\""
 
 # Compilation flags for C files OTHER than include directories
 CFLAGS +=
index 470acd97b1881335f4ab03f411158f40104e9e28..05ca5af209b99fccdf4516182e5c91e6a0894ca3 100644 (file)
 #endif
 
 #include "wx/config.h"
+#include "wx/intl.h"
+#include "wx/log.h"
 
 #if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || wxUSE_CONFIG_NATIVE)
 
 #include "wx/app.h"
 #include "wx/file.h"
-#include "wx/log.h"
 #include "wx/textfile.h"
 #include "wx/utils.h"
-#include "wx/log.h"
 #include "wx/utils.h"
-#include "wx/intl.h"
 
 #include <stdlib.h>
 #include <math.h>
index 781e18dc95795a550648f4ffa58bf1e0a7787dee..92a79464185b96227d29357dc61d51f755731022 100644 (file)
@@ -1129,7 +1129,7 @@ bool wxMkdir(const wxString& dir, int perm)
 
     // assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too
     // for the GNU compiler
-#if (!(defined(__WXMSW__) || defined(__WXPM__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__)
+#if (!(defined(__WXMSW__) || defined(__WXPM__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) || defined(__WXMICROWIN__)
     if ( mkdir(wxFNCONV(dirname), perm) != 0 )
 #elif defined(__WXPM__)
     if (::DosCreateDir((PSZ)dirname, NULL) != 0) // enhance for EAB's??
index aad2543db419971a8a13755a6a396fc417ee3af7..d3ee13116efd6e7998600cff3c89dff41b036aca 100644 (file)
@@ -537,7 +537,7 @@ wxString wxFileName::GetFullPath( wxPathFormat format ) const
 // Return the short form of the path (returns identity on non-Windows platforms)
 wxString wxFileName::GetShortPath() const
 {
-#if defined(__WXMSW__) && defined(__WIN32__)
+#if defined(__WXMSW__) && defined(__WIN32__) && !defined(__WXMICROWIN__)
     wxString path(GetFullPath());
     wxString pathOut;
     DWORD sz = ::GetShortPathName(path, NULL, 0);
@@ -564,7 +564,7 @@ wxString wxFileName::GetShortPath() const
 // Return the long form of the path (returns identity on non-Windows platforms)
 wxString wxFileName::GetLongPath() const
 {
-#if defined(__WXMSW__) && defined(__WIN32__)
+#if defined(__WXMSW__) && defined(__WIN32__) && !defined(__WXMICROWIN__)
     wxString path(GetFullPath());
     wxString pathOut;
     bool success = FALSE;
index ffeeef2daa271ece8cc46173938cd2489f989825..03838b73d743a2527378cd6a9746af83e61f4c41 100644 (file)
 #include  <stdlib.h>
 #include  <time.h>
 
-#ifdef  __WXMSW__
+#if defined(__WXMSW__)
   #include  "wx/msw/private.h"      // includes windows.h for OutputDebugString
-#else   //Unix
+#endif
+
+#if !defined(__WXMSW__) || defined(__WXMICROWIN__)
   #include  <signal.h>
 #endif  //Win/Unix
 
@@ -513,7 +515,7 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
 
     // under Windows, programs usually don't have stderr at all, so show the
     // messages also under debugger - unless it's a console program
-#if defined(__WXMSW__) && wxUSE_GUI
+#if defined(__WXMSW__) && wxUSE_GUI && !defined(__WXMICROWIN__)
     str += wxT("\r\n") ;
     OutputDebugString(str.c_str());
 #endif // MSW
@@ -639,7 +641,7 @@ static void wxLogWrap(FILE *f, const char *pszPrefix, const char *psz)
 // get error code from syste
 unsigned long wxSysErrorCode()
 {
-#ifdef  __WXMSW__
+#if defined(__WXMSW__) && !defined(__WXMICROWIN__)
 #ifdef  __WIN32__
     return ::GetLastError();
 #else   //WIN16
@@ -657,7 +659,7 @@ const wxChar *wxSysErrorMsg(unsigned long nErrCode)
     if ( nErrCode == 0 )
         nErrCode = wxSysErrorCode();
 
-#ifdef  __WXMSW__
+#if defined(__WXMSW__) && !defined(__WXMICROWIN__)
 #ifdef  __WIN32__
     static wxChar s_szBuf[LOG_BUFFER_SIZE / 2];
 
@@ -714,7 +716,7 @@ bool wxAssertIsEqual(int x, int y)
 // break into the debugger
 void wxTrap()
 {
-#ifdef __WXMSW__
+#if defined(__WXMSW__) && !defined(__WXMICROWIN__)
     DebugBreak();
 #elif defined(__WXMAC__)
 #if __powerc
@@ -779,7 +781,7 @@ void wxOnAssert(const wxChar *szFile, int nLine, const wxChar *szMsg)
 
         // use the native message box if available: this is more robust than
         // using our own
-#ifdef __WXMSW__
+#if defined(__WXMSW__) && !defined(__WXMICROWIN__)
         switch ( ::MessageBox(NULL, szBuf, _T("Debug"),
                               MB_YESNOCANCEL | MB_ICONSTOP ) ) {
             case IDYES:
index f9c3b5538c5c607a69373600baacdf8f147ecdf8..06e94b763647df466649055c08b57a5cbe93ea56 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "wx/tipwin.h"
 #include "wx/timer.h"
+#include "wx/settings.h"
 
 // ----------------------------------------------------------------------------
 // constants
index 7ad291e9d9b5e8a4c6d28dd6ce5365380fabf783..3adeae2cb4a2f40099f74757021bedf12b638efd 100644 (file)
@@ -242,7 +242,7 @@ bool wxApp::Initialize()
     InitCommonControls();
 #endif // __WIN95__
 
-#if wxUSE_OLE || wxUSE_DRAG_AND_DROP || wxUSE_DATAOBJ
+#if wxUSE_OLE || wxUSE_DRAG_AND_DROP
 
 #ifdef __WIN16__
     // for OLE, enlarge message queue to be as large as possible
@@ -250,6 +250,7 @@ bool wxApp::Initialize()
     while (!SetMessageQueue(iMsg) && (iMsg -= 8))
         ;
 #endif // Win16
+
     // we need to initialize OLE library
     if ( FAILED(::OleInitialize(NULL)) )
         wxLogError(_("Cannot initialize OLE"));
@@ -717,7 +718,7 @@ int wxEntry(WXHINSTANCE hInstance,
             wxCHECK_MSG( wxApp::GetInitializerFunction(), 0,
                          wxT("No initializer - use IMPLEMENT_APP macro.") );
 
-            wxTheApp = (*wxApp::GetInitializerFunction()) ();
+            wxTheApp = (wxApp*) (*wxApp::GetInitializerFunction()) ();
         }
 
         wxCHECK_MSG( wxTheApp, 0, wxT("You have to define an instance of wxApp!") );
index d6e1ddd207d311524202ca717c087dc7067e605b..c7dc1834fdb88877ebb7f8e5f2c46949e7538802 100644 (file)
@@ -382,6 +382,10 @@ bool wxBitmap::Create(int w, int h, int d)
 
 bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
 {
+#ifdef __WXMICROWIN__
+    // TODO
+    return FALSE;
+#else
     wxCHECK_MSG( image.Ok(), FALSE, wxT("invalid image") )
 
     m_refData = new wxBitmapRefData();
@@ -604,10 +608,15 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
     if (wxTheBitmapList) wxTheBitmapList->AddBitmap(this);
 
     return TRUE;
+#endif
 }
 
 wxImage wxBitmap::ConvertToImage() const
 {
+#ifdef __WXMICROWIN__
+    // TODO
+    return wxImage();
+#else
     wxImage image;
 
     wxCHECK_MSG( Ok(), wxNullImage, wxT("invalid bitmap") );
@@ -732,6 +741,7 @@ wxImage wxBitmap::ConvertToImage() const
     free(lpBits);
 
     return image;
+#endif
 }
 
 #endif // wxUSE_IMAGE
index ed6896cb6571e77ebb1dc6a06cf95b30b7559349..3cbe217392774f9da5505f951757eade7f7d6433 100644 (file)
 #include <windows.h>
 
 #include "wx/msw/private.h"
+
+#ifndef __WXMICROWIN__
 #include "wx/msw/dib.h"
+#endif
 
 // wxDataObject is tied to OLE/drag and drop implementation, therefore so are
 // the functions using wxDataObject in wxClipboard
 #if wxUSE_DATAOBJ
     #include "wx/dataobj.h"
 
-    // use OLE clipboard
-    #define wxUSE_OLE_CLIPBOARD 1
+// No: don't necessarily use OLE clipboard with data object
+#if 0
+   // use OLE clipboard
+   #define wxUSE_OLE_CLIPBOARD 1
+#endif
 #else // !wxUSE_DATAOBJ
     // use Win clipboard API
     #define wxUSE_OLE_CLIPBOARD 0
index a7df1a6f25b4835e99858d1981dccfa1b1ba4266..bac04c76cdeb5421964841c08d70977e794d5e9d 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 
 #include "wx/gdicmn.h"
+#include "wx/msw/private.h"
 
 #include <string.h>
 #include <windows.h>
index 0887188c47ab90e9310aec0bf837e690113c8a20..11e667c925e99dacc9fd5addfffd61be5e2e1fb6 100644 (file)
@@ -537,9 +537,9 @@ void wxDC::DoDrawCheckMark(wxCoord x1, wxCoord y1,
     HPEN hBrushOld = (HPEN)::SelectObject(GetHdc(), whiteBrush);
     ::SetROP2(GetHdc(), R2_COPYPEN);
     Rectangle(GetHdc(), x1, y1, x2, y2);
-    MoveTo(GetHdc(), x1, y1);
+    MoveToEx(GetHdc(), x1, y1, NULL);
     LineTo(GetHdc(), x2, y2);
-    MoveTo(GetHdc(), x2, y1);
+    MoveToEx(GetHdc(), x2, y1, NULL);
     LineTo(GetHdc(), x1, y2);
     ::SelectObject(GetHdc(), hPenOld);
     ::SelectObject(GetHdc(), hBrushOld);
index ee00bfd5de7be730d4e0ba51eb707cfe57771748..4de467688938ea84d59b2636fa2d9f1fb2c1a820 100644 (file)
@@ -194,6 +194,7 @@ bool wxDialog::Create(wxWindow *parent,
 
 bool wxDialog::EnableCloseButton(bool enable)
 {
+#ifndef __WXMICROWIN__
     // get system (a.k.a. window) menu
     HMENU hmenu = ::GetSystemMenu(GetHwnd(), FALSE /* get it */);
     if ( !hmenu )
@@ -218,7 +219,8 @@ bool wxDialog::EnableCloseButton(bool enable)
     {
         wxLogLastError(_T("DrawMenuBar"));
     }
-
+#endif
+    
     return TRUE;
 }
 
index 8f45f1e05ffcceaa7a8ccdd815b195b97bc3569c..73d459dac2f9b4c177f5f3db3d4a8768a96e6dc8 100644 (file)
@@ -32,6 +32,8 @@
 #endif //WX_PRECOMP
 
 #include "wx/evtloop.h"
+#include "wx/window.h"
+#include "wx/app.h"
 
 #include "wx/msw/private.h"
 
index ebf82040477d6f5cd70045a89f599bd8bce762f8..e263277d8ca3d527b659c25c78f6069790fa3559 100644 (file)
@@ -3,7 +3,7 @@
 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
 ##############################################################################
 
-TOP=/home/julians/microwindows/microwin/src
+TOP=/home/julians/local/microwindows/microwin/src
 CONFIG = $(TOP)/config
 WXDIR = ../..
 OBJSUFF = o
@@ -206,10 +206,7 @@ MSWOBJS     = \
                $(MICROWINDIR)/gdiobj.$(OBJSUFF) \
                $(MICROWINDIR)/icon.$(OBJSUFF) \
                $(MICROWINDIR)/main.$(OBJSUFF) \
-               $(MICROWINDIR)/menu.$(OBJSUFF) \
-               $(MICROWINDIR)/menuitem.$(OBJSUFF) \
                $(MICROWINDIR)/microwin.$(OBJSUFF) \
-               $(MICROWINDIR)/msgdlg.$(OBJSUFF) \
                $(MICROWINDIR)/palette.$(OBJSUFF) \
                $(MICROWINDIR)/pen.$(OBJSUFF) \
                $(MICROWINDIR)/regconf.$(OBJSUFF) \
@@ -219,7 +216,7 @@ MSWOBJS     = \
                $(MICROWINDIR)/thread.$(OBJSUFF) \
                $(MICROWINDIR)/timer.$(OBJSUFF) \
                $(MICROWINDIR)/utils.$(OBJSUFF) \
-               $(MICROWINDIR)/window.$(OBJSUFF)
+               $(MICROWINDIR)/window.$(OBJSUFF) \
                $(OLEDIR)/dataobj.$(OBJSUFF)
 
 UNIVOBJS_TODO = $(UNIVDIR)/choice.$(OBJSUFF) \
@@ -234,7 +231,7 @@ UNIVOBJS     = \
                $(UNIVDIR)/colschem.$(OBJSUFF) \
                $(UNIVDIR)/combobox.$(OBJSUFF) \
                $(UNIVDIR)/control.$(OBJSUFF) \
-               $(UNIVDIR)/frameuniv.$(OBJSUFF) \
+               $(UNIVDIR)/framuniv.$(OBJSUFF) \
                $(UNIVDIR)/gauge.$(OBJSUFF) \
                $(UNIVDIR)/inphand.$(OBJSUFF) \
                $(UNIVDIR)/listbox.$(OBJSUFF) \
@@ -248,7 +245,6 @@ UNIVOBJS     = \
                $(UNIVDIR)/scrthumb.$(OBJSUFF) \
                $(UNIVDIR)/slider.$(OBJSUFF) \
                $(UNIVDIR)/spinbutt.$(OBJSUFF) \
-               $(UNIVDIR)/spinctrl.$(OBJSUFF) \
                $(UNIVDIR)/statbmp.$(OBJSUFF) \
                $(UNIVDIR)/statbox.$(OBJSUFF) \
                $(UNIVDIR)/statline.$(OBJSUFF) \
@@ -266,7 +262,7 @@ include $(CONFIG)
 # Directories list for header files
 INCLUDEDIRS += -I$(WXDIR)/include
 # Defines for preprocessor
-DEFINES += -DMWIN -D__WXMSW__ -D__WXMICROWIN__ -D__WXUNIVERSAL__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__
+DEFINES += -DMWIN -D__WXMSW__ -D__WXMICROWIN__ -D__WXUNIVERSAL__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__ -DwxSIZE_T_IS_UINT -DWXWIN_OS_DESCRIPTION="\"MicroWindows\""
 
 # Compilation flags for C files OTHER than include directories
 CFLAGS +=
index 3763ce7872142e1fa9c40343a0100cca379f3394..a399e3274969351747126095e636cfb9c61bb313 100644 (file)
@@ -19,7 +19,7 @@
 #include "windows.h"
 #include "wintern.h"
 #include "device.h"
-#include "wx/microwin/microwin.h"
+#include "wx/msw/microwin.h"
 
 void GdMoveCursor(MWCOORD x, MWCOORD y);
 void MwSetCursor(HWND wp, PMWCURSOR pcursor);
index 316917aafbd3b5e6243af6cc74991016c0e5cbb0..5994bed1f73b2a82684dcf0455ab301c6c6d6b00 100644 (file)
@@ -160,7 +160,7 @@ static void TranslateKbdEventToMouse(wxWindowMSW *win,
 static TEXTMETRIC wxGetTextMetrics(const wxWindowMSW *win);
 
 // check if the mouse is in the window or its child
-static bool IsMouseInWindow(HWND hwnd);
+//static bool IsMouseInWindow(HWND hwnd);
 
 // ---------------------------------------------------------------------------
 // event tables
@@ -421,12 +421,19 @@ void wxWindowMSW::SetFocus()
     HWND hWnd = GetHwnd();
     wxCHECK_RET( hWnd, _T("can't set focus to invalid window") );
 
+#ifndef __WXMICROWIN__
     ::SetLastError(0);
-
+#endif
+    
     if ( !::SetFocus(hWnd) )
     {
         // was there really an error?
+#ifndef __WXMICROWIN__
         DWORD dwRes = ::GetLastError();
+#else
+
+        DWORD dwRes = 0;
+#endif
         if ( dwRes )
         {
             wxLogApiError(_T("SetFocus"), dwRes);
@@ -1178,7 +1185,7 @@ void wxWindowMSW::Update()
         wxLogLastError(_T("UpdateWindow"));
     }
 
-#ifdef __WIN32__
+#if defined(__WIN32__) && !defined(__WXMICROWIN__)
     // just calling UpdateWindow() is not enough, what we did in our WM_PAINT
     // handler needs to be really drawn right now
     (void)::GdiFlush();
@@ -2069,7 +2076,7 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
             }
             break;
 
-#ifdef __WXUNIVERSAL__
+#if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
         case WM_ACTIVATEAPP:
             wxTheApp->SetActive(wParam != 0, FindFocus());
             break;
@@ -2546,6 +2553,7 @@ void wxWindowMSW::MSWDestroyWindow()
 
 void wxWindowMSW::MSWDetachWindowMenu()
 {
+#ifndef __WXUNIVERSAL__
     if ( m_hMenu )
     {
         wxChar buf[1024];
@@ -2572,6 +2580,7 @@ void wxWindowMSW::MSWDetachWindowMenu()
             }
         }
     }
+#endif
 }
 
 bool wxWindowMSW::MSWCreate(int id,
@@ -3830,6 +3839,7 @@ bool wxWindowMSW::HandleKeyUp(WXWPARAM wParam, WXLPARAM lParam)
 
 bool wxWindowMSW::HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags)
 {
+#ifdef JOY_BUTTON1
     int change = 0;
     if ( flags & JOY_BUTTON1CHG )
         change = wxJOY_BUTTON1;
@@ -3906,6 +3916,9 @@ bool wxWindowMSW::HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags)
     event.SetEventObject(this);
 
     return GetEventHandler()->ProcessEvent(event);
+#else
+    return FALSE;
+#endif
 }
 
 // ---------------------------------------------------------------------------
index 40020d468ad6ecb8d1995149af65fc5457c6b746..3a1859b370ba971cd3257593b69c9c3630b8b5c6 100644 (file)
@@ -46,6 +46,7 @@
     #include "wx/combobox.h"
     #include "wx/listbox.h"
     #include "wx/textctrl.h"
+    #include "wx/bmpbuttn.h"
 
     #include "wx/validate.h"
 #endif
index b0ef47a462dab88629193d0d8d1248182978a823..a11766268e68f646ef186a93b5f9c4f76ce431ee 100644 (file)
@@ -242,7 +242,7 @@ void wxListBox::DoClear()
         size_t count = m_itemsClientData.GetCount();
         for ( size_t n = 0; n < count; n++ )
         {
-            delete m_itemsClientData[n];
+            delete (wxClientData *) m_itemsClientData[n];
         }
     }
 
@@ -275,7 +275,7 @@ void wxListBox::Delete(int n)
 
     if ( HasClientObjectData() )
     {
-        delete m_itemsClientData[n];
+        delete (wxClientData *)m_itemsClientData[n];
     }
 
     m_itemsClientData.RemoveAt(n);
index 0c9f850aa530e0594db68d23b9e63cce33e54e13..9c24407cd3dfe2309567aa9cef1dd377f240e374 100644 (file)
@@ -41,6 +41,8 @@
 
 #include "wx/popupwin.h"
 #include "wx/evtloop.h"
+#include "wx/dcclient.h"
+#include "wx/frame.h"
 
 #include "wx/univ/renderer.h"
 
index d359b2e455a0307fd8351eff11b946a6fb4a427b..852d92662181d2fd7ce3795438a0a470955b387d 100644 (file)
@@ -31,8 +31,8 @@
 
 #include "wx/imaglist.h"
 #include "wx/notebook.h"
-
 #include "wx/spinbutt.h"
+#include "wx/dcmemory.h"
 
 #include "wx/univ/renderer.h"
 
index eebe8b30626e160de416d6a6429cb8a8fc0bcf8a..36f7f0d853dcac93b6cb6ef0b045a899a8f1fa30 100644 (file)
 #include "wx/univ/renderer.h"
 #include "wx/univ/colschem.h"
 
+#if wxUSE_GAUGE
+#include "wx/gauge.h"
+#endif
+
 // ============================================================================
 // implementation
 // ============================================================================
index b0de2d829c1f06b4cf433eaa6532d2896fe1ad80..49aee0df40a63e88ba00b9564771388ea5dea537 100644 (file)
@@ -353,7 +353,7 @@ void wxScrollBar::OnIdle(wxIdleEvent& event)
             dc.DrawRectangle(rect);
 
             // under Unix we use "--sync" X option for this
-            #ifdef __WXMSW__
+            #if defined(__WXMSW__) && !defined(__WXMICROWIN__)
                 ::GdiFlush();
                 ::Sleep(200);
             #endif // __WXMSW__
index e4904c1ddd54171334b44ae3c10d084aeddc763f..47f7749cc27749a6a14d52dc9d1f30bd8df4b8d2 100644 (file)
@@ -34,6 +34,7 @@
     #include "wx/checkbox.h"
     #include "wx/listbox.h"
     #include "wx/checklst.h"
+    #include "wx/combobox.h"
     #include "wx/scrolbar.h"
     #include "wx/slider.h"
     #include "wx/textctrl.h"
index cdce6b3ab586576ebf036e5808a05b6514ae2c17..b584acc8118afb173d57121fb58f611755323f1d 100644 (file)
@@ -35,6 +35,7 @@
     #include "wx/button.h"
     #include "wx/listbox.h"
     #include "wx/checklst.h"
+    #include "wx/combobox.h"
     #include "wx/scrolbar.h"
     #include "wx/slider.h"
     #include "wx/textctrl.h"
@@ -42,6 +43,7 @@
 
 #include "wx/notebook.h"
 #include "wx/spinbutt.h"
+#include "wx/settings.h"
 
 #include "wx/univ/scrtimer.h"
 
index 1e6845686318bb56f4f09faa3b08da5f03b532c0..5066ebe080c0344db6d5350f03d9fc0929a670e5 100644 (file)
@@ -36,6 +36,7 @@
     #include "wx/event.h"
     #include "wx/scrolbar.h"
     #include "wx/menu.h"
+    #include "wx/frame.h"
 #endif // WX_PRECOMP
 
 #include "wx/univ/colschem.h"
@@ -345,7 +346,7 @@ void wxWindow::Refresh(bool eraseBackground, const wxRect *rectClient)
         dc.DrawRectangle(rectWin);
 
         // under Unix we use "--sync" X option for this
-        #ifdef __WXMSW__
+        #if defined(__WXMSW__) && !defined(__WXMICROWIN__)
             ::GdiFlush();
             ::Sleep(200);
         #endif // __WXMSW__