setupListboxLabel.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef NULLOSFT_ONLINEMEDIA_PLUGIN_SETUPLISTBOX_LABEL_HEADER
  2. #define NULLOSFT_ONLINEMEDIA_PLUGIN_SETUPLISTBOX_LABEL_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include "./setupListbox.h"
  8. class SetupListboxLabel: public SetupListboxItem
  9. {
  10. protected:
  11. SetupListboxLabel(LPCWSTR pszName);
  12. ~SetupListboxLabel();
  13. public:
  14. static SetupListboxLabel *CreateInstance(LPCWSTR pszNamee);
  15. public:
  16. ULONG AddRef();
  17. ULONG Release();
  18. HRESULT GetName(LPWSTR pszBuffer, INT cchBufferMax);
  19. HRESULT SetName(LPCWSTR pszName);
  20. BOOL IsNameNull();
  21. void GetColors(HDC hdc, UINT state, COLORREF *rgbBkOut, COLORREF *rgbTextOut);
  22. HBRUSH GetBrush(HDC hdc, UINT state);
  23. /* SetupListboxItem */
  24. BOOL MeasureItem(SetupListbox *instance, UINT *cx, UINT *cy);
  25. BOOL DrawItem(SetupListbox *instance, HDC hdc, const RECT *prc, UINT state);
  26. INT_PTR KeyToItem(SetupListbox *instance, const RECT *prcItem, INT vKey);
  27. BOOL MouseMove(SetupListbox *instance, const RECT *prcItem, UINT mouseFlags, POINT pt);
  28. BOOL MouseLeave(SetupListbox *instance, const RECT *prcItem);
  29. BOOL LButtonDown(SetupListbox *instance, const RECT *prcItem, UINT mouseFlags, POINT pt);
  30. BOOL LButtonUp(SetupListbox *instance, const RECT *prcItem, UINT mouseFlags, POINT pt);
  31. BOOL LButtonDblClk(SetupListbox *instance, const RECT *prcItem, UINT mouseFlags, POINT pt);
  32. BOOL RButtonDown(SetupListbox *instance, const RECT *prcItem, UINT mouseFlags, POINT pt);
  33. BOOL RButtonUp(SetupListbox *instance, const RECT *prcItem, UINT mouseFlags, POINT pt);
  34. void CaptureChanged(SetupListbox *instance, const RECT *prcItem, SetupListboxItem *captured);
  35. BOOL IsDisabled() { return TRUE; }
  36. void Command(SetupListbox *instance, INT commandId, INT eventId) {}
  37. HWND CreateDetailsView(HWND hParent) { return NULL; }
  38. BOOL GetUniqueName(LPWSTR pszBuffer, UINT cchBufferMax);
  39. protected:
  40. ULONG ref;
  41. LPWSTR name;
  42. };
  43. #endif //NULLOSFT_ONLINEMEDIA_PLUGIN_SETUPLISTBOX_LABEL_HEADER