BigC++的源码

源代码在线查看: text.cpp

软件大小: 129 K
上传用户: wuweixiong123
关键词: BigC 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include 								/**				   A frame that contains a text control.				*/				class TextFrame : public wxFrame				{				public:				   /**				      Constructs the text control.				   */				   TextFrame();				private:				   wxTextCtrl* text;				};								/**				   An application that shows a frame with a text control.				*/				class TextApp : public wxApp				{				public:				   /**				      Constructs the frame.				   */				   TextApp();				   /**				      Shows the frame.				      @return true				   */				   virtual bool OnInit();				private:				   TextFrame* frame;				};								DECLARE_APP(TextApp)								IMPLEMENT_APP(TextApp)								TextFrame::TextFrame() 				   : wxFrame(NULL, -1, "TextFrame")				{				   text = new wxTextCtrl(this, -1, "Type some text here!",				      wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE);				}								TextApp::TextApp()				{				   frame = new TextFrame();				}								bool TextApp::OnInit()				{				   frame->Show(true);				   return true;				}							

相关资源