summaryrefslogtreecommitdiff
path: root/Plugins/emoticons/SingleListEmoticons.h
blob: 2beda776466aa46903c442e8d915cbdc6845edc0 (plain)
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
34
35
36
class SingleListEmoticons : public EmoticonsSelectionLayout
{
public:
	struct {
		int count;
		int max_height;
		int max_width;
		int lines;
		int cols;
	} emoticons;

	SingleListEmoticons(HWND hwnd, EmoticonSelectionData *ssd);
	virtual ~SingleListEmoticons();

	virtual void CreateToolTips();

	virtual void SetSelection(HWND hwnd, POINT p);

	virtual void OnUp(HWND hwnd);
	virtual void OnDown(HWND hwnd);
	virtual void OnLeft(HWND hwnd);
	virtual void OnRight(HWND hwnd);

	virtual void Draw(HDC hdc);

protected:

	void Load();

	RECT GetEmoticonRect(int line, int col);

	void GetMaxEmoticonSize();

	int GetEmoticonCountRoundedByCols();

};