Added some makefiles, fixed a BC++ problem in controls.cpp; changed some class

ordering for VC++ 1.5


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-11-06 17:12:10 +00:00
parent 78f071b6cc
commit 0e528b997e
28 changed files with 344 additions and 88 deletions

View File

@@ -1012,3 +1012,15 @@ samples/scrollsub/*.png
samples/scrollsub/*.ico
samples/scrollsub/*.txt
samples/menu/*.cpp
samples/menu/*.h
samples/menu/makefile*
samples/menu/*.rc
samples/menu/*.def
samples/menu/*.bmp
samples/menu/*.xpm
samples/menu/*.xbm
samples/menu/*.png
samples/menu/*.ico
samples/menu/*.txt

View File

@@ -32,7 +32,9 @@
$isCFile = $file =~ /\.c$/;
$file =~ s/cp?p?$/obj/;
$obj = "\$(COMMDIR)\\" . $file . " ";
$project{"WXCOMMONOBJS"} .= $obj;
#! $project{"WXCOMMONOBJS"} .= $obj;
#! have to split lib in 2 halves because otherwise it's too big
$project{$file =~ "^[a-o]" ? "WXCOMMONOBJS1" : "WXCOMMONOBJS2"} .= $obj;
$project{"WXCOBJS"} .= $obj if $isCFile;
}
@@ -109,9 +111,13 @@ MSWDIR=.
GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
COMMONOBJS = \
# we can't have all objects in one list because the library becomes too big
COMMONOBJS1 = \
$(COMMDIR)\y_tab.obj \
#$ ExpandList("WXCOMMONOBJS");
#$ ExpandList("WXCOMMONOBJS1");
COMMONOBJS2 = \
#$ ExpandList("WXCOMMONOBJS2");
# we can't have all objects in one list because the library becomes too big
MSWOBJS1 = #$ ExpandList("WXMSWOBJS1");
@@ -122,45 +128,55 @@ MSWOBJS2 = #$ ExpandList("WXMSWOBJS2");
# $(OLEDIR)\xpmhand \
# $(OLEDIR)\pnghand \
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
OBJECTS = $(COMMONOBJS1) $(COMMONOBJS2) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
# Normal, static library
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib $(WXDIR)\lib\wx5.lib
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS1) $(PERIPH_LIBS)
-erase $(WXDIR)\lib\wx1.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx1.lib
y
$(COMMONOBJS) $(PERIPH_LIBS)
$(COMMONOBJS1) $(PERIPH_LIBS)
nul
;
<<
$(WXDIR)\lib\wx2.lib: $(GENERICOBJS)
$(WXDIR)\lib\wx2.lib: $(COMMONOBJS2)
-erase $(WXDIR)\lib\wx2.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx2.lib
y
$(COMMONOBJS2)
nul
;
<<
$(WXDIR)\lib\wx3.lib: $(GENERICOBJS)
-erase $(WXDIR)\lib\wx3.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx3.lib
y
$(GENERICOBJS)
nul
;
<<
$(WXDIR)\lib\wx3.lib: $(MSWOBJS1)
-erase $(WXDIR)\lib\wx3.lib
$(WXDIR)\lib\wx4.lib: $(MSWOBJS1)
-erase $(WXDIR)\lib\wx4.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx3.lib
$(WXDIR)\lib\wx4.lib
y
$(MSWOBJS1)
nul
;
<<
$(WXDIR)\lib\wx4.lib: $(MSWOBJS2)
-erase $(WXDIR)\lib\wx4.lib
$(WXDIR)\lib\wx5.lib: $(MSWOBJS2)
-erase $(WXDIR)\lib\wx5.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx4.lib
$(WXDIR)\lib\wx5.lib
y
$(MSWOBJS2)
nul
@@ -184,7 +200,7 @@ $(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF)
<<
#${
$_ = $project{"WXMSWOBJS1"} . $project{"WXMSWOBJS2"} . $project{"WXCOMMONOBJS"} . $project{"WXGENERICOBJS"};
$_ = $project{"WXMSWOBJS1"} . $project{"WXMSWOBJS2"} . $project{"WXCOMMONOBJS1"} . $project{"WXCOMMONOBJS2"} . $project{"WXGENERICOBJS"};
my @objs = split;
foreach (@objs) {
if ( $project{"WXCOBJS"} =~ / \Q$_\E / ) {

View File

@@ -420,8 +420,7 @@ the front when the dialog box is popped up.
\membersection{::wxCreateFileTipProvider}\label{wxcreatefiletipprovider}
\func{wxTipProvider *}{wxCreateFileTipProvider}{
\param{const wxString\& }{filename},
\func{wxTipProvider *}{wxCreateFileTipProvider}{\param{const wxString\& }{filename},
\param{size\_t }{currentTip}}
This function creates a \helpref{wxTipProvider}{wxtipprovider} which may be
@@ -429,7 +428,7 @@ used with \helpref{wxShowTip}{wxshowtip}.
\docparam{filename}{The name of the file containing the tips, one per line}
\docparam{currentTip}{The index of the first tip to show - normally this index
is remembered between the 2 program runs.}
is remembered between the 2 program runs.}
\wxheading{See also:}
@@ -645,8 +644,7 @@ The symbols are not shown when the generic function is used.
\membersection{::wxShowTip}\label{wxshowtip}
\func{bool}{wxShowTip}{
\param{wxWindow *}{parent},
\func{bool}{wxShowTip}{\param{wxWindow *}{parent},
\param{wxTipProvider *}{tipProvider},
\param{bool }{showAtStartup = TRUE}}
@@ -655,12 +653,11 @@ This function shows a "startup tip" to the user.
\docparam{parent}{The parent window for the modal dialog}
\docparam{tipProvider}{An object which is used to get the text of the tips.
It may be created with
\helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider} function.}
It may be created with the \helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider} function.}
\docparam{showAtStartup}{Should be TRUE if startup tips are shown, FALSE
otherwise. This is used as the initial value for "Show tips at startup"
checkbox which is shown in the tips dialog.}
otherwise. This is used as the initial value for "Show tips at startup"
checkbox which is shown in the tips dialog.}
\wxheading{See also:}

View File

@@ -1,4 +1,4 @@
wxWindows 2.1.10
wxWindows 2.1.11
----------------
Welcome to wxWindows 2, a sophisticated cross-platform C++
@@ -21,20 +21,30 @@ important documents and samples.
Changes in this release
-----------------------
These are the major improvements:
These are some of the major improvements:
wxWindows 2.1.10
wxWindows 2.1.11
================
- Numerous bug fixes and consistency improvements.
- Further samples.
- Factoring out of some code into base classes, for easier
maintenance.
- Ability to compile library in console (non-GUI) mode.
- Integration of wxHTML widget and help controller into
wxWindows. wxHTML allows HTML viewing and printing.
- New classes wxChrono, wxDialUpManager, wxFontEnumerator,
wxWizard, etc.
wxWizard, wxStaticLine, etc.
- wxShowTip for showing 'startup tips' to the user.
- wxSocket and wxThread classes rewritten.
- New, consistent drag and drop API (not wxMotif).
- Better-looking dialogs in wxGTK.
- wxSizers reimplemented and used to specify window layout
for some generic dialogs.
- New, more sophisticated wxGrid class (in beta). The old grid
class can still be used.
- Text alignment options in wxStaticText.
- wxImage class extended to read PCX and GIF files.
- Documentation improvements.
Platforms supported

View File

@@ -613,6 +613,7 @@ public:
*ypos = m_y;
}
#ifndef __WIN16__
void GetPosition(long *xpos, long *ypos) const
{
if (xpos)
@@ -620,6 +621,7 @@ public:
if (ypos)
*ypos = (long)m_y;
}
#endif
// Find the position of the event
wxPoint GetPosition() const { return wxPoint(m_x, m_y); }
@@ -694,11 +696,13 @@ public:
if (ypos) *ypos = m_y;
}
#ifndef __WIN16__
void GetPosition(long *xpos, long *ypos) const
{
if (xpos) *xpos = (long)m_x;
if (ypos) *ypos = (long)m_y;
}
#endif
wxPoint GetPosition() const
{ return wxPoint(m_x, m_y); }

View File

@@ -57,9 +57,6 @@ public:
// menu construction
// -----------------
// append a separator to the menu
void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
// append a normal item to the menu
void Append(int id,
const wxString& text,
@@ -69,6 +66,9 @@ public:
DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, isCheckable));
}
// append a separator to the menu
void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
// append a submenu
void Append(int id,
const wxString& text,

View File

@@ -215,7 +215,11 @@ extern LONG APIENTRY _EXPORT
// ---------------------------------------------------------------------------
// a wrapper macro for ZeroMemory()
#ifdef __WIN32__
#define wxZeroMemory(obj) ::ZeroMemory(&obj, sizeof(obj))
#else
#define wxZeroMemory(obj) memset((void*) & obj, 0, sizeof(obj))
#endif
// make conversion from wxColour and COLORREF a bit less painful
inline COLORREF wxColourToRGB(const wxColour& c)

View File

@@ -420,6 +420,12 @@
#undef wxUSE_TOOLTIPS
#define wxUSE_TOOLTIPS 0
#undef wxUSE_SPINCTRL
#define wxUSE_SPINCTRL 0
#undef wxUSE_SPINBTN
#define wxUSE_SPINBTN 0
#undef wxUSE_LIBPNG
#define wxUSE_LIBPNG 0

View File

@@ -49,18 +49,21 @@
#ifdef __WIN16__
// Win16 doesn't have them
#undef wxUSE_SPINBUTTON
#define wxUSE_SPINBUTTON 0
#ifndef wxUSE_SPINBTN
#undef wxUSE_SPINBTN
#define wxUSE_SPINBTN 0
#else
#if !defined(wxUSE_SPINBUTTON)
#define wxUSE_SPINBUTTON 1
#if !defined(wxUSE_SPINBTN)
#define wxUSE_SPINBTN 1
#endif
#endif // __WIN16__
#include "wx/progdlg.h"
// VZ: this is a temp. hack, will remove soon
#ifndef wxUSE_SPINCTRL
#define wxUSE_SPINCTRL 1
#endif
#if wxUSE_SPINCTRL
#include "wx/spinctrl.h"
@@ -97,13 +100,13 @@ public:
void OnPageChanging( wxNotebookEvent &event );
void OnSliderUpdate( wxCommandEvent &event );
void OnUpdateLabel( wxCommandEvent &event );
#if wxUSE_SPINBUTTON
#if wxUSE_SPINBTN
void OnSpinUp( wxSpinEvent &event );
void OnSpinDown( wxSpinEvent &event );
void OnSpinUpdate( wxSpinEvent &event );
void OnUpdateShowProgress( wxUpdateUIEvent& event );
void OnShowProgress( wxCommandEvent &event );
#endif // wxUSE_SPINBUTTON
#endif // wxUSE_SPINBTN
#if wxUSE_SPINCTRL
void OnSpinCtrl(wxSpinEvent& event);
@@ -123,10 +126,10 @@ public:
wxButton *m_fontButton;
wxButton *m_lbSelectNum;
wxButton *m_lbSelectThis;
#if wxUSE_SPINBUTTON
#if wxUSE_SPINBTN
wxSpinButton *m_spinbutton;
wxButton *m_btnProgress;
#endif // wxUSE_SPINBUTTON
#endif // wxUSE_SPINBTN
#if wxUSE_SPINCTRL
wxSpinCtrl *m_spinctrl;
@@ -344,13 +347,13 @@ EVT_BUTTON (ID_RADIOBOX_FONT, MyPanel::OnRadioButtons)
EVT_CHECKBOX (ID_RADIOBOX_ENABLE, MyPanel::OnRadioButtons)
EVT_BUTTON (ID_SET_FONT, MyPanel::OnSetFont)
EVT_SLIDER (ID_SLIDER, MyPanel::OnSliderUpdate)
#if wxUSE_SPINBUTTON
#if wxUSE_SPINBTN
EVT_SPIN (ID_SPIN, MyPanel::OnSpinUpdate)
EVT_SPIN_UP (ID_SPIN, MyPanel::OnSpinUp)
EVT_SPIN_DOWN (ID_SPIN, MyPanel::OnSpinDown)
EVT_UPDATE_UI (ID_BTNPROGRESS, MyPanel::OnUpdateShowProgress)
EVT_BUTTON (ID_BTNPROGRESS, MyPanel::OnShowProgress)
#endif // wxUSE_SPINBUTTON
#endif // wxUSE_SPINBTN
#if wxUSE_SPINCTRL
EVT_SPIN (ID_SPINCTRL, MyPanel::OnSpinCtrl)
#endif // wxUSE_SPINCTRL
@@ -547,14 +550,14 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
wxString s;
s << initialSpinValue;
m_spintext = new wxTextCtrl( panel, -1, s, wxPoint(20,160), wxSize(80,-1) );
#if wxUSE_SPINBUTTON
#if wxUSE_SPINBTN
m_spinbutton = new wxSpinButton( panel, ID_SPIN, wxPoint(103,160), wxSize(80, -1) );
m_spinbutton->SetRange(-10,30);
m_spinbutton->SetValue(initialSpinValue);
m_btnProgress = new wxButton( panel, ID_BTNPROGRESS, "Show progress dialog",
wxPoint(300, 160) );
#endif // wxUSE_SPINBUTTON
#endif // wxUSE_SPINBTN
#if wxUSE_SPINCTRL
m_spinctrl = new wxSpinCtrl( panel, ID_SPINCTRL, "", wxPoint(200, 160), wxSize(80, -1) );
@@ -994,7 +997,7 @@ void MyPanel::OnSpinCtrl(wxSpinEvent& event)
#endif // wxUSE_SPINCTRL
#if wxUSE_SPINBUTTON
#if wxUSE_SPINBTN
void MyPanel::OnSpinUp( wxSpinEvent &event )
{
wxString value;
@@ -1087,7 +1090,7 @@ void MyPanel::OnShowProgress( wxCommandEvent& WXUNUSED(event) )
}
}
#endif // wxUSE_SPINBUTTON
#endif // wxUSE_SPINBTN
MyPanel::~MyPanel()
{

7
samples/font/font.def Normal file
View File

@@ -0,0 +1,7 @@
NAME Font
DESCRIPTION 'wxWindows font sample'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
HEAPSIZE 4048
STACKSIZE 16000

16
samples/font/makefile.b32 Normal file
View File

@@ -0,0 +1,16 @@
#
# File: makefile.b32
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright:
#
# Makefile : Builds sample for 32-bit BC++
WXDIR = $(WXWIN)
TARGET=font
OBJECTS = $(TARGET).obj
!include $(WXDIR)\src\makeprog.b32

19
samples/font/makefile.bcc Normal file
View File

@@ -0,0 +1,19 @@
#
# File: makefile.bcc
# Author: Julian Smart
# Created: 1998
# Updated:
#
# Builds a BC++ 16-bit sample
!if "$(WXWIN)" == ""
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
!endif
WXDIR = $(WXWIN)
TARGET=font
OBJECTS=$(TARGET).obj
!include $(WXDIR)\src\makeprog.bcc

16
samples/font/makefile.g95 Normal file
View File

@@ -0,0 +1,16 @@
#
# File: makefile.g95
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright: (c) Julian Smart, 1999
#
# Makefile for wxWindows sample (Cygwin/Mingw32).
WXDIR = ../..
TARGET=font
OBJECTS = $(TARGET).o
include $(WXDIR)\src\makeprog.g95

15
samples/font/makefile.wat Normal file
View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = font
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

16
samples/menu/makefile.b32 Normal file
View File

@@ -0,0 +1,16 @@
#
# File: makefile.b32
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright:
#
# Makefile : Builds sample for 32-bit BC++
WXDIR = $(WXWIN)
TARGET=menu
OBJECTS = $(TARGET).obj
!include $(WXDIR)\src\makeprog.b32

19
samples/menu/makefile.bcc Normal file
View File

@@ -0,0 +1,19 @@
#
# File: makefile.bcc
# Author: Julian Smart
# Created: 1998
# Updated:
#
# Builds a BC++ 16-bit sample
!if "$(WXWIN)" == ""
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
!endif
WXDIR = $(WXWIN)
TARGET=menu
OBJECTS=$(TARGET).obj
!include $(WXDIR)\src\makeprog.bcc

16
samples/menu/makefile.g95 Normal file
View File

@@ -0,0 +1,16 @@
#
# File: makefile.g95
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright: (c) Julian Smart, 1999
#
# Makefile for wxWindows sample (Cygwin/Mingw32).
WXDIR = ../..
TARGET=menu
OBJECTS = $(TARGET).o
include $(WXDIR)\src\makeprog.g95

18
samples/menu/makefile.vc Normal file
View File

@@ -0,0 +1,18 @@
#
# File: makefile.vc
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright: (c) Julian Smart
#
# Makefile : Builds sample (VC++, WIN32)
# Use FINAL=1 argument to nmake to build final version with no debug info.
# Set WXDIR for your system
WXDIR = $(WXWIN)
PROGRAM=menu
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.vc

15
samples/menu/makefile.wat Normal file
View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = menu
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

7
samples/menu/menu.def Normal file
View File

@@ -0,0 +1,7 @@
NAME Menu
DESCRIPTION 'Menu wxWindows sample'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
HEAPSIZE 4048
STACKSIZE 16000

1
samples/menu/menu.rc Normal file
View File

@@ -0,0 +1 @@
#include "wx/msw/wx.rc"

View File

@@ -9,7 +9,7 @@
# Use FINAL=1 argument to nmake to build final version with no debug info.
# Set WXDIR for your system
WXDIR = j:\dev\wx2\wxWindows
WXDIR = $(WXWIN)
PROGRAM=minimal
OBJECTS = $(PROGRAM).obj

View File

@@ -20,7 +20,7 @@
WXDIR = $(WXWIN)
WXINC = $(WXDIR)\include
WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib $(WXDIR)\lib\wx5.lib
# Suffixes
OBJSUFF=obj

View File

@@ -397,6 +397,7 @@ wxFont wxCreateFontFromLogFont(const LOGFONT *logFont)
fontEncoding = wxFONTENCODING_CP1252;
break;
#ifdef __WIN32__
case EASTEUROPE_CHARSET:
fontEncoding = wxFONTENCODING_CP1250;
break;
@@ -424,6 +425,7 @@ wxFont wxCreateFontFromLogFont(const LOGFONT *logFont)
case TURKISH_CHARSET:
fontEncoding = wxFONTENCODING_CP1254;
break;
#endif
case OEM_CHARSET:
fontEncoding = wxFONTENCODING_CP437;

View File

@@ -1,4 +1,4 @@
# This file was automatically generated by tmake at 00:24, 1999/10/28
# This file was automatically generated by tmake at 11:56, 1999/11/06
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
#
@@ -83,7 +83,8 @@ GENERICOBJS= $(GENDIR)\busyinfo.obj \
$(GENDIR)\treectrl.obj \
$(GENDIR)\wizard.obj
COMMONOBJS = \
# we can't have all objects in one list because the library becomes too big
COMMONOBJS1 = \
$(COMMDIR)\y_tab.obj \
$(COMMDIR)\appcmn.obj \
$(COMMDIR)\choiccmn.obj \
@@ -111,6 +112,7 @@ COMMONOBJS = \
$(COMMDIR)\filefn.obj \
$(COMMDIR)\filesys.obj \
$(COMMDIR)\fontcmn.obj \
$(COMMDIR)\fontmap.obj \
$(COMMDIR)\framecmn.obj \
$(COMMDIR)\fs_inet.obj \
$(COMMDIR)\fs_zip.obj \
@@ -134,7 +136,9 @@ COMMONOBJS = \
$(COMMDIR)\mstream.obj \
$(COMMDIR)\object.obj \
$(COMMDIR)\objstrm.obj \
$(COMMDIR)\odbc.obj \
$(COMMDIR)\odbc.obj
COMMONOBJS2 = \
$(COMMDIR)\paper.obj \
$(COMMDIR)\prntbase.obj \
$(COMMDIR)\resource.obj \
@@ -196,6 +200,7 @@ MSWOBJS1 = $(MSWDIR)\accel.obj \
$(MSWDIR)\filedlg.obj \
$(MSWDIR)\font.obj \
$(MSWDIR)\fontdlg.obj \
$(MSWDIR)\fontutil.obj \
$(MSWDIR)\frame.obj \
$(MSWDIR)\gaugemsw.obj \
$(MSWDIR)\gdiobj.obj \
@@ -246,45 +251,55 @@ MSWOBJS2 = $(MSWDIR)\palette.obj \
# $(OLEDIR)\xpmhand \
# $(OLEDIR)\pnghand \
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
OBJECTS = $(COMMONOBJS1) $(COMMONOBJS2) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
# Normal, static library
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib $(WXDIR)\lib\wx5.lib
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS1) $(PERIPH_LIBS)
-erase $(WXDIR)\lib\wx1.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx1.lib
y
$(COMMONOBJS) $(PERIPH_LIBS)
$(COMMONOBJS1) $(PERIPH_LIBS)
nul
;
<<
$(WXDIR)\lib\wx2.lib: $(GENERICOBJS)
$(WXDIR)\lib\wx2.lib: $(COMMONOBJS2)
-erase $(WXDIR)\lib\wx2.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx2.lib
y
$(COMMONOBJS2)
nul
;
<<
$(WXDIR)\lib\wx3.lib: $(GENERICOBJS)
-erase $(WXDIR)\lib\wx3.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx3.lib
y
$(GENERICOBJS)
nul
;
<<
$(WXDIR)\lib\wx3.lib: $(MSWOBJS1)
-erase $(WXDIR)\lib\wx3.lib
$(WXDIR)\lib\wx4.lib: $(MSWOBJS1)
-erase $(WXDIR)\lib\wx4.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx3.lib
$(WXDIR)\lib\wx4.lib
y
$(MSWOBJS1)
nul
;
<<
$(WXDIR)\lib\wx4.lib: $(MSWOBJS2)
-erase $(WXDIR)\lib\wx4.lib
$(WXDIR)\lib\wx5.lib: $(MSWOBJS2)
-erase $(WXDIR)\lib\wx5.lib
lib /PAGESIZE:128 @<<
$(WXDIR)\lib\wx4.lib
$(WXDIR)\lib\wx5.lib
y
$(MSWOBJS2)
nul
@@ -462,6 +477,11 @@ $(MSWDIR)/fontdlg.obj: $*.$(SRCSUFF)
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(MSWDIR)/fontutil.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(MSWDIR)/frame.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
@@ -812,6 +832,11 @@ $(COMMDIR)/fontcmn.obj: $*.$(SRCSUFF)
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(COMMDIR)/fontmap.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(COMMDIR)/framecmn.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)

View File

@@ -439,7 +439,7 @@ bool wxMenu::ProcessCommand(wxCommandEvent & event)
(void)(*(m_callback))(*this, event);
processed = TRUE;
}
#endif WXWIN_COMPATIBILITY
#endif // WXWIN_COMPATIBILITY
// Try the menu's event handler
if ( !processed && GetEventHandler())

View File

@@ -35,6 +35,8 @@
// Can't resolve reference to CreateUpDownControl in
// TWIN32, but could probably use normal CreateWindow instead.
#if wxUSE_SPINBTN
#if defined(__WIN95__) && !defined(__TWIN32__)
#include "wx/spinbutt.h"
@@ -240,3 +242,7 @@ bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id)
}
#endif // __WIN95__
#endif
// wxUSE_SPINCTN

View File

@@ -33,6 +33,8 @@
#include "wx/wx.h"
#endif
#if wxUSE_SPINCTRL
#if defined(__WIN95__)
#include "wx/spinctrl.h"
@@ -245,3 +247,7 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height)
}
#endif // __WIN95__
#endif
// wxUSE_SPINCTRL