1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| #include <wx/wx.h>
#include "basic.h"
#include "ifm/ifm.h"
//#include "ifm/manager.cpp"
IMPLEMENT_APP(BasicApplication)
bool BasicApplication::OnInit()
{
BasicFrame *frame = new BasicFrame("Basic", 50, 50, 450,300);
frame->Show(TRUE);
SetTopWindow(frame);
return TRUE;
}
BasicFrame::BasicFrame
(const wxChar *title,
int xpos, int ypos,
int width, int height)
: wxFrame
( (wxFrame *) NULL,
-1,
title,
wxPoint(xpos, ypos),
wxSize(width, height)
)
{
m_manager = new wxInterfaceManager(this,NULL);
m_manager->Initialize(true,IFM_DEFAULT_FLAGS);
}
BasicFrame::~BasicFrame()
{
} |
Partager