U++ framework
Do not panic. Ask here before giving up.

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: Sun May 10 17:09:06 GMT+2 2026

Total time taken to generate the page: 0.00771 seconds