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.

56 lines
1.7 KiB

  1. /*****************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 2000
  4. *
  5. * TITLE: listitem.h
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: RickTu
  10. *
  11. * DATE: 10/18/00
  12. *
  13. * DESCRIPTION: Describes listitem class used in print photos wizard
  14. *
  15. *****************************************************************************/
  16. #ifndef _PRINT_PHOTOS_WIZARD_LISTITEM_H_
  17. #define _PRINT_PHOTOS_WIZARD_LISTITEM_H_
  18. class CListItem
  19. {
  20. public:
  21. CListItem( CPhotoItem * pItem, LONG lFrame );
  22. ~CListItem();
  23. HBITMAP GetThumbnailBitmap( const SIZE &sizeDesired );
  24. HBITMAP GetClassBitmap( const SIZE &sizeDesired );
  25. BOOL SelectedForPrinting() {return _bSelectedForPrinting;}
  26. VOID SetSelectionState( BOOL b ) { _bSelectedForPrinting = b; }
  27. BOOL JustAdded() {return _bJustAdded;}
  28. VOID SetJustAdded(BOOL b) { _bJustAdded = b; }
  29. VOID ToggleSelectionState() { _bSelectedForPrinting = (!_bSelectedForPrinting); }
  30. //HRESULT Render( Gdiplus::Graphics * g, HDC hDC, Gdiplus::Rect &dest, UINT Flags, RENDER_DIMENSIONS * pDim, BOOL bUseThumbnail = FALSE );
  31. HRESULT Render( RENDER_OPTIONS * pRO );
  32. LPITEMIDLIST GetPIDL();
  33. BOOL IsCopyItem() {return _bIsCopyItem;}
  34. VOID MarkAsCopy() {_bIsCopyItem = TRUE;}
  35. CPhotoItem * GetSubItem() {return _pImageInner;}
  36. LONG GetSubFrame() {return _lFrameIndex;}
  37. CSimpleStringWide * GetFilename();
  38. LONGLONG GetFileSize();
  39. private:
  40. BOOL _bSelectedForPrinting;
  41. BOOL _bJustAdded;
  42. BOOL _bIsCopyItem;
  43. LONG _lFrameIndex;
  44. CPhotoItem * _pImageInner;
  45. };
  46. #endif