ml_cloudcolumn.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef NULLOSFT_MEDIALIBRARY_CLOUD_COLUMN_HEADER
  2. #define NULLOSFT_MEDIALIBRARY_CLOUD_COLUMN_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <windows.h>
  7. typedef struct _CLOUDCOLUMNPAINT_I
  8. {
  9. HWND hwndList; // hwnd of the listview
  10. HDC hdc; // hdc
  11. UINT iItem; // item index
  12. UINT iSubItem; // subitem index
  13. INT value; // database cloud status (1=full,2=partial,3=unavail)
  14. RECT *prcItem; // whole item rect (plvcd->nmcd.rc)
  15. RECT *prcView; // client area size (you can get it at CDDS_PREPAINT in plvcd->nmcd.rc)
  16. COLORREF rgbBk; // color to use as background (plvcd->clrTextBk)
  17. COLORREF rgbFg; // color to use as foreground (plvcd->clrText)
  18. } CLOUDCOLUMNPAINT_I;
  19. typedef struct _CLOUDBACKTEXT_I
  20. {
  21. LPWSTR pszText;
  22. INT cchTextMax;
  23. INT nColumnWidth; // used if style is RCS_ALLIGN_CENTER or RCS_ALLIGN_RIGHT
  24. } CLOUDBACKTEXT_I;
  25. BOOL MLCloudColumnI_Initialize(void); // call it before any other. You can call it any time something changed
  26. BOOL MLCloudColumnI_Paint(CLOUDCOLUMNPAINT_I *pRCPaint);
  27. INT MLCloudColumnI_GetMinWidth(void);
  28. INT MLCloudColumnI_GetWidth(INT width);
  29. #endif // NULLOSFT_MEDIALIBRARY_CLOUD_COLUMN_HEADER