add dialog things
This commit is contained in:
parent
4988770c7f
commit
90e572aad8
56 changed files with 658 additions and 193 deletions
10
test.cxx
10
test.cxx
|
|
@ -5,12 +5,18 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
static void close_msg(MwCXX::Button* button){
|
||||
delete button->GetParent();
|
||||
}
|
||||
|
||||
class MyButton : public MwCXX::Button {
|
||||
protected:
|
||||
void OnActivate() {
|
||||
std::cout << "Hello" << std::endl;
|
||||
MwCXX::Window* msg;
|
||||
|
||||
MwCXX::MessageBox(this->GetParent(), "Hello", "Hello world", MwMB_BUTTONOK | MwMB_ICONNEWS);
|
||||
msg = MwCXX::MessageBox(this->GetParent(), "Hello", "Hello world", MwMB_BUTTONOK | MwMB_ICONNEWS);
|
||||
|
||||
MwCXX::MessageBoxGetChild(msg, MwMB_BUTTONOK)->ActivateHandler = close_msg;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue