Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.9 KiB

  1. #include <olectl.h>
  2. #include "dispids.h"
  3. // hhctrl.idl : IDL source for hhctrl.ocx
  4. //
  5. // This file will be processed by the MIDL tool to
  6. // produce the type library (hhctrl.tlb) and marshalling code.
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9. [
  10. object,
  11. uuid(adb880a1-d8ff-11cf-9377-00aa003b7a11),
  12. dual,
  13. helpstring("IHHCtrl Interface"),
  14. pointer_default(unique)
  15. ]
  16. interface IHHCtrl : IDispatch
  17. {
  18. [propput, id(DISPID_BMPPATH)]
  19. HRESULT Image([in]BSTR path);
  20. [propget, id(DISPID_BMPPATH)]
  21. HRESULT Image([out,retval]BSTR* path);
  22. [id(DISPID_METHOD_CLICK), helpstring("Click method")] HRESULT Click();
  23. [id(DISPID_METHOD_HHCLICK), helpstring("Click method")] HRESULT HHClick();
  24. [id(DISPID_METHOD_PRINT), helpstring("Print method")] HRESULT Print();
  25. [id(DISPID_METHOD_SYNC_URL), helpstring("syncURL method")] HRESULT syncURL(BSTR pszUrl);
  26. [id(DISPID_METHOD_TCARD), helpstring("TCard method")] HRESULT TCard(WPARAM wParam, LPARAM lParam);
  27. [id(DISPID_METHOD_TXT_POPUP), helpstring("Text Popup method")] HRESULT TextPopup(BSTR pszText, BSTR pszFont, int horzMargins, int vertMargins, COLORREF clrForeground, COLORREF clrBackground);
  28. };
  29. [
  30. uuid(adb880a2-d8ff-11cf-9377-00aa003b7a11),
  31. lcid(0x0000),
  32. version(4.0),
  33. helpstring("HHCtrl 4.0 Type Library")
  34. ]
  35. library HHCTRLLib
  36. {
  37. importlib("stdole32.tlb");
  38. [
  39. uuid(adb880a3-d8ff-11cf-9377-00aa003b7a11),
  40. helpstring("Event interface for HHCtrl")
  41. ]
  42. dispinterface _HHCtrlEvents
  43. {
  44. properties:
  45. methods:
  46. [id(DISPID_ONCLICK)] void Click(BSTR ParamString);
  47. };
  48. [
  49. uuid(adb880a6-d8ff-11cf-9377-00aa003b7a11),
  50. helpstring("HHCtrl Class")
  51. ]
  52. coclass HHCtrl
  53. {
  54. [default] interface IHHCtrl;
  55. [default, source] dispinterface _HHCtrlEvents;
  56. };
  57. };