aboutsummaryrefslogtreecommitdiff
path: root/c/listview.h
blob: 08511d1fcb864445547528ea497c58cbd07d7b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef LISTVIEW_H
#define LISTVIEW_H

#include <windows.h>

struct ListView
{
	ListView(HWND hWndParent, HMENU hMenu, DWORD dwStyle);
	int Height(int bHeader = -1);
	HWND Handle(void) const;
	virtual void UpdateTheme(int bThemeActive);
	virtual LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
protected:
	int m_bHeader = 1;
	WNDPROC m_prevProc;
	HWND m_hWnd;
	HWND m_hWndParent;
};

#endif