home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / ATL_Samples / polygon / polygon.idl < prev    next >
Encoding:
Text File  |  1999-02-19  |  1.7 KB  |  73 lines

  1. // NOTE:  ATL-BASED CONTROLS ARE ONLY SUPPORTED ON WINDOWS CE 2.0 OR LATER
  2.  
  3. #if defined(_WIN32_WCE) && _WIN32_WCE < 200
  4. #error "This sample can only be compiled for Windows CE 2.0 or later."
  5. #endif
  6.  
  7. #include <olectl.h>
  8. // Polygon.idl : IDL source for Polygon.dll
  9. //
  10.  
  11. // This file will be processed by the MIDL tool to
  12. // produce the type library (Polygon.tlb) and marshalling code.
  13. import "oaidl.idl";
  14. import "ocidl.idl";
  15.  
  16.     [
  17.         object,
  18.         uuid(4CBBC675-507F-11D0-B98B-000000000000),
  19.         dual,
  20.         helpstring("IPolyCtl Interface"),
  21.         pointer_default(unique)
  22.     ]
  23.     interface IPolyCtl : IDispatch
  24.     {
  25.         [propput, id(DISPID_FILLCOLOR)]
  26.         HRESULT FillColor([in]OLE_COLOR clr);
  27.         [propget, id(DISPID_FILLCOLOR)]
  28.         HRESULT FillColor([out, retval]OLE_COLOR* pclr);
  29.         [propget, id(1), helpstring("property Sides")] HRESULT Sides([out, retval] short *newVal);
  30.         [propput, id(1), helpstring("property Sides")] HRESULT Sides([in] short newVal);
  31.     };
  32. [
  33.     uuid(4CBBC673-507F-11D0-B98B-000000000000),
  34.     version(1.0),
  35.     helpstring("Polygon 1.0 Type Library")
  36. ]
  37. library POLYGONLib
  38. {
  39.     importlib("stdole32.tlb");
  40.  
  41.     [
  42.         uuid(4CBBC677-507F-11D0-B98B-000000000000),
  43.         helpstring("Event interface for PolyCtl")
  44.     ]
  45.     dispinterface _PolyEvents
  46.     {
  47.         properties:
  48.         methods:
  49.         [id(1)] void ClickIn([in]long x, [in] long y);
  50.         [id(2)] void ClickOut([in]long x, [in] long y);
  51.     };
  52.  
  53.     [
  54.         uuid(4CBBC676-507F-11D0-B98B-000000000000),
  55.         helpstring("PolyCtl Class")
  56.     ]
  57.     coclass PolyCtl
  58.     {
  59.         [default] interface IPolyCtl;
  60.         [default, source] dispinterface _PolyEvents;
  61.     };
  62.     
  63.  
  64.     [
  65.         uuid(A3121F30-516B-11D0-B98C-000000000000),
  66.         helpstring("PolyProp Class")
  67.     ]
  68.     coclass PolyProp
  69.     {
  70.         interface IUnknown;
  71.     };
  72. };
  73.