home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / chap15 / square / square.odl < prev    next >
Encoding:
Text File  |  1995-05-03  |  2.0 KB  |  72 lines

  1. /*
  2.  * SQUARE.ODL
  3.  * SphereSquare Object Type Library Definition Chapter 15
  4.  *
  5.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  6.  *
  7.  * Kraig Brockschmidt, Microsoft
  8.  * Internet  :  kraigb@microsoft.com
  9.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  10.  */
  11.  
  12. //LIBID_RotatingSquare
  13. [
  14. uuid(00021169-0000-0000-C000-000000000046)
  15.     , helpstring("SphereSquare Type Library")
  16.     , lcid(0x0000)
  17.     , version(1.0)
  18. ]
  19.  
  20. library SphereSquareLibrary
  21.     {
  22.    #ifdef WIN32
  23.     importlib("STDOLE32.TLB");
  24.    #else
  25.     importlib("STDOLE.TLB");
  26.    #endif
  27.  
  28.     //IID_ISphereSquare
  29.     [uuid(00021168-0000-0000-C000-000000000046), odl]
  30.     interface ISphereSquare : IUnknown
  31.         {
  32.         //Properties:
  33.         [propget] double Radius(void);
  34.         [propput] void   Radius([in] double Radius);
  35.         [propget] double Theta(void);
  36.         [propput] void   Theta([in] double Theta);
  37.         [propget] double Declination(void);
  38.         [propput] void   Declination([in] double Declination);
  39.  
  40.         [propget] long   BackColor(void);
  41.         [propput] void   BackColor([in] long BackColor);
  42.         [propget] long   LineColorPositive(void);
  43.         [propput] void   LineColorPositive([in] long LineColorPositive);
  44.         [propget] long   LineColorNegative(void);
  45.         [propput] void   LineColorNegative([in] long LineColorNegative);
  46.  
  47.         //Methods:
  48.         void  Draw(void);
  49.         void  SetCenterPoint([in] int CenterX, [in] int CenterY);
  50.  
  51.         void  ShowWindow([in] int ShowCommand);
  52.         void  SetWindowPosition([in] int Left, [in] int Top);
  53.         void  SetWindowSize([in] int Width, [in] int Height);
  54.         }
  55.  
  56.     //DIID_DISphereSquare
  57.     [uuid(0002116A-0000-0000-C000-000000000046)]
  58.     dispinterface DISphereSquare
  59.         {
  60.         interface   ISphereSquare;
  61.         }
  62.  
  63.  
  64.     //CLSID_SphereSquare
  65.     [uuid(00021167-0000-0000-C000-000000000046)]
  66.     coclass SphereSquare
  67.         {
  68.         dispinterface   DISphereSquare;
  69.         interface       ISphereSquare;
  70.         }
  71.     };
  72.