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: Fri Apr 26 21:40:49 CEST 2024
Total time taken to generate the page: 0.02684 seconds
|