Some doc corrections (added blank lines at end of docs); corrected Forty sample
dialog behaviour; added dummy menubar constructors; corrected wxMSW wxRegion bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10,6 +10,8 @@ mkinstalldirs
|
|||||||
wxGTK.spec
|
wxGTK.spec
|
||||||
|
|
||||||
distrib/gtk/copy_src
|
distrib/gtk/copy_src
|
||||||
|
distrib/gtk/README.txt
|
||||||
|
distrib/gtk/Setup
|
||||||
|
|
||||||
docs/gtk/*.html
|
docs/gtk/*.html
|
||||||
docs/gtk/*.txt
|
docs/gtk/*.txt
|
||||||
|
@@ -4,9 +4,13 @@ wxWindows Buglist
|
|||||||
wxGTK:
|
wxGTK:
|
||||||
------
|
------
|
||||||
|
|
||||||
|
- TODO
|
||||||
|
|
||||||
wxMSW:
|
wxMSW:
|
||||||
------
|
------
|
||||||
|
|
||||||
|
- TODO
|
||||||
|
|
||||||
wxMotif:
|
wxMotif:
|
||||||
--------
|
--------
|
||||||
|
|
||||||
@@ -28,6 +32,20 @@ wxMotif:
|
|||||||
- Can't set the colours for the buttons in the file selector, for
|
- Can't set the colours for the buttons in the file selector, for
|
||||||
some reason.
|
some reason.
|
||||||
|
|
||||||
|
- On SGI IRIX 6.4, XtDestroyWidget in ~wxWindow causes a crash in
|
||||||
|
some cicumstances. This is being looked into. Meanwhile, a
|
||||||
|
possible workaround is to remove the final XtDestroyWidget line in ~wxWindow
|
||||||
|
(window.cpp). This will mean that child windows will only get
|
||||||
|
destroyed when frames and dialogs are destroyed, so dynamic subwindow
|
||||||
|
deletion may not work properly.
|
||||||
|
|
||||||
|
- There are reports that scrolling can cause crashes under Lesstif.
|
||||||
|
This is probably a Lesstif bug.
|
||||||
|
|
||||||
General:
|
General:
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
- Dialog Editor could be more user-friendly. Controls are hard to
|
||||||
|
size and position accurately. No way of changing tab order
|
||||||
|
except by editing .wxr file.
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@ wxMSW:
|
|||||||
|
|
||||||
- Makefiles for more compilers and samples; Cygwin makefiles
|
- Makefiles for more compilers and samples; Cygwin makefiles
|
||||||
rationalised.
|
rationalised.
|
||||||
- Added VC++ project file for compiling as DLL.
|
- Added VC++ project file for compiling wxWindows as DLL.
|
||||||
|
|
||||||
wxMotif:
|
wxMotif:
|
||||||
|
|
||||||
|
@@ -191,7 +191,7 @@ $$\image{14cm;0cm}{wxclass.ps}$$
|
|||||||
\input strlist.tex
|
\input strlist.tex
|
||||||
\input strmbase.tex
|
\input strmbase.tex
|
||||||
\input stream.tex
|
\input stream.tex
|
||||||
\input strmmem.tex
|
%\input strmmem.tex
|
||||||
\input sysclevt.tex
|
\input sysclevt.tex
|
||||||
\input settings.tex
|
\input settings.tex
|
||||||
\input tab.tex
|
\input tab.tex
|
||||||
|
@@ -24,3 +24,4 @@ Initializes a "filter" stream. A filter stream has the capability of a normal
|
|||||||
stream but it can be placed on the top of another stream. So, for example, it
|
stream but it can be placed on the top of another stream. So, for example, it
|
||||||
can uncompress, uncrypt the datas which are read from another stream and pass it
|
can uncompress, uncrypt the datas which are read from another stream and pass it
|
||||||
to the requester.
|
to the requester.
|
||||||
|
|
||||||
|
@@ -24,3 +24,4 @@ Initializes a "filter" stream. A filter stream has the capability of a normal
|
|||||||
stream but it can be placed on the top of another stream. So, for example, it
|
stream but it can be placed on the top of another stream. So, for example, it
|
||||||
can compress, crypt the datas which are passed to it and write them to another
|
can compress, crypt the datas which are passed to it and write them to another
|
||||||
stream.
|
stream.
|
||||||
|
|
||||||
|
@@ -98,3 +98,4 @@ Sets the authentication user. It is mainly useful when FTP is used.
|
|||||||
\func{void}{SetPassword}{\param{const wxString\&}{ user}}
|
\func{void}{SetPassword}{\param{const wxString\&}{ user}}
|
||||||
|
|
||||||
Sets the authentication password. It is mainly useful when FTP is used.
|
Sets the authentication password. It is mainly useful when FTP is used.
|
||||||
|
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
\section{Validator overview}\label{validatoroverview}
|
\section{Validator overview}\label{validatoroverview}
|
||||||
|
|
||||||
Classes: \helpref{wxValidator}{wxvalidator}, \helpref{wxTextValidator}{wxtextvalidator}
|
Classes: \helpref{wxValidator}{wxvalidator}, \helpref{wxTextValidator}{wxtextvalidator},
|
||||||
|
\helpref{wxGenericValidator}{wxgenericvalidator}
|
||||||
|
|
||||||
The aim of the validator concept is to make dialogs very much easier to write.
|
The aim of the validator concept is to make dialogs very much easier to write.
|
||||||
A validator is an object that can be plugged into a control (such as a wxTextCtrl), and
|
A validator is an object that can be plugged into a control (such as a wxTextCtrl), and
|
||||||
@@ -8,8 +9,10 @@ mediates between C++ data and the control, transferring the data in either direc
|
|||||||
and validating it. It also is able to intercept events generated
|
and validating it. It also is able to intercept events generated
|
||||||
by the control, providing filtering behaviour without the need to derive a new control class.
|
by the control, providing filtering behaviour without the need to derive a new control class.
|
||||||
|
|
||||||
You can use a stock validator, such as \helpref{wxTextValidator}{wxtextvalidator}; or
|
You can use a stock validator, such as \helpref{wxTextValidator}{wxtextvalidator} (which does text
|
||||||
you can write your own.
|
control data transfer, validation and filtering) and
|
||||||
|
\helpref{wxGenericValidator}{wxgenericvalidator} (which does data transfer for a range of controls);
|
||||||
|
or you can write your own.
|
||||||
|
|
||||||
\wxheading{Example}
|
\wxheading{Example}
|
||||||
|
|
||||||
@@ -114,3 +117,6 @@ void wxDialog::OnOK(wxCommandEvent& event)
|
|||||||
So if using validators and a normal OK button, you may not even need to write any
|
So if using validators and a normal OK button, you may not even need to write any
|
||||||
code for handling dialog dismissal.
|
code for handling dialog dismissal.
|
||||||
|
|
||||||
|
If you load your dialog from a resource file, you'll need to iterate through the controls
|
||||||
|
setting validators, since validators can't be specified in a dialog resource.
|
||||||
|
|
||||||
|
@@ -118,6 +118,15 @@ Troubleshooting
|
|||||||
functions, try putting the gcc fixinclude file paths early in the
|
functions, try putting the gcc fixinclude file paths early in the
|
||||||
include path.
|
include path.
|
||||||
|
|
||||||
|
- If you get strange memory problems (for example in deletion
|
||||||
|
of string arrays), set wxUSE_GLOBAL_MEMORY_OPERATORS to 0 in
|
||||||
|
setup.h, and recompile.
|
||||||
|
|
||||||
|
- Problems with XtDestroyWidget crashing in ~wxWindow have been
|
||||||
|
reported on SGI IRIX 6.4. This has not yet been resolved, so
|
||||||
|
any advice here would be very welcome. See bugs.txt for a
|
||||||
|
possible temporary workaround.
|
||||||
|
|
||||||
Other Notes
|
Other Notes
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
@@ -163,6 +172,5 @@ compiler and the error message(s) to the wxwin-users mailing list at:
|
|||||||
|
|
||||||
wxwin-users@wx.dent.med.uni-muenchen.de
|
wxwin-users@wx.dent.med.uni-muenchen.de
|
||||||
|
|
||||||
|
Julian Smart, February 1999.
|
||||||
Julian Smart, January 1999.
|
|
||||||
julian.smart@ukonline.co.uk
|
julian.smart@ukonline.co.uk
|
||||||
|
@@ -60,7 +60,10 @@ Using project files:
|
|||||||
|
|
||||||
1. Unarchive wx200vc.zip, the VC++ 5 project makefiles.
|
1. Unarchive wx200vc.zip, the VC++ 5 project makefiles.
|
||||||
2. Open src/wxvc.dsp, set Debug or Release configuration, and
|
2. Open src/wxvc.dsp, set Debug or Release configuration, and
|
||||||
compile. This will produce lib/wxvc.lib or lib/wxvc_debug.lib.
|
compile. This will produce src/Debug/wxvc.lib or
|
||||||
|
src/Release/wxvc.lib. The project file src/wxvc_dll.dsp
|
||||||
|
will make a DLL version of wxWindow, which will go in
|
||||||
|
src/DebugDLL/wxvc.[lib,dll] and src/ReleaseDLL/wxvc.[lib,dll].
|
||||||
3. Open a sample project file, choose a configuration, and compile.
|
3. Open a sample project file, choose a configuration, and compile.
|
||||||
The project files don't use precompiled headers, to save
|
The project files don't use precompiled headers, to save
|
||||||
space, but you can switch PCH compiling on for greater speed.
|
space, but you can switch PCH compiling on for greater speed.
|
||||||
@@ -154,8 +157,8 @@ supplied.
|
|||||||
Watcom C++ 10.6 compilation
|
Watcom C++ 10.6 compilation
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
1. Make sure your WXWIN variable is set, and uses the FAT (short
|
1. Make sure your WXWIN variable is set, and uses the DOS short
|
||||||
name) form.
|
name form.
|
||||||
2. Change directory to wx\src\msw. Type 'wmake -f makefile.wat' to
|
2. Change directory to wx\src\msw. Type 'wmake -f makefile.wat' to
|
||||||
make the wxWindows core library.
|
make the wxWindows core library.
|
||||||
3. Change directory to wx\samples\minimal and type 'wmake -f makefile.wat'
|
3. Change directory to wx\samples\minimal and type 'wmake -f makefile.wat'
|
||||||
@@ -268,6 +271,8 @@ Here are the steps required:
|
|||||||
> cd c:\wx\samples\minimal
|
> cd c:\wx\samples\minimal
|
||||||
> make -f makefile.g95
|
> make -f makefile.g95
|
||||||
|
|
||||||
|
Ignore the warning about the default entry point.
|
||||||
|
|
||||||
- Use the 'strip' command to reduce executable size.
|
- Use the 'strip' command to reduce executable size.
|
||||||
|
|
||||||
- With Cygnus Cygwin, you can invoke gdb --nw myfile.exe to
|
- With Cygnus Cygwin, you can invoke gdb --nw myfile.exe to
|
||||||
|
@@ -96,7 +96,7 @@ The wxWindows Web site is located at:
|
|||||||
|
|
||||||
http://www.wxwindows.org
|
http://www.wxwindows.org
|
||||||
|
|
||||||
The wxGTK Web site (with further wxGTK-specific fiels and
|
The wxGTK Web site (with further wxGTK-specific files and
|
||||||
information) is located at:
|
information) is located at:
|
||||||
|
|
||||||
http://www.freiburg.linux.de/~wxxt
|
http://www.freiburg.linux.de/~wxxt
|
||||||
@@ -115,5 +115,5 @@ or contact Julian Smart <julian.smart@ukonline.co.uk>.
|
|||||||
|
|
||||||
Good luck!
|
Good luck!
|
||||||
|
|
||||||
The wxWindows Team, January 1999
|
The wxWindows Team, February 1999
|
||||||
|
|
||||||
|
@@ -144,7 +144,7 @@ public:
|
|||||||
wxBitmap(char **data, wxControl* control = NULL);
|
wxBitmap(char **data, wxControl* control = NULL);
|
||||||
|
|
||||||
// Load a file or resource
|
// Load a file or resource
|
||||||
wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_XBM);
|
wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_XPM);
|
||||||
|
|
||||||
// Constructor for generalised creation from data
|
// Constructor for generalised creation from data
|
||||||
wxBitmap(void *data, long type, int width, int height, int depth = 1);
|
wxBitmap(void *data, long type, int width, int height, int depth = 1);
|
||||||
@@ -155,7 +155,7 @@ public:
|
|||||||
|
|
||||||
virtual bool Create(int width, int height, int depth = -1);
|
virtual bool Create(int width, int height, int depth = -1);
|
||||||
virtual bool Create(void *data, long type, int width, int height, int depth = 1);
|
virtual bool Create(void *data, long type, int width, int height, int depth = 1);
|
||||||
virtual bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XBM);
|
virtual bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XPM);
|
||||||
virtual bool SaveFile(const wxString& name, int type, const wxPalette *cmap = NULL);
|
virtual bool SaveFile(const wxString& name, int type, const wxPalette *cmap = NULL);
|
||||||
|
|
||||||
inline bool Ok() const { return (M_BITMAPDATA && M_BITMAPDATA->m_ok); }
|
inline bool Ok() const { return (M_BITMAPDATA && M_BITMAPDATA->m_ok); }
|
||||||
|
@@ -50,14 +50,14 @@ public:
|
|||||||
// Initialize with XPM data
|
// Initialize with XPM data
|
||||||
wxIcon(char **data);
|
wxIcon(char **data);
|
||||||
|
|
||||||
wxIcon(const wxString& name, long flags = wxBITMAP_TYPE_ICO_RESOURCE,
|
wxIcon(const wxString& name, long flags = wxBITMAP_TYPE_XPM,
|
||||||
int desiredWidth = -1, int desiredHeight = -1);
|
int desiredWidth = -1, int desiredHeight = -1);
|
||||||
~wxIcon();
|
~wxIcon();
|
||||||
|
|
||||||
bool LoadFile(const wxString& name, long flags = wxBITMAP_TYPE_ICO_RESOURCE,
|
bool LoadFile(const wxString& name, long flags = wxBITMAP_TYPE_XPM,
|
||||||
int desiredWidth = -1, int desiredHeight = -1);
|
int desiredWidth = -1, int desiredHeight = -1);
|
||||||
bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XBM)
|
// bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XBM)
|
||||||
{ return wxBitmap::LoadFile(name, type); }
|
// { return wxBitmap::LoadFile(name, type); }
|
||||||
|
|
||||||
inline wxIcon& operator = (const wxIcon& icon) { if (*this == icon) return (*this); Ref(icon); return *this; }
|
inline wxIcon& operator = (const wxIcon& icon) { if (*this == icon) return (*this); Ref(icon); return *this; }
|
||||||
inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
|
inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
|
||||||
|
@@ -169,6 +169,7 @@ class WXDLLEXPORT wxMenuBar: public wxEvtHandler
|
|||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxMenuBar)
|
DECLARE_DYNAMIC_CLASS(wxMenuBar)
|
||||||
|
|
||||||
|
wxMenuBar( long style );
|
||||||
wxMenuBar();
|
wxMenuBar();
|
||||||
wxMenuBar(int n, wxMenu *menus[], const wxString titles[]);
|
wxMenuBar(int n, wxMenu *menus[], const wxString titles[]);
|
||||||
~wxMenuBar();
|
~wxMenuBar();
|
||||||
|
@@ -143,6 +143,7 @@ class WXDLLEXPORT wxMenuBar: public wxEvtHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxMenuBar();
|
wxMenuBar();
|
||||||
|
wxMenuBar( long style );
|
||||||
wxMenuBar(int n, wxMenu *menus[], const wxString titles[]);
|
wxMenuBar(int n, wxMenu *menus[], const wxString titles[]);
|
||||||
~wxMenuBar();
|
~wxMenuBar();
|
||||||
|
|
||||||
|
@@ -42,27 +42,27 @@ class WXDLLEXPORT wxPropertySheet: public wxObject
|
|||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxPropertySheet)
|
DECLARE_DYNAMIC_CLASS(wxPropertySheet)
|
||||||
public:
|
public:
|
||||||
wxPropertySheet(wxString name = "");
|
wxPropertySheet(const wxString& name = "");
|
||||||
~wxPropertySheet(void);
|
~wxPropertySheet(void);
|
||||||
|
|
||||||
// Set the name of the sheet
|
// Set the name of the sheet
|
||||||
inline virtual void SetName(wxString name) { m_name=name; }
|
inline virtual void SetName(const wxString& name) { m_name=name; }
|
||||||
inline virtual wxString GetName() { return m_name; }
|
inline virtual wxString GetName() const { return m_name; }
|
||||||
// Does this sheet contain a property with this name
|
// Does this sheet contain a property with this name
|
||||||
virtual bool HasProperty(wxString name);
|
virtual bool HasProperty(const wxString& name) const;
|
||||||
|
|
||||||
// Set property name to value
|
// Set property name to value
|
||||||
virtual bool SetProperty(const wxString name, wxPropertyValue value);
|
virtual bool SetProperty(const wxString& name, const wxPropertyValue& value);
|
||||||
|
|
||||||
// Remove property from sheet by name, deleting it
|
// Remove property from sheet by name, deleting it
|
||||||
virtual void RemoveProperty(wxString name);
|
virtual void RemoveProperty(const wxString& name);
|
||||||
|
|
||||||
// Get the name of the sheet
|
// Get the name of the sheet
|
||||||
// Add a property
|
// Add a property
|
||||||
virtual void AddProperty(wxProperty *property);
|
virtual void AddProperty(wxProperty *property);
|
||||||
|
|
||||||
// Get property by name
|
// Get property by name
|
||||||
virtual wxProperty *GetProperty(wxString name);
|
virtual wxProperty *GetProperty(const wxString& name) const;
|
||||||
|
|
||||||
// Clear all properties
|
// Clear all properties
|
||||||
virtual void Clear(void);
|
virtual void Clear(void);
|
||||||
|
@@ -51,7 +51,6 @@ FortyCanvas::FortyCanvas(wxWindow* parent, int x, int y, int w, int h) :
|
|||||||
m_font = wxTheFontList->FindOrCreateFont(10, wxSWISS, wxNORMAL, wxNORMAL);
|
m_font = wxTheFontList->FindOrCreateFont(10, wxSWISS, wxNORMAL, wxNORMAL);
|
||||||
#endif
|
#endif
|
||||||
SetBackgroundColour(FortyApp::BackgroundColour());
|
SetBackgroundColour(FortyApp::BackgroundColour());
|
||||||
AllowDoubleClick(TRUE);
|
|
||||||
|
|
||||||
m_handCursor = new wxCursor(wxCURSOR_HAND);
|
m_handCursor = new wxCursor(wxCURSOR_HAND);
|
||||||
m_arrowCursor = new wxCursor(wxCURSOR_ARROW);
|
m_arrowCursor = new wxCursor(wxCURSOR_ARROW);
|
||||||
@@ -108,7 +107,7 @@ void FortyCanvas::OnDraw(wxDC& dc)
|
|||||||
m_scoreFile->ReadPlayersScore(m_player, wins, games, score);
|
m_scoreFile->ReadPlayersScore(m_player, wins, games, score);
|
||||||
m_game->NewPlayer(wins, games, score);
|
m_game->NewPlayer(wins, games, score);
|
||||||
m_game->DisplayScore(dc);
|
m_game->DisplayScore(dc);
|
||||||
delete m_playerDialog;
|
m_playerDialog->Destroy();
|
||||||
m_playerDialog = 0;
|
m_playerDialog = 0;
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
#include "forty.h"
|
#include "forty.h"
|
||||||
#include "card.h"
|
#include "card.h"
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#if defined(__WXGTK__) || defined(__WXMOTIF__)
|
||||||
#include "pictures.xpm"
|
#include "pictures.xpm"
|
||||||
#include "symbols.xbm"
|
#include "symbols.xbm"
|
||||||
#endif
|
#endif
|
||||||
|
@@ -172,7 +172,7 @@ void PlayerSelectionDialog::ButtonCallback(wxCommandEvent& event)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_player = name;
|
m_player = name;
|
||||||
Show(FALSE);
|
EndModal(wxID_OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -183,6 +183,6 @@ void PlayerSelectionDialog::ButtonCallback(wxCommandEvent& event)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_player = "";
|
m_player = "";
|
||||||
Show(FALSE);
|
EndModal(wxID_CANCEL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
# "%W% %G%"
|
# "%W% %G%"
|
||||||
#
|
#
|
||||||
# Makefile : Builds samples for Win95, BC++ WIN32
|
# Makefile : Builds samples for Win95, BC++ WIN32
|
||||||
# Use FINAL=1 argument to nmake to build final version with no debugging
|
# Use FINAL=1 argument to make to build final version with no debugging
|
||||||
# info
|
# info
|
||||||
|
|
||||||
# Set WXDIR for your system
|
# Set WXDIR for your system
|
||||||
@@ -16,146 +16,144 @@ WXDIR = $(WXWIN)
|
|||||||
|
|
||||||
THISDIR=$(WXDIR)\samples
|
THISDIR=$(WXDIR)\samples
|
||||||
|
|
||||||
!include $(WXDIR)\src\makevc.env
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
cd $(WXDIR)\samples\splitter
|
cd $(WXDIR)\samples\splitter
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\resource
|
cd $(WXDIR)\samples\resource
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\controls
|
cd $(WXDIR)\samples\controls
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\listctrl
|
cd $(WXDIR)\samples\listctrl
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\treectrl
|
cd $(WXDIR)\samples\treectrl
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\validate
|
cd $(WXDIR)\samples\validate
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\mdi
|
cd $(WXDIR)\samples\mdi
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\minimal
|
cd $(WXDIR)\samples\minimal
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\layout
|
cd $(WXDIR)\samples\layout
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\printing
|
cd $(WXDIR)\samples\printing
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\toolbar
|
cd $(WXDIR)\samples\toolbar
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\dialogs
|
cd $(WXDIR)\samples\dialogs
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\docview
|
cd $(WXDIR)\samples\docview
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\docvwmdi
|
cd $(WXDIR)\samples\docvwmdi
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\controls
|
cd $(WXDIR)\samples\controls
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\nativdlg
|
cd $(WXDIR)\samples\nativdlg
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\grid
|
cd $(WXDIR)\samples\grid
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\internat
|
cd $(WXDIR)\samples\internat
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\dnd
|
cd $(WXDIR)\samples\dnd
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\joytest
|
cd $(WXDIR)\samples\joytest
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\taskbar
|
cd $(WXDIR)\samples\taskbar
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\sashtest
|
cd $(WXDIR)\samples\sashtest
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
!if "$(FINAL)" == "0"
|
!if "$(FINAL)" == "0"
|
||||||
cd $(WXDIR)\samples\memcheck
|
cd $(WXDIR)\samples\memcheck
|
||||||
!endif
|
!endif
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\ownerdrw
|
cd $(WXDIR)\samples\ownerdrw
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\checklst
|
cd $(WXDIR)\samples\checklst
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\minifram
|
cd $(WXDIR)\samples\minifram
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\bombs
|
cd $(WXDIR)\samples\bombs
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\fractal
|
cd $(WXDIR)\samples\fractal
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\wxpoem
|
cd $(WXDIR)\samples\wxpoem
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\typetest
|
cd $(WXDIR)\samples\typetest
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\proplist
|
cd $(WXDIR)\samples\proplist
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\image
|
cd $(WXDIR)\samples\image
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\samples\dde
|
cd $(WXDIR)\samples\dde
|
||||||
nmake -f makefile.b32 FINAL=$(FINAL)
|
make -f makefile.b32 FINAL=$(FINAL)
|
||||||
# cd $(WXDIR)\samples\regtest
|
# cd $(WXDIR)\samples\regtest
|
||||||
# nmake -f makefile.b32 FINAL=$(FINAL)
|
# make -f makefile.b32 FINAL=$(FINAL)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cd $(WXDIR)\samples\splitter
|
cd $(WXDIR)\samples\splitter
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\mdi
|
cd $(WXDIR)\samples\mdi
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\minimal
|
cd $(WXDIR)\samples\minimal
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\layout
|
cd $(WXDIR)\samples\layout
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\printing
|
cd $(WXDIR)\samples\printing
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\toolbar
|
cd $(WXDIR)\samples\toolbar
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\dialogs
|
cd $(WXDIR)\samples\dialogs
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\resource
|
cd $(WXDIR)\samples\resource
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\listctrl
|
cd $(WXDIR)\samples\listctrl
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\treectrl
|
cd $(WXDIR)\samples\treectrl
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\validate
|
cd $(WXDIR)\samples\validate
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\docview
|
cd $(WXDIR)\samples\docview
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\docvwmdi
|
cd $(WXDIR)\samples\docvwmdi
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\controls
|
cd $(WXDIR)\samples\controls
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\nativdlg
|
cd $(WXDIR)\samples\nativdlg
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\grid
|
cd $(WXDIR)\samples\grid
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\internat
|
cd $(WXDIR)\samples\internat
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\checklst
|
cd $(WXDIR)\samples\checklst
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\ownerdrw
|
cd $(WXDIR)\samples\ownerdrw
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\dnd
|
cd $(WXDIR)\samples\dnd
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\joytest
|
cd $(WXDIR)\samples\joytest
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\regtest
|
cd $(WXDIR)\samples\regtest
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\taskbar
|
cd $(WXDIR)\samples\taskbar
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\sashtest
|
cd $(WXDIR)\samples\sashtest
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\memcheck
|
cd $(WXDIR)\samples\memcheck
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\minifram
|
cd $(WXDIR)\samples\minifram
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\bombs
|
cd $(WXDIR)\samples\bombs
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\fractal
|
cd $(WXDIR)\samples\fractal
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\wxpoem
|
cd $(WXDIR)\samples\wxpoem
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\typetest
|
cd $(WXDIR)\samples\typetest
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\proplist
|
cd $(WXDIR)\samples\proplist
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\image
|
cd $(WXDIR)\samples\image
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples\dde
|
cd $(WXDIR)\samples\dde
|
||||||
nmake -f makefile.b32 clean
|
make -f makefile.b32 clean
|
||||||
cd $(WXDIR)\samples
|
cd $(WXDIR)\samples
|
||||||
|
|
||||||
|
@@ -941,7 +941,7 @@ wxPropertyValidator *wxPropertyView::FindPropertyValidator(wxProperty *property)
|
|||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxPropertySheet, wxObject)
|
IMPLEMENT_DYNAMIC_CLASS(wxPropertySheet, wxObject)
|
||||||
|
|
||||||
wxPropertySheet::wxPropertySheet(wxString name)
|
wxPropertySheet::wxPropertySheet(const wxString& name)
|
||||||
:m_properties(wxKEY_STRING),m_name(name)
|
:m_properties(wxKEY_STRING),m_name(name)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -972,7 +972,7 @@ void wxPropertySheet::AddProperty(wxProperty *property)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get property by name
|
// Get property by name
|
||||||
wxProperty *wxPropertySheet::GetProperty(wxString name)
|
wxProperty *wxPropertySheet::GetProperty(const wxString& name) const
|
||||||
{
|
{
|
||||||
wxNode *node = m_properties.Find((const char*) name);
|
wxNode *node = m_properties.Find((const char*) name);
|
||||||
if (!node)
|
if (!node)
|
||||||
@@ -980,7 +980,8 @@ wxProperty *wxPropertySheet::GetProperty(wxString name)
|
|||||||
else
|
else
|
||||||
return (wxProperty *)node->Data();
|
return (wxProperty *)node->Data();
|
||||||
}
|
}
|
||||||
bool wxPropertySheet::SetProperty(const wxString name, wxPropertyValue value)
|
|
||||||
|
bool wxPropertySheet::SetProperty(const wxString& name, const wxPropertyValue& value)
|
||||||
{
|
{
|
||||||
wxProperty* prop = GetProperty(name);
|
wxProperty* prop = GetProperty(name);
|
||||||
if(prop){
|
if(prop){
|
||||||
@@ -990,7 +991,8 @@ bool wxPropertySheet::SetProperty(const wxString name, wxPropertyValue value)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void wxPropertySheet::RemoveProperty(wxString name)
|
|
||||||
|
void wxPropertySheet::RemoveProperty(const wxString& name)
|
||||||
{
|
{
|
||||||
wxNode *node = m_properties.Find(name);
|
wxNode *node = m_properties.Find(name);
|
||||||
if(node)
|
if(node)
|
||||||
@@ -1000,10 +1002,12 @@ void wxPropertySheet::RemoveProperty(wxString name)
|
|||||||
m_properties.DeleteNode(node);
|
m_properties.DeleteNode(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool wxPropertySheet::HasProperty(wxString name)
|
|
||||||
|
bool wxPropertySheet::HasProperty(const wxString& name) const
|
||||||
{
|
{
|
||||||
return (GetProperty(name)?TRUE:FALSE);
|
return (GetProperty(name)?TRUE:FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear all properties
|
// Clear all properties
|
||||||
void wxPropertySheet::Clear(void)
|
void wxPropertySheet::Clear(void)
|
||||||
{
|
{
|
||||||
|
@@ -42,7 +42,7 @@ wxControl::~wxControl()
|
|||||||
if (parent)
|
if (parent)
|
||||||
{
|
{
|
||||||
if (parent->GetDefaultItem() == (wxButton*) this)
|
if (parent->GetDefaultItem() == (wxButton*) this)
|
||||||
parent->SetDefaultItem(NULL);
|
parent->SetDefaultItem((wxButton*) NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -286,25 +286,15 @@ wxDialog::~wxDialog()
|
|||||||
// Note that this might need to be done for wxFrame also.
|
// Note that this might need to be done for wxFrame also.
|
||||||
DestroyChildren();
|
DestroyChildren();
|
||||||
|
|
||||||
// This causes a crash in e.g. the resource sample when closing
|
// The idea about doing it here is that if you have to remove the
|
||||||
// the example dialog. TODO: Probably not necessary (?)
|
// XtDestroyWidget from ~wxWindow, at least top-level windows
|
||||||
#if 0
|
// will still be deleted (and destroy children implicitly).
|
||||||
// Now process all events, because otherwise
|
if (GetMainWidget())
|
||||||
// this might remain on the screen.
|
{
|
||||||
Display* display;
|
DetachWidget(GetMainWidget()); // Removes event handlers
|
||||||
if (m_mainWidget)
|
XtDestroyWidget((Widget) GetMainWidget());
|
||||||
display = XtDisplay((Widget) m_mainWidget);
|
SetMainWidget((WXWidget) NULL);
|
||||||
else
|
|
||||||
display = (Display*) wxGetDisplay();
|
|
||||||
|
|
||||||
XSync(display, FALSE);
|
|
||||||
XEvent event;
|
|
||||||
while (XtAppPending((XtAppContext) wxTheApp->GetAppContext())) {
|
|
||||||
XFlush(display);
|
|
||||||
XtAppNextEvent((XtAppContext) wxTheApp->GetAppContext(), &event);
|
|
||||||
XtDispatchEvent(&event);
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// By default, pressing escape cancels the dialog
|
// By default, pressing escape cancels the dialog
|
||||||
|
@@ -508,6 +508,19 @@ wxMenuBar::wxMenuBar()
|
|||||||
m_font = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
|
m_font = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxMenuBar::wxMenuBar(long WXUNUSED(style))
|
||||||
|
{
|
||||||
|
m_eventHandler = this;
|
||||||
|
m_menuCount = 0;
|
||||||
|
m_menus = NULL;
|
||||||
|
m_titles = NULL;
|
||||||
|
m_menuBarFrame = NULL;
|
||||||
|
m_mainWidget = (WXWidget) NULL;
|
||||||
|
m_backgroundColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_MENU);
|
||||||
|
m_foregroundColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_MENUTEXT);
|
||||||
|
m_font = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
|
}
|
||||||
|
|
||||||
wxMenuBar::wxMenuBar(int n, wxMenu *menus[], const wxString titles[])
|
wxMenuBar::wxMenuBar(int n, wxMenu *menus[], const wxString titles[])
|
||||||
{
|
{
|
||||||
m_eventHandler = this;
|
m_eventHandler = this;
|
||||||
|
@@ -235,7 +235,11 @@ wxWindow::~wxWindow()
|
|||||||
// Destroy the window
|
// Destroy the window
|
||||||
if (GetMainWidget())
|
if (GetMainWidget())
|
||||||
{
|
{
|
||||||
wxDeleteWindowFromTable((Widget) GetMainWidget());
|
// If this line (XtDestroyWidget) causes a crash, you may comment it out.
|
||||||
|
// Child widgets will get destroyed automatically when a frame
|
||||||
|
// or dialog is destroyed, but before that you may get some memory
|
||||||
|
// leaks and potential layout problems if you delete and then add
|
||||||
|
// child windows.
|
||||||
XtDestroyWidget((Widget) GetMainWidget());
|
XtDestroyWidget((Widget) GetMainWidget());
|
||||||
SetMainWidget((WXWidget) NULL);
|
SetMainWidget((WXWidget) NULL);
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,7 @@ COMMONOBJS = \
|
|||||||
$(COMMDIR)\filefn.obj \
|
$(COMMDIR)\filefn.obj \
|
||||||
$(COMMDIR)\fileconf.obj \
|
$(COMMDIR)\fileconf.obj \
|
||||||
$(COMMDIR)\framecmn.obj \
|
$(COMMDIR)\framecmn.obj \
|
||||||
|
$(COMMDIR)\ftp.obj \
|
||||||
$(COMMDIR)\gdicmn.obj \
|
$(COMMDIR)\gdicmn.obj \
|
||||||
$(COMMDIR)\image.obj \
|
$(COMMDIR)\image.obj \
|
||||||
$(COMMDIR)\intl.obj \
|
$(COMMDIR)\intl.obj \
|
||||||
@@ -833,6 +834,11 @@ $(COMMDIR)/framecmn.obj: $*.$(SRCSUFF)
|
|||||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
|
||||||
<<
|
<<
|
||||||
|
|
||||||
|
$(COMMDIR)/ftp.obj: $*.$(SRCSUFF)
|
||||||
|
cl @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
|
||||||
|
<<
|
||||||
|
|
||||||
$(COMMDIR)/gdicmn.obj: $*.$(SRCSUFF)
|
$(COMMDIR)/gdicmn.obj: $*.$(SRCSUFF)
|
||||||
cl @<<
|
cl @<<
|
||||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
|
||||||
|
@@ -562,7 +562,16 @@ bool wxWindow::PopupMenu(wxMenu *menu, int x, int y)
|
|||||||
wxMenuBar::wxMenuBar()
|
wxMenuBar::wxMenuBar()
|
||||||
{
|
{
|
||||||
m_eventHandler = this;
|
m_eventHandler = this;
|
||||||
|
m_menuCount = 0;
|
||||||
|
m_menus = NULL;
|
||||||
|
m_titles = NULL;
|
||||||
|
m_menuBarFrame = NULL;
|
||||||
|
m_hMenu = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxMenuBar::wxMenuBar( long WXUNUSED(style) )
|
||||||
|
{
|
||||||
|
m_eventHandler = this;
|
||||||
m_menuCount = 0;
|
m_menuCount = 0;
|
||||||
m_menus = NULL;
|
m_menus = NULL;
|
||||||
m_titles = NULL;
|
m_titles = NULL;
|
||||||
|
@@ -351,13 +351,13 @@ void wxRegionIterator::Reset(const wxRegion& region)
|
|||||||
|
|
||||||
m_rects = new wxRect[header->nCount];
|
m_rects = new wxRect[header->nCount];
|
||||||
|
|
||||||
RECT* rect = (RECT*) (rgnData + sizeof(RGNDATAHEADER)) ;
|
RECT* rect = (RECT*) ((char*)rgnData + sizeof(RGNDATAHEADER)) ;
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < header->nCount; i++)
|
for (i = 0; i < header->nCount; i++)
|
||||||
{
|
{
|
||||||
m_rects[i] = wxRect(rect->left, rect->top,
|
m_rects[i] = wxRect(rect->left, rect->top,
|
||||||
rect->right - rect->left, rect->bottom - rect->top);
|
rect->right - rect->left, rect->bottom - rect->top);
|
||||||
rect += sizeof(RECT);
|
rect ++; // Advances pointer by sizeof(RECT)
|
||||||
}
|
}
|
||||||
|
|
||||||
m_numRects = header->nCount;
|
m_numRects = header->nCount;
|
||||||
|
Reference in New Issue
Block a user