- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
#include <stdlib.h>
...
class CAbstractControl
{
...
};
class CWindow
{
...
};
class CButton: public CAbstractControl
{
...
};
class CLabel: public CAbstractControl
{
...
};
...
bool operator+(CWindow& win, CAbstractControl& Control)
{
return win.AddControl(Control);
};
...
void main()
{
CWindow& w=new CWindow(10,10,300,300,"Mail Messanger v11.0");
CAbstractControl& b1=new CButton(270,280,300,300,"OK");
...
CAbstractControl& l1=new CLabel(10,10,"Mail:");
...
if(!(w+b1))abort();
if(!(w+b2))abort();
...
};