亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hworld.tex

?? 很牛的GUI源碼wxWidgets-2.8.0.zip 可在多種平臺下運行.
?? TEX
字號:
\section{wxWidgets Hello World sample}\label{helloworld}As many people have requested a mini-sample to be published hereso that some quick judgment concerning syntaxand basic principles can be made, you can now look at wxWidgets'"Hello World":You have to include wxWidgets' header files, of course. This canbe done on a file by file basis (such as \#include "wx/window.h")or using one global include (\#include "wx/wx.h"). This isalso useful on platforms which support precompiled headers suchas all major compilers on the Windows platform.\begin{verbatim}//// file name: hworld.cpp////   purpose: wxWidgets "Hello world"//// For compilers that support precompilation, includes "wx/wx.h".#include "wx/wxprec.h"#ifdef __BORLANDC__    #pragma hdrstop#endif#ifndef WX_PRECOMP    #include "wx/wx.h"#endif\end{verbatim}Practically every app should define a new class derived from wxApp.By overriding wxApp's OnInit() the program can be initialized,e.g. by creating a new main window. \begin{verbatim}class MyApp: public wxApp{    virtual bool OnInit();};\end{verbatim}The main window is created by deriving a class from wxFrame and giving it a menu and a status bar in its constructor. Also, any classthat wishes to respond to any "event" (such as mouse clicks ormessages from the menu or a button) must declare an event table using the macro below. Finally, the way to react to such events must be done in "handlers". In our sample, we react to two menu items, one for "Quit" and one for displaying an "About" window. Thesehandlers should not be virtual.\begin{verbatim}class MyFrame: public wxFrame{public:    MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);    void OnQuit(wxCommandEvent& event);    void OnAbout(wxCommandEvent& event);private:    DECLARE_EVENT_TABLE()};\end{verbatim}In order to be able to react to a menu command, it must be given a uniqueidentifier such as a const or an enum.\begin{verbatim}enum{    ID_Quit = 1,    ID_About,};\end{verbatim}We then proceed to actually implement an event table in which the eventsare routed to their respective handler functions in the class MyFrame.There are predefined macros for routing all common events, ranging fromthe selection of a list box entry to a resize event when a user resizesa window on the screen. If -1 is given as the ID, the given handler will beinvoked for any event of the specified type, so that you could add justone entry in the event table for all menu commands or all button commands etc.The origin of the event can still be distinguished in the event handler asthe (only) parameter in an event handler is a reference to a wxEvent object,which holds various information about the event (such as the ID of and apointer to the class, which emitted the event).\begin{verbatim}BEGIN_EVENT_TABLE(MyFrame, wxFrame)    EVT_MENU(ID_Quit,  MyFrame::OnQuit)    EVT_MENU(ID_About, MyFrame::OnAbout)END_EVENT_TABLE()\end{verbatim}As in all programs there must be a "main" function. Under wxWidgets main is implementedusing this macro, which creates an application instance and starts the program.\begin{verbatim}IMPLEMENT_APP(MyApp)\end{verbatim}As mentioned above, wxApp::OnInit() is called upon startup and should beused to initialize the program, maybe showing a "splash screen" and creatingthe main window (or several). The frame should get a title bar text ("Hello World")and a position and start-up size. One frame can also be declared to be thetop window. Returning true indicates a successful initialization.\begin{verbatim}bool MyApp::OnInit(){    MyFrame *frame = new MyFrame( "Hello World", wxPoint(50,50), wxSize(450,340) );    frame->Show( true );    SetTopWindow( frame );    return true;}\end{verbatim}In the constructor of the main window (or later on) we create a menu with two menu items as well as a status bar to be shown at the bottom of the main window. Both have to be "announced" to the frame with respective calls.\begin{verbatim}MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)       : wxFrame((wxFrame *)NULL, -1, title, pos, size){    wxMenu *menuFile = new wxMenu;    menuFile->Append( ID_About, "&About..." );    menuFile->AppendSeparator();    menuFile->Append( ID_Quit, "E&xit" );    wxMenuBar *menuBar = new wxMenuBar;    menuBar->Append( menuFile, "&File" );    SetMenuBar( menuBar );    CreateStatusBar();    SetStatusText( "Welcome to wxWidgets!" );}\end{verbatim}Here are the actual event handlers. MyFrame::OnQuit() closes the main windowby calling Close(). The parameter true indicates that other windows have no vetopower such as after asking "Do you really want to close?". If there is no other main window left, the application will quit.\begin{verbatim}void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)){    Close( true );}\end{verbatim}MyFrame::OnAbout() will display a small window with some text in it. In thiscase a typical "About" window with information about the program.\begin{verbatim}void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)){    wxMessageBox( "This is a wxWidgets' Hello world sample",                  "About Hello World", wxOK | wxICON_INFORMATION );}\end{verbatim}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品在线免费观看| 亚洲综合丁香婷婷六月香| 欧美激情中文字幕| 五月开心婷婷久久| 国产不卡视频一区二区三区| 欧美在线播放高清精品| 国产校园另类小说区| 亚洲丝袜精品丝袜在线| 老司机精品视频在线| 在线精品视频一区二区三四| 国产视频视频一区| 久久av资源站| 日韩一区二区不卡| 婷婷开心久久网| 91激情五月电影| 最新中文字幕一区二区三区 | 成人av网在线| 日韩精品三区四区| 91麻豆免费观看| 久久久久一区二区三区四区| 日韩不卡免费视频| 欧美又粗又大又爽| 尤物在线观看一区| 色综合久久久久网| 日韩理论在线观看| 91香蕉视频污| 亚洲日本电影在线| 色欧美片视频在线观看| 成人免费在线观看入口| av电影在线观看完整版一区二区| 精品久久99ma| 国产曰批免费观看久久久| 欧美一区二区三区日韩视频| 午夜精彩视频在线观看不卡| 欧美在线免费视屏| 亚洲成人午夜影院| 欧美日韩在线电影| 天天综合网天天综合色| 777午夜精品视频在线播放| 亚洲v中文字幕| 欧美一区欧美二区| 久久精品理论片| 精品91自产拍在线观看一区| 国产乱码精品一区二区三| 久久久久久久久岛国免费| 国产高清不卡二三区| 中文字幕精品一区二区精品绿巨人 | 丝袜美腿亚洲一区二区图片| 欧美浪妇xxxx高跟鞋交| 蜜桃在线一区二区三区| 97久久精品人人做人人爽50路| 精品噜噜噜噜久久久久久久久试看| 亚洲成人激情av| 久久婷婷国产综合国色天香 | 日韩三级视频在线观看| 久久99蜜桃精品| 国产色爱av资源综合区| 不卡在线观看av| 亚洲国产另类av| 精品国产乱码久久久久久牛牛| 国产成人综合在线播放| 一本到不卡精品视频在线观看| 亚洲成年人影院| 日韩欧美一区二区免费| 狠狠网亚洲精品| 亚洲天堂av老司机| 欧美一区二区三区公司| 福利视频网站一区二区三区| 亚洲在线视频网站| 亚洲精品一线二线三线| 91啪九色porn原创视频在线观看| 亚洲444eee在线观看| 国产偷国产偷亚洲高清人白洁| 色呦呦网站一区| 国产麻豆精品在线观看| 一区二区三区四区激情| 欧美精品一区二区三区在线| av不卡在线观看| 久久精品国产99久久6| 亚洲品质自拍视频| 久久久久久综合| 欧美日韩视频专区在线播放| 国产精品原创巨作av| 午夜av一区二区三区| 国产精品美女www爽爽爽| 91精品国产综合久久小美女| 91免费小视频| 国产成人精品三级麻豆| 蜜乳av一区二区| 亚洲高清一区二区三区| 中文字幕在线播放不卡一区| 日韩一区二区免费在线电影| 色综合视频在线观看| 国产99精品在线观看| 日韩二区三区在线观看| 夜色激情一区二区| 亚洲视频在线一区二区| 久久精品人人做| 久久久久久97三级| 日韩欧美中文一区| 3d动漫精品啪啪1区2区免费| 在线观看亚洲成人| 色综合视频在线观看| 99久久久国产精品免费蜜臀| 国产精品香蕉一区二区三区| 91国产福利在线| 成人在线视频首页| 国产很黄免费观看久久| 麻豆精品在线观看| 美腿丝袜亚洲三区| 日本在线不卡视频一二三区| 亚洲午夜免费福利视频| 亚洲精品欧美激情| 亚洲桃色在线一区| 亚洲精品国产视频| 亚洲精品伦理在线| 亚洲精品乱码久久久久久黑人| 17c精品麻豆一区二区免费| 国产精品免费观看视频| 国产精品三级视频| 中文字幕日韩欧美一区二区三区| 国产精品久久久久久久浪潮网站 | 国产91精品一区二区麻豆网站| 国产精品综合av一区二区国产馆| 韩国精品主播一区二区在线观看| 狠狠色丁香婷综合久久| 国产一区二区伦理| 国产成人99久久亚洲综合精品| 成人午夜精品在线| 91麻豆自制传媒国产之光| 在线观看av一区| 日韩精品一区二区三区三区免费| 精品乱人伦小说| 亚洲欧洲日产国码二区| 亚洲卡通动漫在线| 蜜桃一区二区三区四区| 国产又粗又猛又爽又黄91精品| 丁香婷婷综合色啪| 欧美影片第一页| 日韩欧美国产成人一区二区| 久久影院午夜论| 亚洲欧美一区二区三区孕妇| 亚洲香肠在线观看| 精品一区二区免费视频| 成人精品视频.| 欧美无乱码久久久免费午夜一区| 欧美丰满高潮xxxx喷水动漫| 欧美精品一区二| 亚洲日本va午夜在线影院| 天堂资源在线中文精品| 国产精品自在欧美一区| 在线精品观看国产| 久久只精品国产| 亚洲精品成a人| 久久精品国产**网站演员| 不卡av在线免费观看| 欧美人与性动xxxx| 国产午夜精品在线观看| 亚洲伊人色欲综合网| 国产一区二区三区四区五区美女| 91碰在线视频| 久久久久久久久久久久久女国产乱| 国产精品电影一区二区| 日韩av电影免费观看高清完整版| 成人黄色免费短视频| 欧美精品vⅰdeose4hd| 中文久久乱码一区二区| 奇米一区二区三区| 色综合中文字幕| 精品久久久久久久久久久久包黑料| 国产精品久久久久久久久晋中 | 一区二区三区波多野结衣在线观看 | 亚洲欧美自拍偷拍色图| 日韩av电影免费观看高清完整版| 成人99免费视频| 久久在线观看免费| 天天色综合天天| 色综合天天综合给合国产| 国产亚洲污的网站| 日本成人在线电影网| 欧美在线一二三| 亚洲欧美日韩一区二区 | 91在线精品一区二区| 精品国产1区二区| 日韩不卡一区二区| 欧美色男人天堂| 樱桃国产成人精品视频| 成人午夜免费电影| 欧美国产一区二区| 狠狠色狠狠色综合| 精品国产91乱码一区二区三区| 蜜桃一区二区三区在线| 欧美三电影在线| 亚洲午夜久久久久久久久电影院 | 一个色综合av| 日本精品一区二区三区高清| 国产精品久久久久四虎| 成人精品视频网站| 亚洲欧洲国产日本综合| 波多野结衣中文一区|