===dlgAbout.h=== #ifndef DLGABOUT_H #define DLGABOUT_H //(*Headers(dlgAbout) #include #include #include //*) class dlgAbout: public wxDialog { public: dlgAbout(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize); virtual ~dlgAbout(); //(*Declarations(dlgAbout) wxButton* btnClose; wxStaticText* StaticText1; //*) protected: //(*Identifiers(dlgAbout) static const long ID_BUTTON1; static const long ID_STATICTEXT1; //*) private: //(*Handlers(dlgAbout) void OnCheckBox1Click(wxCommandEvent& event); void OnbtnCloseClick(wxCommandEvent& event); void OnInit(wxInitDialogEvent& event); //*) DECLARE_EVENT_TABLE() }; #endif ===dlgAbout.cpp=== #include "dlgAbout.h" //(*InternalHeaders(dlgAbout) #include #include #include //*) //(*IdInit(dlgAbout) const long dlgAbout::ID_BUTTON1 = wxNewId(); const long dlgAbout::ID_STATICTEXT1 = wxNewId(); //*) BEGIN_EVENT_TABLE(dlgAbout,wxDialog) //(*EventTable(dlgAbout) //*) END_EVENT_TABLE() dlgAbout::dlgAbout(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size) { //(*Initialize(dlgAbout) Create(parent, wxID_ANY, _("About"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("wxID_ANY")); SetClientSize(wxSize(173,127)); btnClose = new wxButton(this, ID_BUTTON1, _("Close"), wxPoint(88,96), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1")); StaticText1 = new wxStaticText(this, ID_STATICTEXT1, _("Label"), wxPoint(8,8), wxDefaultSize, 0, _T("ID_STATICTEXT1")); Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&dlgAbout::OnbtnCloseClick); Connect(wxID_ANY,wxEVT_INIT_DIALOG,(wxObjectEventFunction)&dlgAbout::OnInit); //*) } dlgAbout::~dlgAbout() { //(*Destroy(dlgAbout) //*) } void dlgAbout::OnCheckBox1Click(wxCommandEvent& event) { } void dlgAbout::OnbtnCloseClick(wxCommandEvent& event) { this->Destroy(); } void dlgAbout::OnInit(wxInitDialogEvent& event) { }