merged 2.2 branch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2000-07-15 19:51:35 +00:00
parent 8a693e6e04
commit f6bcfd974e
1835 changed files with 237729 additions and 67990 deletions

View File

@@ -21,7 +21,7 @@
#endif
#ifndef WX_PRECOMP
#include <wx/wx.h>
#include "wx/wx.h"
#endif
#if wxUSE_TREELAYOUT
@@ -99,12 +99,12 @@ void wxTreeLayout::DrawBranches(wxDC& dc)
void wxTreeLayout::DrawNode(long id, wxDC& dc)
{
char buf[80];
wxChar buf[80];
wxString name(GetNodeName(id));
if (name != "")
sprintf(buf, "%s", (const char*) name);
if (name != wxT(""))
wxSprintf(buf, wxT("%s"), (const wxChar*) name);
else
sprintf(buf, "<unnamed>");
wxSprintf(buf, wxT("<unnamed>"));
long x = 80;
long y = 20;
@@ -127,7 +127,7 @@ void wxTreeLayout::Initialize(void)
void wxTreeLayout::GetNodeSize(long id, long *x, long *y, wxDC& dc)
{
wxString name(GetNodeName(id));
if (name != "")
if (name != wxT(""))
dc.GetTextExtent(name, x, y);
else
{
@@ -283,7 +283,7 @@ long wxTreeLayoutStored::AddChild(const wxString& name, const wxString& parent)
if (m_num < (m_maxNodes -1 ))
{
long i = -1;
if (parent != "")
if (parent != wxT(""))
i = NameToId(parent);
else m_parentNode = m_num;
@@ -427,8 +427,6 @@ wxString wxTreeLayoutStored::HitTest(wxMouseEvent& event, wxDC& dc)
int i;
for (i = 0; i < m_maxNodes; i++)
{
wxStoredNode* item = &m_nodes[i];
long width, height;
dc.GetTextExtent(m_nodes[i].m_name, &width, &height);