#include "wx/menu.h"
#include "wx/layout.h"
#include "wx/msgdlg.h"
+ #include "wx/icon.h"
#endif
#include "wx/sizer.h"
: wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size)
{
// set the frame icon
- SetIcon(sample_xpm);
+ SetIcon(wxIcon(sample_xpm));
// create a menu bar
wxMenu *menuFile = new wxMenu;