]> git.saurik.com Git - wxWidgets.git/commitdiff
16-bit fixes
authorJulian Smart <julian@anthemion.co.uk>
Sat, 15 Jan 2000 10:20:46 +0000 (10:20 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 15 Jan 2000 10:20:46 +0000 (10:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

distrib/msw/tmake/filelist.txt
include/wx/event.h
include/wx/spinctrl.h
src/generic/listctrl.cpp
src/generic/numdlgg.cpp
src/msw/clipbrd.cpp
src/msw/makefile.dos
src/msw/radiobox.cpp

index af41b40f68693ec7babd3fd8c092ed0d34618b0d..77fb7c49aa7d55a24fa5375ed80f028b98dd788b 100644 (file)
@@ -153,7 +153,7 @@ layout.cpp  C
 lboxcmn.cpp    C
 list.cpp       C       B
 log.cpp        C       B
-longlong.cpp   C       32,B
+longlong.cpp   C       B
 memory.cpp     C
 menucmn.cpp    C
 mimetype.cpp   C       32,B
index 1d97b842f8a8872460d729150196e3bb58a12b17..83d7212b5f55fdfb88009d5806b062b2cecab2d3 100644 (file)
@@ -1662,7 +1662,6 @@ const wxEventTableEntry theClass::sm_eventTableEntries[] = { \
 #define EVT_TOOL_RCLICKED_RANGE(id1, id2, fn) { wxEVT_COMMAND_TOOL_RCLICKED, id1, id2, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },
 #define EVT_TOOL_ENTER(id, fn) { wxEVT_COMMAND_TOOL_ENTER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },
 #define EVT_CHECKLISTBOX(id, fn) { wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },
-#define EVT_SPINCTRL(id, fn) { wxEVT_COMMAND_SPINCTRL_UPDATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },
 
 // Generic command events
 #define EVT_COMMAND_LEFT_CLICK(id, fn) { wxEVT_COMMAND_LEFT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },
index afa83467f3fa0d6445c2fbde4166d60404643a91..9d6cd5c3e50b8d485b500396b752b9c774c2c77a 100644 (file)
@@ -60,5 +60,8 @@ protected:
     #include "wx/generic/spinctlg.h"
 #endif // platform
 
+// Macro must be defined here, not event.h, since it must reference wxSpinEventFunction
+#define EVT_SPINCTRL(id, fn) { wxEVT_COMMAND_SPINCTRL_UPDATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & fn, (wxObject *) NULL },
+
 #endif // _WX_SPINCTRL_H_
 
index 43b025202c9a2d51241798f12b797db1b5fef977..95bad0445ee0f3a18ec6f8f04cb638267524dcee 100644 (file)
@@ -314,8 +314,13 @@ void wxListLineData::CalculateSize( wxDC *dc, int spacing )
                 m_bound_all.height = lh;
                 if (item->HasImage())
                 {
+#ifdef __WIN16__
+                    int w = 0;
+                    int h = 0;
+#else
                     wxCoord w = 0;
                     wxCoord h = 0;
+#endif
                     m_owner->GetImageSize( item->GetImage(), w, h );
                     m_bound_all.width += 4 + w;
                     if (h > m_bound_all.height) m_bound_all.height = h;
index 22455856f9169b09d1f54e3d2b8e94c1af5cb431..d40d36daad16116194e976deea898416cf81b8e9 100644 (file)
@@ -129,7 +129,9 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent,
     wxString valStr;
     valStr.Printf(wxT("%lu"), m_value);
     m_spinctrl = new wxSpinCtrl(this, -1, valStr, wxDefaultPosition, wxSize( 140, -1 ) );
+#ifndef __WIN16__
     m_spinctrl->SetRange((int)m_min, (int)m_max);
+#endif
     inputsizer->Add( m_spinctrl, 1, wxCENTER | wxLEFT | wxRIGHT, 10 );
     // add both
     topsizer->Add( inputsizer, 1, wxEXPAND | wxLEFT|wxRIGHT, 5 );
index 1166f73e3304cafe41b36d1839fdefc14e5855de..37f71481b5821d31150c4fc5ca924aae1c6c00ef 100644 (file)
@@ -159,7 +159,7 @@ bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat)
         case CF_BITMAP:
             return ::IsClipboardFormatAvailable(CF_DIB) != 0;
 
-#if wxUSE_ENH_METAFILE
+#if wxUSE_ENH_METAFILE && !defined(__WIN16__)
         case CF_METAFILEPICT:
             return ::IsClipboardFormatAvailable(CF_ENHMETAFILE) != 0;
 #endif // wxUSE_ENH_METAFILE
@@ -247,7 +247,7 @@ bool wxSetClipboardData(wxDataFormat dataFormat,
             }
 #endif // wxUSE_METAFILE
 
-#if wxUSE_ENH_METAFILE
+#if wxUSE_ENH_METAFILE && !defined(__WIN16__)
         case wxDF_ENHMETAFILE:
             {
                 wxEnhMetaFile *emf = (wxEnhMetaFile *)data;
index c88274dc83f27db4bfdd52f2c2eeb783e8ba680d..388cadba29c984e4eaad7c146d2d64b17077e617 100644 (file)
@@ -1,4 +1,4 @@
-# This file was automatically generated by tmake at 00:09, 2000/01/14
+# This file was automatically generated by tmake at 18:22, 2000/01/14
 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
 
 #
@@ -133,6 +133,7 @@ COMMONOBJS1 = \
                $(COMMDIR)\lboxcmn.obj \
                $(COMMDIR)\list.obj \
                $(COMMDIR)\log.obj \
+               $(COMMDIR)\longlong.obj \
                $(COMMDIR)\memory.obj \
                $(COMMDIR)\menucmn.obj \
                $(COMMDIR)\module.obj \
@@ -952,6 +953,11 @@ $(COMMDIR)/log.obj:     $*.$(SRCSUFF)
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
 <<
 
+$(COMMDIR)/longlong.obj:     $*.$(SRCSUFF)
+        cl @<<
+$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
+<<
+
 $(COMMDIR)/memory.obj:     $*.$(SRCSUFF)
         cl @<<
 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
index 857106acb05615788a43e72f83f1d050a290db24..a7e5101893eaa2c9ed5752282edc14e1b6706c44 100644 (file)
@@ -713,6 +713,7 @@ long wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
 {
     switch ( nMsg )
     {
+#ifndef __WIN16__
         case WM_CTLCOLORSTATIC:
             // set the colour of the radio buttons to be the same as ours
             {
@@ -726,6 +727,7 @@ long wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
 
                 return (WXHBRUSH)brush->GetResourceHandle();
             }
+#endif
 
         // This is required for the radiobox to be sensitive to mouse input,
         // e.g. for Dialog Editor.