This commit is contained in:
Nishi 2026-04-17 22:44:19 +09:00
commit bbc8b871bb
Signed by: nishi
GPG key ID: 27EF69B208EB9343
5 changed files with 54 additions and 4 deletions

View file

@ -20,6 +20,13 @@ class MyWindow : public MwCXX::Window {
private:
MyButton* epic;
protected:
void OnResize() {
MwRect rc = this->GetArea();
this->epic->Resize(rc.width - 20, rc.height - 20);
}
public:
MWCXX_CONSTRUCTOR(MyWindow, MwCXX::Window) {
this->epic = new MyButton("epic app", this, 10, 10, 640 - 10 * 2, 480 - 10 * 2);