home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / maths3 / maths3.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1999-02-19  |  2.2 KB  |  75 lines

  1. // Smile.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (Smile.tlb) that will become a resource in
  5. // Smile.ocx.
  6.  
  7. #if defined(_WIN32_WCE) && (_WIN32_WCE < 200)
  8. #error "This sample can only be compiled for Windows CE 2.0 or later."
  9. #endif
  10.  
  11. #include <olectl.h>
  12.  
  13. [ uuid(182CB000-BEED-11CE-9611-00AA004A75CF), version(1.0),
  14.   helpstring("Maths3 OLE Custom Control module"), control ]
  15. library Maths3Lib
  16. {
  17.     importlib(STDOLE_TLB);
  18.     importlib(STDTYPE_TLB);
  19.  
  20.     //  Primary dispatch interface for CMaths3Ctrl
  21.  
  22.     [ uuid(182CB001-BEED-11CE-9611-00AA004A75CF),
  23.       helpstring("Dispatch interface for Maths3 Control"), hidden ]
  24.     dispinterface _DMaths3
  25.     {
  26.         properties:
  27.             // NOTE - ClassWizard will maintain property information here.
  28.             //    Use extreme caution when editing this section.
  29.             //{{AFX_ODL_PROP(CMaths3Ctrl)
  30.             [id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
  31.             [id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
  32.             [id(1)] boolean Opposite;
  33.             //}}AFX_ODL_PROP
  34.  
  35.         methods:
  36.             // NOTE - ClassWizard will maintain method information here.
  37.             //    Use extreme caution when editing this section.
  38.             //{{AFX_ODL_METHOD(CMaths3Ctrl)
  39.             //}}AFX_ODL_METHOD
  40.  
  41.             [id(DISPID_ABOUTBOX)] void AboutBox();
  42.     };
  43.  
  44.     //  Event dispatch interface for CMaths3Ctrl
  45.  
  46.     [ uuid(182CB002-BEED-11CE-9611-00AA004A75CF),
  47.       helpstring("Event interface for Maths3 Control") ]
  48.     dispinterface _DMaths3Events
  49.     {
  50.         properties:
  51.             //  Event interface has no properties
  52.  
  53.         methods:
  54.             // NOTE - ClassWizard will maintain event information here.
  55.             //    Use extreme caution when editing this section.
  56.             //{{AFX_ODL_EVENT(CMaths3Ctrl)
  57.             [id(1)] void Outside();
  58.             [id(2)] void Inside(OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
  59.             //}}AFX_ODL_EVENT
  60.     };
  61.  
  62.     //  Class information for CMaths3Ctrl
  63.  
  64.     [ uuid(182CB003-BEED-11CE-9611-00AA004A75CF),
  65.       helpstring("Maths3 Control"), control ]
  66.     coclass Maths3
  67.     {
  68.         [default] dispinterface _DMaths3;
  69.         [default, source] dispinterface _DMaths3Events;
  70.     };
  71.  
  72.  
  73.     //{{AFX_APPEND_ODL}}
  74. };
  75.