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

  1. // Maths1.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. // Maths1.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(183CB000-BEED-11CE-9611-00AA004A75CF), version(1.0),
  14.   helpstring("Maths1 OLE Custom Control module"), control ]
  15. library Maths1Lib
  16. {
  17.     importlib(STDOLE_TLB);
  18.     importlib(STDTYPE_TLB);
  19.  
  20.     //  Primary dispatch interface for CMaths1Ctrl
  21.  
  22.     [ uuid(183CB001-BEED-11CE-9611-00AA004A75CF),
  23.       helpstring("Dispatch interface for Maths1 Control"), hidden ]
  24.     dispinterface _DMaths1
  25.     {
  26.         properties:
  27.             // NOTE - ClassWizard will maintain property information here.
  28.             //    Use extreme caution when editing this section.
  29.             //{{AFX_ODL_PROP(CMaths1Ctrl)
  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(CMaths1Ctrl)
  39.             //}}AFX_ODL_METHOD
  40.  
  41.             [id(DISPID_ABOUTBOX)] void AboutBox();
  42.     };
  43.  
  44.     //  Event dispatch interface for CMaths1Ctrl
  45.  
  46.     [ uuid(183CB002-BEED-11CE-9611-00AA004A75CF),
  47.       helpstring("Event interface for Maths1 Control") ]
  48.     dispinterface _DMaths1Events
  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(CMaths1Ctrl)
  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 CMaths1Ctrl
  63.  
  64.     [ uuid(183CB003-BEED-11CE-9611-00AA004A75CF),
  65.       helpstring("Maths1 Control"), control ]
  66.     coclass Maths1
  67.     {
  68.         [default] dispinterface _DMaths1;
  69.         [default, source] dispinterface _DMaths1Events;
  70.     };
  71.  
  72.  
  73.     //{{AFX_APPEND_ODL}}
  74. };
  75.