#include "wx/wx.h"
#endif
+#ifdef __WXGTK__
+#include "mondrian.xpm"
+#endif
+
#include "wx/treectrl.h"
#include "treetest.h"
bool MyApp::OnInit(void)
{
// Create the main frame window
- MyFrame *frame = new MyFrame(NULL, "wxTreeCtrl Test", 50, 50, 450, 340);
+ MyFrame *frame = new MyFrame((wxFrame *) NULL, (char *) "wxTreeCtrl Test", 50, 50, 450, 340);
// This reduces flicker effects - even better would be to define OnEraseBackground
// to do nothing. When the tree control's scrollbars are show or hidden, the
// Give it an icon
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mondrian"));
-#endif
-#ifdef __X__
- frame->SetIcon(wxIcon("aiai.xbm"));
+#else
+ frame->SetIcon(wxIcon(mondrian_xpm));
#endif
// Make an image list containing small icons
MyFrame::MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h):
wxFrame(frame, -1, title, wxPoint(x, y), wxSize(w, h))
{
- m_treeCtrl = NULL;
- m_logWindow = NULL;
+ m_treeCtrl = (MyTreeCtrl *) NULL;
+ m_logWindow = (wxTextCtrl *) NULL;
}
MyFrame::~MyFrame(void)