Home » U++ Library support » U++ Core » How to get value from parent AppWindow class?
How to get value from parent AppWindow class? [message #43798] |
Thu, 16 October 2014 09:58  |
 |
akebee
Messages: 90 Registered: August 2011 Location: China
|
Member |
|
|
struct ChildAppWindow : TopWindow {
ChildAppWindow();
bool IsStop();
};
bool ChildAppWindow::IsStop()
{
// how can i cat bStop ( In class MyAppWindow)?
}
struct MyAppWindow : TopWindow {
MyAppWindow() ;
bool bStop;
void IsStop(bool& b) { b = bStop;}
ChildAppWindow child;
};
One way is like below:
Callback<bool&> cb_IsStop;
child.cb_IsStop = THISBACK(IsStop);
but this is not so convenient i think
[Updated on: Thu, 16 October 2014 10:00] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 28 22:01:36 CEST 2025
Total time taken to generate the page: 0.03900 seconds
|