Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » how to just get var from parent Layout class?
icon14.gif  how to just get var from parent Layout class? [message #41164] Fri, 08 November 2013 02:48 Go to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
class Frame : public WithFrameLayout<TopWindow> {
 bool bValid;
...

 AbDlg dlg;
}


Then in AbDlg, I want to ref bValid, how can i get it?

In my opinion, it would be like this:
void AbDlg::Func()
{
 Frame* p = GetParent();
 bool b = p->bValid;
}

[Updated on: Fri, 08 November 2013 02:50]

Report message to a moderator

 
Read Message icon14.gif
Read Message
Previous Topic: CParser: Suggest check for overflow in ReadInt, ReadDouble...
Next Topic: GetSmartTextSize() function move/factorisation proposal
Goto Forum:
  


Current Time: Thu May 02 12:38:31 CEST 2024

Total time taken to generate the page: 0.02165 seconds