Files
hwr2023_a/CPlusPlus/wxWidgets/MyApp.cpp
T
david 9e336c5677 add detailed sfml example
add simple wxWidgets example
2025-02-26 12:59:43 +01:00

14 lines
299 B
C++

#include "MyApp.h"
bool MyApp::OnInit()
{
wxFrame* pFrame = new wxFrame(nullptr, wxID_ANY, "Hello World");
wxPanel* pPanel = new wxPanel(pFrame);
wxButton* pButton = new wxButton(pPanel, wxID_ANY, "Click me", wxPoint(10, 10), wxSize(100, 30));
pFrame->Show();
return true;
}