Leaked source code of windows server 2003
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.

98 lines
3.8 KiB

  1. class TextGadget : public Visual
  2. {
  3. dapi HRESULT GetFont(out HFONT hfnt);
  4. dapi HRESULT SetFont(in HFONT hfnt);
  5. dapi HRESULT GetText(out LPCWSTR pszText);
  6. dapi HRESULT SetText(in LPCWSTR pszText);
  7. dapi HRESULT GetColor(out COLORREF crText);
  8. dapi HRESULT SetColor(in COLORREF crText);
  9. dapi HRESULT GetAutoSize(out BOOL fAutoSize);
  10. dapi HRESULT SetAutoSize(in BOOL fAutoSize);
  11. };
  12. class HyperLinkGadget : public TextGadget
  13. {
  14. dapi HRESULT GetActiveFont(out HFONT hfnt);
  15. dapi HRESULT SetActiveFont(in HFONT hfnt);
  16. dapi HRESULT GetNormalFont(out HFONT hfnt);
  17. dapi HRESULT SetNormalFont(in HFONT hfnt);
  18. dapi HRESULT GetActiveColor(out COLORREF crText);
  19. dapi HRESULT SetActiveColor(in COLORREF crText);
  20. dapi HRESULT GetNormalColor(out COLORREF crText);
  21. dapi HRESULT SetNormalColor(in COLORREF crText);
  22. };
  23. class ImageGadget : public Visual
  24. {
  25. dapi HRESULT GetImage(out HBITMAP hbmp);
  26. dapi HRESULT SetImage(in HBITMAP hbmp, in BOOL fPassOwnership);
  27. dapi HRESULT GetCrop(out POINT ptOffsetPxl, out SIZE sizeCropPxl);
  28. dapi HRESULT SetCrop(in POINT ptOffsetPxl, in SIZE sizeCropPxl);
  29. dapi HRESULT GetMode(out UINT nMode);
  30. dapi HRESULT SetMode(in UINT nNewMode);
  31. dapi HRESULT GetOptions(out UINT nOptions);
  32. dapi HRESULT SetOptions(in UINT nOptions, in UINT nMask);
  33. dapi HRESULT GetTransparentColor(out COLORREF crTransparent);
  34. dapi HRESULT SetTransparentColor(in COLORREF crTransparent);
  35. dapi HRESULT GetAlphaLevel(out BYTE bAlpha);
  36. dapi HRESULT SetAlphaLevel(in BYTE bAlpha);
  37. };
  38. class VectorGadget : public Visual
  39. {
  40. dapi HRESULT GetImage(out HENHMETAFILE hemf);
  41. dapi HRESULT SetImage(in HENHMETAFILE hemf, in BOOL fPassOwnership);
  42. dapi HRESULT GetCrop(out POINT ptOffsetPxl, out SIZE sizeCropPxl);
  43. dapi HRESULT SetCrop(in POINT ptOffsetPxl, in SIZE sizeCropPxl);
  44. dapi HRESULT GetMode(out UINT nMode);
  45. dapi HRESULT SetMode(in UINT nNewMode);
  46. };
  47. class EditLineGadget : public Visual
  48. {
  49. dapi HRESULT GetFont(HFONT hfnt);
  50. dapi HRESULT SetFont(HFONT hfnt);
  51. dapi HRESULT GetText(out LPCWSTR pszText);
  52. dapi HRESULT SetText(in LPCWSTR pszText);
  53. dapi HRESULT GetTextColor(out COLORREF crText);
  54. dapi HRESULT SetTextColor(in COLORREF crText);
  55. };
  56. class EditLineFGadget : public Visual
  57. {
  58. dapi HRESULT GetFont(out Gdiplus::Font * pgpfnt);
  59. dapi HRESULT SetFont(in Gdiplus::Font * pgpfnt, in BOOL fPassOwnership);
  60. dapi HRESULT GetText(out LPCWSTR pszText);
  61. dapi HRESULT SetText(in LPCWSTR pszText);
  62. dapi HRESULT GetTextFill(out Gdiplus::Brush * pgpbrFill);
  63. dapi HRESULT SetTextFill(in Gdiplus::Brush * pgpbrFill);
  64. };
  65. class CheckBoxGadget : public Visual
  66. {
  67. dapi HRESULT GetColor(out COLORREF crCheckBox);
  68. dapi HRESULT SetColor(in COLORREF crCheckBox);
  69. dapi HRESULT GetCheck(out UINT nCheck);
  70. dapi HRESULT SetCheck(in UINT nCheck);
  71. dapi HRESULT GetType(out UINT nType);
  72. dapi HRESULT SetType(in UINT nType);
  73. dapi HRESULT GetItem(out Visual * pgvItem);
  74. dapi HRESULT SetItem(in Visual * pgvItem);
  75. dapi HRESULT SetText(in LPCWSTR pszText);
  76. };
  77. class ButtonGadget : public Visual
  78. {
  79. dapi HRESULT GetColor(out COLORREF crButton);
  80. dapi HRESULT SetColor(in COLORREF crButton);
  81. dapi HRESULT GetItem(out Visual * pgvItem);
  82. dapi HRESULT SetItem(in Visual * pgvItem);
  83. dapi HRESULT SetText(in LPCWSTR pszText);
  84. };