Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "wx/wxprec.h"
- #ifndef WX_PRECOMP
- #include "wx/wx.h"
- #endif
- class Window: public wxFrame
- {
- public:
- Window(const wxString& title, const wxPoint &pos, const wxSize &size, long style = wxDEFAULT_FRAME_STYLE);
- };
- Window::Window(const wxString& title, const wxPoint &pos, const wxSize &size, long style): wxFrame(NULL, 01, title, pos, size, style){}
- class Aplik: public wxApp
- {
- public:
- virtual bool OnInit();
- };
- IMPLEMENT_APP(Aplik);
- bool Aplik::OnInit(){
- Window *MainWindow = new Window(_T("Mój program"), wxPoint(550, 150), wxSize(250, 800));
- MainWindow->Show();
- return true;
- }
Add Comment
Please, Sign In to add comment