Added wxTB_NODIVIDER and wxTB_NOALIGN so native Windows toolbar can

used in FL.
Adjusted Windows toolbar height for wxTB_NODIVIDER style.
Removed some false memory leak reporting from fontmap.cpp, mimecmn.cpp,
strconv.cpp.
Added and used MapBitmap function in newbmpbtn.cpp so the right
colours are used under Windows.
<controversial>Added iniconf.cpp to WIN32 compilation</conroversial>


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-04-04 13:13:51 +00:00
parent 4069916857
commit 65e5084827
11 changed files with 137 additions and 16 deletions

View File

@@ -42,6 +42,7 @@
#include <string.h>
#include <stdlib.h>
#include "wx/module.h"
#include "wx/strconv.h"
// ----------------------------------------------------------------------------
@@ -58,6 +59,22 @@
WXDLLEXPORT_DATA(wxMBConv *) wxConvCurrent = &wxConvLibc;
class wxStrConvModule: public wxModule
{
public:
wxStrConvModule() : wxModule() { }
virtual bool OnInit() { return TRUE; }
virtual void OnExit()
{
wxConvLocal.Clear();
}
DECLARE_DYNAMIC_CLASS(wxStrConvModule)
};
IMPLEMENT_DYNAMIC_CLASS(wxStrConvModule, wxModule)
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
@@ -898,8 +915,17 @@ wxCSConv::wxCSConv(const wxChar *charset)
wxCSConv::~wxCSConv()
{
free(m_name);
delete m_cset;
Clear();
}
void wxCSConv::Clear()
{
if (m_name)
free(m_name);
if (m_cset)
delete m_cset;
m_name = NULL;
m_cset = NULL;
}
void wxCSConv::SetName(const wxChar *charset)