blob: 2dc6a8ce622d3223d02616facfe0d1b9db4f6f6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#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
|