things
This commit is contained in:
parent
d7d6ae1479
commit
bbc8b871bb
5 changed files with 54 additions and 4 deletions
7
test.cxx
7
test.cxx
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue