Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
vtocx.idl
1 // vtocx.idl : type library source for ActiveX Control project.
2 
3 // This file will be processed by the MIDL compiler tool to
4 // produce the type library (vtocx.tlb) that will become a resource in
5 // vtocx.ocx.
6 
7 #include <olectl.h>
8 #include <idispids.h>
9 
10 [ uuid(AD34DE08-0561-4AC1-B740-7FAE00CA8D28), version(1.0),
11  helpfile("vtocx.hlp"),
12  helpstring("vtocx ActiveX Control module"),
13  control ]
14 library vtocxLib
15 {
16  importlib(STDOLE_TLB);
17 
18  // Primary dispatch interface for CvtocxCtrl
19 
20  [ uuid(36A29705-DCF3-4012-8FDA-07575131BC08),
21  helpstring("Dispatch interface for vtocx Control")]
22  dispinterface _Dvtocx
23  {
24  properties:
25  [id(1), helpstring("property ClearColor")] OLE_COLOR ClearColor;
26  [id(2), helpstring("property Stereo")] VARIANT_BOOL Stereo;
27  [id(12), helpstring("property TerrainFile")] BSTR TerrainFile;
28  [id(13), helpstring("property TerrainPaths")] BSTR TerrainPaths;
29  [id(14), helpstring("property Src")] BSTR Src;
30  [id(15), helpstring("property LocalSrc")] BSTR LocalSrc;
31  [id(16), helpstring("property Fullscreen")] VARIANT_BOOL Fullscreen;
32  [id(18), helpstring("property PositionX")] DOUBLE PositionX;
33  [id(19), helpstring("property PositionY")] DOUBLE PositionY;
34  [id(20), helpstring("property PositionZ")] DOUBLE PositionZ;
35  [id(21), helpstring("property NavSpeed")] FLOAT NavSpeed;
36  [id(22), helpstring("property ContextMenu")] VARIANT_BOOL ContextMenu;
37  [id(DISPID_READYSTATE), helpstring("property ReadyState")] LONG ReadyState;
38  methods:
39  [id(DISPID_ABOUTBOX)] void AboutBox();
40  [id(30), helpstring("method JumpToNo")] void JumpToNo(LONG vp);
41  [id(31), helpstring("method ResetView")] void ResetView();
42  };
43 
44  // Event dispatch interface for CvtocxCtrl
45 
46  [ uuid(66FCF5BE-102F-45FA-8574-CC67345624A9),
47  helpstring("Event interface for vtocx Control") ]
48  dispinterface _DvtocxEvents
49  {
50  properties:
51  // Event interface has no properties
52 
53  methods:
54  [id(DISPID_KEYPRESS)] void KeyPress(SHORT* KeyAscii);
55  [id(DISPID_READYSTATECHANGE)] void ReadyStateChange(void);
56  };
57 
58  // Class information for CvtocxCtrl
59 
60  [ uuid(246039DB-3D65-47EC-B929-C6A040981483),
61  helpstring("vtocx Control"), control ]
62  coclass vtocx
63  {
64  [default] dispinterface _Dvtocx;
65  [default, source] dispinterface _DvtocxEvents;
66  };
67 };