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 » Community » Newbie corner » Dialog boxes : why struc instead of class ?
Dialog boxes : why struc instead of class ? [message #31624] Fri, 18 March 2011 10:04 Go to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

In most examples, a dialog box is done this way :
struct MyDlg : public WithMydialogLayout<TopWindow> {
...
}

Why not use a class, something like this :
class MyDlg : public WithMydialogLayout<TopWindow> {
public:
...
protected:
...
private:
...
}


This looks surprising for me, more especially when I see
typedef MyStruc CLASSNAME;


The best reason is surely that it's working well this way, but it's very confusing for beginners !
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linux (no variants of project types)
Next Topic: Dialog box with some internal actions
Goto Forum:
  


Current Time: Tue Apr 29 22:27:11 CEST 2025

Total time taken to generate the page: 0.01806 seconds