Borneq

Control Multiple Inheritance

Dec 20th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1.   class TControl:TComponent
  2.   {
  3.     TWinControl FParent;
  4.   }
  5.  
  6.   class TPaint:TControl
  7.   {
  8.     TCanvas: FCanvas;
  9.     virtual void Paint();
  10.   }
  11.  
  12.   class TWinControl:TControl
  13.   {
  14.     HWnd FHandle;
  15.   }
  16.  
  17.   class TCustomControl:TWinControl,TPaint
  18.   {
  19.   }
  20.  
  21.   class TGraphicControl:TControl,TPaint
  22.   {
  23.   }
  24.  
  25.   class TMButton:TPaint
  26.     TBitmap: FGlyph;
  27.     TTimer: FTimer;
  28.     string FCaption;
  29.   end;
  30.  
  31.   class TButton:TCustomControl,TMButton
  32.   {
  33.   }
  34.   class TSpeedButton:TGraphicControl,TMButton
  35.   {
  36.   }
Advertisement
Add Comment
Please, Sign In to add comment