Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Plugins/General/gen_ml/skinnedlistbox.h
2024-09-24 14:54:57 +02:00

33 lines
951 B
C++

#ifndef NULLOSFT_MEDIALIBRARY_SKINNED_LISTBOX_HEADER
#define NULLOSFT_MEDIALIBRARY_SKINNED_LISTBOX_HEADER
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include "./skinnedscrollwnd.h"
class SkinnedListbox : public SkinnedScrollWnd
{
protected:
SkinnedListbox(void);
virtual ~SkinnedListbox(void);
protected:
virtual BOOL Attach(HWND hwndListbox);
virtual void OnDrawItem(DRAWITEMSTRUCT *pdis);
virtual LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual void OnSkinUpdated(BOOL bNotifyChildren, BOOL bRedraw);
virtual HPEN GetBorderPen(void);
virtual void OnPrint(HDC hdc, UINT options);
public:
static void DrawItem(DRAWITEMSTRUCT *pdis, LPCWSTR pszText, INT cchText);
static void MeasureItem(HWND hwnd, LPCWSTR pszText, INT cchText, UINT *pWidth, UINT *pHeight);
private:
friend BOOL SkinWindowEx(HWND hwndToSkin, INT type, UINT style);
};
#endif // NULLOSFT_MEDIALIBRARY_SKINNED_LISTBOX_HEADER