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:
parent
392f4b1b14
commit
5dd26b0839
@ -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
|
||||
|
@ -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 },
|
||||
|
@ -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_
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 );
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user