SPPropertyGridItemImage.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #pragma once
  2. #include "ImageDlg.h"
  3. #include "TextEffectDlg.h"
  4. class CSPPropertyGridItemImage : public CSPPropertyGridItem
  5. {
  6. public:
  7. CSPPropertyGridItemImage( CString strCaption , LPCTSTR strValue = NULL , CString * pBindString = NULL );
  8. CSPPropertyGridItemImage( UINT nID );
  9. virtual ~CSPPropertyGridItemImage( void );
  10. void OnInplaceButtonDown();
  11. CImageDlg m_dlgImage;
  12. };
  13. class CSPPropertyGridItemText : public CSPPropertyGridItem
  14. {
  15. public:
  16. CSPPropertyGridItemText( CString strCaption , LPCTSTR strValue = NULL , CString * pBindString = NULL );
  17. CSPPropertyGridItemText( UINT nID );
  18. virtual ~CSPPropertyGridItemText( void );
  19. void OnInplaceButtonDown();
  20. CTextEffectDlg m_dlgText;
  21. };
  22. class CSPPropertyGridItemRect : public CSPPropertyGridItem
  23. {
  24. class CCustomItemChildsAll;
  25. class CCustomItemChildsPad;
  26. friend class CCustomItemChildsAll;
  27. friend class CCustomItemChildsPad;
  28. public:
  29. CSPPropertyGridItemRect( CString strCaption , CRect rcValue );
  30. CSPPropertyGridItemRect( UINT nID , CRect rcValue );
  31. void SetRect( CRect rc );
  32. CRect GetRect();
  33. protected:
  34. virtual void OnAddChildItem();
  35. virtual void SetValue( CString strValue );
  36. private:
  37. void UpdateChilds();
  38. CString RectToString( CRect rc );
  39. private:
  40. CCustomItemChildsAll * m_itemAll;
  41. CCustomItemChildsPad * m_itemLeft;
  42. CCustomItemChildsPad * m_itemTop;
  43. CCustomItemChildsPad * m_itemRight;
  44. CCustomItemChildsPad * m_itemBottom;
  45. CRect m_rcValue;
  46. };