21 lines
		
	
	
		
			387 B
		
	
	
	
		
			C++
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			387 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
								 | 
							
								#include "MainFrame.h"
							 | 
						||
| 
								 | 
							
								#include <wx/wx.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class CWxBMonitor : public wxApp
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								public:
							 | 
						||
| 
								 | 
							
								    virtual bool OnInit()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        wxString title = wxString::Format(wxT(""));
							 | 
						||
| 
								 | 
							
								        auto* f = new CMainFrame(title);
							 | 
						||
| 
								 | 
							
								        f->Show(true);
							 | 
						||
| 
								 | 
							
								        return true;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    virtual int OnExit()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        return wxApp::OnExit();
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								IMPLEMENT_APP(CWxBMonitor);
							 | 
						||
| 
								 | 
							
								DECLARE_APP(CWxBMonitor);
							 |