#ifdef __WXMSW__
#include <windows.h>
+#include "wx/msw/winundef.h"
// FIXME - Mingw32 1.0 has both _getdrive() and _chdrive(). For now, let's assume
// older releases don't, but it should be verified and the checks modified
Init();
long treeStyle = wxTR_HAS_BUTTONS | wxTR_HIDE_ROOT;
-
+
#ifdef __WXGTK20__
treeStyle |= wxTR_NO_LINES;
#endif
m_rootId = m_treeCtrl->AddRoot( rootName, 3, -1, rootData);
m_treeCtrl->SetItemHasChildren(m_rootId);
ExpandDir(m_rootId); // automatically expand first level
-
+
// Expand and select the default path
if (!m_defaultPath.empty())
{
while(strTok.HasMoreTokens())
{
curFilter = strTok.GetNextToken();
- if (d.GetFirst(& eachFilename, m_currentFilterStr, style))
+ if (d.GetFirst(& eachFilename, curFilter, style))
{
do
{