]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/dirdlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxDirDialog
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "dirdlg.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
33 #if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE
37 #include "wx/dialog.h"
38 #include "wx/dirdlg.h"
40 #include "wx/app.h" // for GetComCtl32Version()
43 #include "wx/palmos/private.h"
45 // ----------------------------------------------------------------------------
47 // ----------------------------------------------------------------------------
50 #define MAX_PATH 4096 // be generous
53 #ifndef BIF_NEWDIALOGSTYLE
54 #define BIF_NEWDIALOGSTYLE 0x0040
57 #ifndef BIF_NONEWFOLDERBUTTON
58 #define BIF_NONEWFOLDERBUTTON 0x0200
62 #define BIF_EDITBOX 16
65 // ----------------------------------------------------------------------------
67 // ----------------------------------------------------------------------------
69 IMPLEMENT_CLASS(wxDirDialog
, wxDialog
)
71 // ----------------------------------------------------------------------------
72 // private functions prototypes
73 // ----------------------------------------------------------------------------
76 static void ItemListFree(LPITEMIDLIST pidl
);
78 // the callback proc for the dir dlg
79 static int CALLBACK
BrowseCallbackProc(HWND hwnd
, UINT uMsg
, LPARAM lp
,
83 // ============================================================================
85 // ============================================================================
87 // ----------------------------------------------------------------------------
89 // ----------------------------------------------------------------------------
91 wxDirDialog::wxDirDialog(wxWindow
*parent
,
92 const wxString
& message
,
93 const wxString
& defaultPath
,
95 const wxPoint
& WXUNUSED(pos
),
96 const wxSize
& WXUNUSED(size
),
97 const wxString
& WXUNUSED(name
))
101 void wxDirDialog::SetPath(const wxString
& path
)
105 int wxDirDialog::ShowModal()
110 // ----------------------------------------------------------------------------
112 // ----------------------------------------------------------------------------
115 BrowseCallbackProc(HWND hwnd
, UINT uMsg
, LPARAM lp
, LPARAM pData
)
121 static void ItemListFree(LPITEMIDLIST pidl
)
126 SHGetMalloc(&pMalloc
);
134 wxLogLastError(wxT("SHGetMalloc"));
140 #include "../generic/dirdlgg.cpp"
141 #endif // compiler/platform on which the code here compiles
143 #endif // wxUSE_DIRDLG