GalleryItems.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:3k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // GalleryItems.h: interface for the CGalleryItemStyleSet class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_GALLERYITEMS_H__04E890F7_BFE8_48DF_9E4A_AE16DBA3BD6A__INCLUDED_)
  5. #define AFX_GALLERYITEMS_H__04E890F7_BFE8_48DF_9E4A_AE16DBA3BD6A__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CGalleryItemStyleSet : public CXTPControlGalleryItem
  10. {
  11. public:
  12. CGalleryItemStyleSet(int nId, LPCTSTR lpszCaption);
  13. virtual ~CGalleryItemStyleSet();
  14. virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);
  15. };
  16. class CGalleryItemThemeColors : public CXTPControlGalleryItem
  17. {
  18. public:
  19. CGalleryItemThemeColors(int nId, LPCTSTR lpszCaption);
  20. virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);
  21. };
  22. class CGalleryItemThemeFonts : public CXTPControlGalleryItem
  23. {
  24. public:
  25. CGalleryItemThemeFonts(int nId, LPCTSTR lpszCaption);
  26. virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);
  27. };
  28. class CGalleryItemTable : public CXTPControlGalleryItem
  29. {
  30. public:
  31. CGalleryItemTable(int nId);
  32. virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);
  33. };
  34. class CGalleryItemTableLabel : public CXTPControlGalleryItem
  35. {
  36. public:
  37. CGalleryItemTableLabel();
  38. virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);
  39. };
  40. class CGalleryItemFontColor : public CXTPControlGalleryItem
  41. {
  42. public:
  43. CGalleryItemFontColor(COLORREF clr, LPCTSTR lpszCaption, BOOL bTopMargin = TRUE, BOOL bBotttomMargin = TRUE);
  44. CGalleryItemFontColor(COLORREF clr, int nToolTip);
  45. public:
  46. static void AddStandardColors(CXTPControlGalleryItems* pItems);
  47. static void AddStandardBackColors(CXTPControlGalleryItems* pItems);
  48. static void AddThemeColors(CXTPControlGalleryItems* pItems, int nTheme);
  49. virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);
  50. protected:
  51. BOOL m_bTopMargin;
  52. BOOL m_bBottomMargin;
  53. };
  54. class CGalleryItemFontFace : public CXTPControlGalleryItem
  55. {
  56. public:
  57. CGalleryItemFontFace(LPCTSTR lpszCaption);
  58. public:
  59. static void AddFontItems(CXTPControlGalleryItems* pItems);
  60. public:
  61. virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);
  62. };
  63. class CGalleryItemUndo : public CXTPControlGalleryItem
  64. {
  65. public:
  66. CGalleryItemUndo(LPCTSTR lpszCaption);
  67. public:
  68. virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);
  69. };
  70. class CControlGalleryUndo : public CXTPControlGallery
  71. {
  72. DECLARE_XTP_CONTROL(CControlGalleryUndo);
  73. public:
  74. CControlGalleryUndo();
  75. CXTPControlStatic* FindInfoControl();
  76. void OnSelectedItemChanged();
  77. };
  78. #endif // !defined(AFX_GALLERYITEMS_H__04E890F7_BFE8_48DF_9E4A_AE16DBA3BD6A__INCLUDED_)