16-bit fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2000-01-15 10:20:46 +00:00
parent 392f4b1b14
commit 5dd26b0839
8 changed files with 22 additions and 5 deletions

View File

@ -153,7 +153,7 @@ layout.cpp C
lboxcmn.cpp C lboxcmn.cpp C
list.cpp C B list.cpp C B
log.cpp C B log.cpp C B
longlong.cpp C 32,B longlong.cpp C B
memory.cpp C memory.cpp C
menucmn.cpp C menucmn.cpp C
mimetype.cpp C 32,B mimetype.cpp C 32,B

View 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_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_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_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 // Generic command events
#define EVT_COMMAND_LEFT_CLICK(id, fn) { wxEVT_COMMAND_LEFT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL }, #define EVT_COMMAND_LEFT_CLICK(id, fn) { wxEVT_COMMAND_LEFT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },

View File

@ -60,5 +60,8 @@ protected:
#include "wx/generic/spinctlg.h" #include "wx/generic/spinctlg.h"
#endif // platform #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_ #endif // _WX_SPINCTRL_H_

View File

@ -314,8 +314,13 @@ void wxListLineData::CalculateSize( wxDC *dc, int spacing )
m_bound_all.height = lh; m_bound_all.height = lh;
if (item->HasImage()) if (item->HasImage())
{ {
#ifdef __WIN16__
int w = 0;
int h = 0;
#else
wxCoord w = 0; wxCoord w = 0;
wxCoord h = 0; wxCoord h = 0;
#endif
m_owner->GetImageSize( item->GetImage(), w, h ); m_owner->GetImageSize( item->GetImage(), w, h );
m_bound_all.width += 4 + w; m_bound_all.width += 4 + w;
if (h > m_bound_all.height) m_bound_all.height = h; if (h > m_bound_all.height) m_bound_all.height = h;

View File

@ -129,7 +129,9 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent,
wxString valStr; wxString valStr;
valStr.Printf(wxT("%lu"), m_value); valStr.Printf(wxT("%lu"), m_value);
m_spinctrl = new wxSpinCtrl(this, -1, valStr, wxDefaultPosition, wxSize( 140, -1 ) ); m_spinctrl = new wxSpinCtrl(this, -1, valStr, wxDefaultPosition, wxSize( 140, -1 ) );
#ifndef __WIN16__
m_spinctrl->SetRange((int)m_min, (int)m_max); m_spinctrl->SetRange((int)m_min, (int)m_max);
#endif
inputsizer->Add( m_spinctrl, 1, wxCENTER | wxLEFT | wxRIGHT, 10 ); inputsizer->Add( m_spinctrl, 1, wxCENTER | wxLEFT | wxRIGHT, 10 );
// add both // add both
topsizer->Add( inputsizer, 1, wxEXPAND | wxLEFT|wxRIGHT, 5 ); topsizer->Add( inputsizer, 1, wxEXPAND | wxLEFT|wxRIGHT, 5 );

View File

@ -159,7 +159,7 @@ bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat)
case CF_BITMAP: case CF_BITMAP:
return ::IsClipboardFormatAvailable(CF_DIB) != 0; return ::IsClipboardFormatAvailable(CF_DIB) != 0;
#if wxUSE_ENH_METAFILE #if wxUSE_ENH_METAFILE && !defined(__WIN16__)
case CF_METAFILEPICT: case CF_METAFILEPICT:
return ::IsClipboardFormatAvailable(CF_ENHMETAFILE) != 0; return ::IsClipboardFormatAvailable(CF_ENHMETAFILE) != 0;
#endif // wxUSE_ENH_METAFILE #endif // wxUSE_ENH_METAFILE
@ -247,7 +247,7 @@ bool wxSetClipboardData(wxDataFormat dataFormat,
} }
#endif // wxUSE_METAFILE #endif // wxUSE_METAFILE
#if wxUSE_ENH_METAFILE #if wxUSE_ENH_METAFILE && !defined(__WIN16__)
case wxDF_ENHMETAFILE: case wxDF_ENHMETAFILE:
{ {
wxEnhMetaFile *emf = (wxEnhMetaFile *)data; wxEnhMetaFile *emf = (wxEnhMetaFile *)data;

View 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! # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
# #
@ -133,6 +133,7 @@ COMMONOBJS1 = \
$(COMMDIR)\lboxcmn.obj \ $(COMMDIR)\lboxcmn.obj \
$(COMMDIR)\list.obj \ $(COMMDIR)\list.obj \
$(COMMDIR)\log.obj \ $(COMMDIR)\log.obj \
$(COMMDIR)\longlong.obj \
$(COMMDIR)\memory.obj \ $(COMMDIR)\memory.obj \
$(COMMDIR)\menucmn.obj \ $(COMMDIR)\menucmn.obj \
$(COMMDIR)\module.obj \ $(COMMDIR)\module.obj \
@ -952,6 +953,11 @@ $(COMMDIR)/log.obj: $*.$(SRCSUFF)
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF) $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<< <<
$(COMMDIR)/longlong.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(COMMDIR)/memory.obj: $*.$(SRCSUFF) $(COMMDIR)/memory.obj: $*.$(SRCSUFF)
cl @<< cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF) $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)

View File

@ -713,6 +713,7 @@ long wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
{ {
switch ( nMsg ) switch ( nMsg )
{ {
#ifndef __WIN16__
case WM_CTLCOLORSTATIC: case WM_CTLCOLORSTATIC:
// set the colour of the radio buttons to be the same as ours // 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(); return (WXHBRUSH)brush->GetResourceHandle();
} }
#endif
// This is required for the radiobox to be sensitive to mouse input, // This is required for the radiobox to be sensitive to mouse input,
// e.g. for Dialog Editor. // e.g. for Dialog Editor.