SAMPLE APPLICATION
Each wxWindow application needs an object derived from wxApp. Each application overrides the OnInit() method for initializing the application.
You can, for example, create your main window here. Hello World shows the definition of HelloWorldApp.
For the main window, you use the wxFrame class. This class provides a window whose size and position can be changed by the user. It has thick borders and a title bar. In addition, you can provide it a menu bar, a statusbar and a toolbar. Hello World shows the implementation of HelloWorldApp.
NOTE: wx.h contains all ne cessary header files for wxWindows, so the application must include it.
Now we need to add controls, menu, statusbar etc. to our frame.
All controls have their default constructor which you can call by using new with their corresponding parameters for parent, id, position, size and other styles.
Example:wxTextCtrl txt = new wxTextCtrl(frame,TXT,"Text Box",wxDefaultPosition,wxSize(20,20),wxTE_MULTILINE)