basic.cpp
来自「BigC++的源码」· C++ 代码 · 共 37 行
CPP
37 行
#include <wx/wx.h>/** A basic application that shows an empty frame.*/class BasicApp : public wxApp{public: /** Constructs the frame. */ BasicApp(); /** Shows the frame. @return true */ virtual bool OnInit();private: wxFrame* frame;};DECLARE_APP(BasicApp)IMPLEMENT_APP(BasicApp)BasicApp::BasicApp(){ frame = new wxFrame(NULL, -1, "My First GUI Program");}bool BasicApp::OnInit(){ frame->Show(true); return true;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?