AlbumArtListView.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _ALBUMARTLISTVIEW_H_
  2. #define _ALBUMARTLISTVIEW_H_
  3. #include "SkinnedListView.h"
  4. #include <tataki/bitmap/autobitmap.h>
  5. #include <tataki/canvas/bltcanvas.h>
  6. class AlbumArtListView : public SkinnedListView {
  7. public:
  8. AlbumArtListView(ListContents * lc, int dlgitem, HWND libraryParent, HWND parent, bool enableHeaderMenu=true);
  9. virtual ~AlbumArtListView();
  10. virtual int GetFindItemColumn();
  11. virtual BOOL DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,LPARAM lParam);
  12. virtual HMENU GetMenu(bool isFilter, int filterNum, C_Config *c, HMENU themenu);
  13. virtual void ProcessMenuResult(int r, bool isFilter, int filterNum, C_Config *c, HWND parent);
  14. BOOL DrawItemIcon(NMLVCUSTOMDRAW *plvcd, DCCanvas *pCanvas, UINT itemState, RECT *prcClip, BOOL bWndActive);
  15. BOOL PrepareDetails(HDC hdc);
  16. BOOL DrawItemDetail(NMLVCUSTOMDRAW *plvcd, DCCanvas *pCanvas, UINT itemState, RECT *prcClip, BOOL bWndActive, HDC hdcNaes, INT namesWidth);
  17. void drawArt(pmpart_t art, DCCanvas *pCanvas, RECT *prcDst, int itemid, int imageIndex);
  18. protected:
  19. BOOL OnCustomDrawDetails(NMLVCUSTOMDRAW *plvcd, LRESULT *pResult);
  20. BOOL OnCustomDrawIcon(NMLVCUSTOMDRAW *plvcd, LRESULT *pResult);
  21. BOOL OnKeyDown(NMLVKEYDOWN *plvkd);
  22. BOOL CalcuateItemHeight(void);
  23. int dlgitem;
  24. HWND hwndDlg;
  25. int mode;
  26. WNDPROC oldproc;
  27. AutoSkinBitmap notfound, notfound60, notfound90;
  28. ARGB32 * classicnotfound[3];
  29. int classicnotfoundW,classicnotfoundH;
  30. INT ratingrow;
  31. HBITMAP hbmpNames;
  32. INT itemHeight;
  33. INT textHeight;
  34. INT ratingTop;
  35. };
  36. #endif // _ALBUMARTLISTVIEW_H_