Guest User

Untitled

a guest
Nov 18th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. #include "wx/wxprec.h"
  2.  
  3. #ifndef WX_PRECOMP
  4. #include "wx/wx.h"
  5. #endif
  6.  
  7. class Window: public wxFrame
  8. {
  9.     public:
  10.         Window(const wxString& title, const wxPoint &pos, const wxSize &size, long style = wxDEFAULT_FRAME_STYLE);
  11. };
  12.  
  13. Window::Window(const wxString& title, const wxPoint &pos, const wxSize &size, long style): wxFrame(NULL, 01, title, pos, size, style){}
  14.  
  15. class Aplik: public wxApp
  16. {
  17.     public:
  18.         virtual bool OnInit();
  19. };
  20. IMPLEMENT_APP(Aplik);
  21.  
  22. bool Aplik::OnInit(){
  23.     Window *MainWindow = new Window(_T("Mój program"), wxPoint(550, 150), wxSize(250, 800));
  24.     MainWindow->Show();
  25.     return true;
  26. }
Add Comment
Please, Sign In to add comment