#endif
#include <stdlib.h>
#include <ctype.h>
-
+extern bool wxIsDriveAvailable(const wxString& dirName);
#endif // __WXPM__
#if defined(__WXMAC__)
if ((style & wxDIRCTRL_3D_INTERNAL) == 0)
treeStyle |= wxNO_BORDER;
+ else
+ treeStyle |= wxBORDER_SUNKEN;
long filterStyle = 0;
if ((style & wxDIRCTRL_3D_INTERNAL) == 0)
filterStyle |= wxNO_BORDER;
+ else
+ filterStyle |= wxBORDER_SUNKEN;
m_treeCtrl = new wxTreeCtrl(this, wxID_TREECTRL, pos, size, treeStyle);
wxDirItemData *dir_item = new wxDirItemData(path,name,TRUE);
wxTreeItemId id = m_treeCtrl->AppendItem( m_rootId, name, imageId, -1, dir_item);
-
+
m_treeCtrl->SetItemHasChildren(id);
}
wxArrayInt icons;
size_t n, count = wxGetAvailableDrives(paths, names, icons);
-
+
for (n = 0; n < count; n++)
{
AddSection(paths[n], names[n], icons[n]);
// VS: this is needed because the event handler is called from wxTreeCtrl
// ctor when wxTR_HIDE_ROOT was specified
- if (m_rootId == 0)
+
+ if (!m_rootId.IsOk())
+
m_rootId = m_treeCtrl->GetRootItem();
ExpandDir(parentId);
void wxFileIconsTable::Create()
{
wxCHECK_RET(!m_smallImageList && !m_HashTable, wxT("creating icons twice"));
-printf("creating \n"); fflush(stdout);
m_HashTable = new wxHashTable(wxKEY_STRING);
m_smallImageList = new wxImageList(16, 16);