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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hworld.tex

?? Wxpython Implemented on Windows CE, Source code
?? TEX
字號(hào):
\section{wxWidgets Hello World sample}\label{helloworld}

As many people have requested a mini-sample to be published here
so that some quick judgment concerning syntax
and basic principles can be made, you can now look at wxWidgets'
"Hello World":

You have to include wxWidgets' header files, of course. This can
be done on a file by file basis (such as \#include "wx/window.h")
or using one global include (\#include "wx/wx.h"). This is
also useful on platforms which support precompiled headers such
as 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 class
that wishes to respond to any "event" (such as mouse clicks or
messages 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. These
handlers 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 unique
identifier 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 events
are routed to their respective handler functions in the class MyFrame.
There are predefined macros for routing all common events, ranging from
the selection of a list box entry to a resize event when a user resizes
a window on the screen. If -1 is given as the ID, the given handler will be
invoked for any event of the specified type, so that you could add just
one 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 as
the (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 a
pointer 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 implemented
using 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 be
used to initialize the program, maybe showing a "splash screen" and creating
the 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 the
top 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 window
by calling Close(). The parameter true indicates that other windows have no veto
power 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 this
case 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}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色哟哟国产精品| 亚洲免费观看高清完整版在线观看 | 欧美精品一区二区三区蜜桃| 欧美日本视频在线| 欧美综合天天夜夜久久| 色婷婷综合视频在线观看| 色综合网站在线| 在线视频中文字幕一区二区| 欧美亚洲国产一区在线观看网站| 色屁屁一区二区| 欧美性大战久久| 欧美精品电影在线播放| 欧美一区二区日韩| 精品日韩av一区二区| 精品福利av导航| 久久久久久久久97黄色工厂| 亚洲国产高清aⅴ视频| 亚洲欧洲性图库| 一区二区三区四区在线播放 | 亚洲精品网站在线观看| 一区二区三区中文字幕精品精品 | 色婷婷久久久久swag精品| 在线日韩av片| 678五月天丁香亚洲综合网| 日韩精品一区在线观看| 欧美国产禁国产网站cc| 樱花草国产18久久久久| 日本不卡一区二区三区高清视频| 久久国产视频网| 国产高清不卡一区| 色一区在线观看| 日韩一区二区在线观看视频 | 国产精品一区二区在线观看不卡 | 国产99精品国产| 色婷婷av一区| 日韩欧美一区二区免费| 欧美国产日韩a欧美在线观看| 自拍偷拍国产精品| 日本美女视频一区二区| 国产成人精品亚洲日本在线桃色 | 日韩三级伦理片妻子的秘密按摩| 国产日产欧美精品一区二区三区| 一区二区三区四区激情| 精品一区二区三区的国产在线播放| 成人av在线观| 538在线一区二区精品国产| 亚洲国产精品传媒在线观看| 亚洲综合清纯丝袜自拍| 韩国三级中文字幕hd久久精品| 91婷婷韩国欧美一区二区| 日韩亚洲欧美在线| 亚洲日本一区二区| 激情综合色综合久久综合| 一本大道av伊人久久综合| 欧美zozo另类异族| 亚洲欧美激情一区二区| 激情综合网av| 欧美日本国产一区| 国产精品久久看| 六月丁香婷婷色狠狠久久| 91网页版在线| 国产午夜精品在线观看| 蜜臀久久99精品久久久久宅男| av一区二区三区| 日韩午夜精品视频| 亚洲一区免费观看| 成人av在线资源网站| 精品久久久久久无| 午夜精品久久久久久久久久| jizz一区二区| 欧美精品一区二区久久婷婷| 亚洲mv在线观看| 99天天综合性| 欧美国产乱子伦| 狠狠色狠狠色合久久伊人| 欧美日韩综合一区| 一区二区三区鲁丝不卡| 暴力调教一区二区三区| 精品剧情v国产在线观看在线| 天堂成人国产精品一区| 91成人免费在线视频| 亚洲同性gay激情无套| 懂色av一区二区夜夜嗨| 精品久久一区二区三区| 日本 国产 欧美色综合| 欧美日韩另类一区| 一区二区三区中文字幕| 色综合天天在线| 国产精品久久久久久一区二区三区| 国产精品一二三四| 精品国产乱码久久久久久蜜臀| 日韩激情视频网站| 884aa四虎影成人精品一区| 亚洲h动漫在线| 欧美久久免费观看| 亚洲18女电影在线观看| 欧美日韩一区三区四区| 亚洲宅男天堂在线观看无病毒| 97久久久精品综合88久久| 欧美国产日韩精品免费观看| 成人一区二区在线观看| 亚洲国产精品ⅴa在线观看| 风间由美一区二区三区在线观看| 国产日韩欧美麻豆| 成人涩涩免费视频| 国产精品久久精品日日| 91免费视频网| 一区二区三国产精华液| 欧美日韩视频在线一区二区| 亚洲国产一二三| 欧美精品v日韩精品v韩国精品v| 亚洲成av人片在线观看| 欧美一级高清片| 老司机免费视频一区二区三区| 精品国产髙清在线看国产毛片| 久久99在线观看| 欧美国产禁国产网站cc| 99re66热这里只有精品3直播 | 丁香六月综合激情| 中文字幕av一区二区三区免费看| 成人aa视频在线观看| 亚洲免费色视频| 欧美日韩1234| 蜜臀av性久久久久蜜臀aⅴ四虎| 精品日韩在线观看| 国产成人在线视频网址| ...xxx性欧美| 欧美久久久久免费| 国产精品综合一区二区| 中文字幕亚洲区| 欧美色综合网站| 久久精品国产亚洲一区二区三区| 久久精品视频在线免费观看 | 国产婷婷色一区二区三区在线| 大白屁股一区二区视频| 有坂深雪av一区二区精品| 欧美一级欧美一级在线播放| 国产在线日韩欧美| 成人欧美一区二区三区视频网页| 欧美日韩一区二区三区免费看| 免费xxxx性欧美18vr| 欧美极品xxx| 色先锋久久av资源部| 日本中文在线一区| 国产精品色哟哟| 欧美一区2区视频在线观看| 国产suv精品一区二区6| 亚洲一区自拍偷拍| 久久青草欧美一区二区三区| 91论坛在线播放| 捆绑调教一区二区三区| 日韩理论电影院| 精品国产123| 在线视频你懂得一区二区三区| 久久99久久久久久久久久久| 综合电影一区二区三区| 日韩精品一区国产麻豆| 91久久久免费一区二区| 精品综合免费视频观看| 亚洲图片激情小说| 久久久亚洲欧洲日产国码αv| 色就色 综合激情| 国产成人精品亚洲777人妖| 视频在线观看一区二区三区| 国产精品视频九色porn| 欧美一级淫片007| 色噜噜狠狠色综合欧洲selulu| 国产在线乱码一区二区三区| 亚洲一区在线观看免费观看电影高清 | 中文字幕不卡在线| 日韩一区二区精品| 91激情五月电影| 成人精品免费看| 精品一二线国产| 亚洲国产va精品久久久不卡综合| 欧美韩日一区二区三区| 欧美大片免费久久精品三p| 欧美亚洲日本国产| 成人av网站在线观看免费| 久久不见久久见中文字幕免费| 亚洲国产视频一区二区| 日韩理论电影院| 欧美激情在线看| 欧美电影免费观看高清完整版在线 | 亚洲精品在线观看网站| 欧美亚洲精品一区| 91视频91自| 97久久超碰国产精品电影| 国产一区二区三区免费| 亚洲国产一区视频| 亚洲精品自拍动漫在线| 国产精品私人影院| 国产欧美视频在线观看| 精品人在线二区三区| 欧美日韩高清不卡| 欧美最猛性xxxxx直播| 成人一区二区三区| 成人伦理片在线| 国产aⅴ精品一区二区三区色成熟| 久久精品久久综合|