wxmain.cc

来自「LastWave」· CC 代码 · 共 71 行

CC
71
字号
// For compilers that support precompilation, includes "wx/wx.h".#include "wx/wxprec.h"// for all others, include the necessary headers (this file is usually all you// need because it includes almost all "standard" wxWidgets headers)#ifndef WX_PRECOMP    #include "wx/wx.h"#endifextern "C" {#include "lastwave.h"}#include "terminalCtrl.h"#include "wxmain.h"// Create a new application objectIMPLEMENT_APP    (MyApp)IMPLEMENT_DYNAMIC_CLASS    (MyApp, wxApp)BEGIN_EVENT_TABLE(MyApp, wxApp)END_EVENT_TABLE()MyApp *myApp;bool MyApp::OnInit(){    // Create the main frame window    terminal = new TerminalFrame((wxFrame *) NULL, _T("Terminal"),                                                wxPoint(50, 50), wxSize(450, 340));    SetTopWindow(terminal);    terminal->Show(true);    terminal->textCtrl->SetFocus();    myApp = this;        LWInit();        return true;}// ??? WIN/* void wxAssert(int,wchar_t const *,int,wchar_t const *,wchar_t const *) { }#ifdef __WXDEBUG__ void  wxAppConsole::OnAssert(wchar_t const *,int,wchar_t const *,wchar_t const *) { }#endif __WXDEBUG__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?