summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.h
blob: 0483ac9112d7806d3004834ebefb9313c6054ff0 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef __history_control_h__
#define __history_control_h__

#define NEWSTORYLIST_CLASS "NewstoryList"

struct ADDEVENTS
{
	MCONTACT hContact;
	MEVENT hFirstEVent;
	int eventCount;
};

enum
{
	NSM_FIRST = WM_USER + 100,

	// wParam = fist item
	// lParam = last item
	// result = number of total selected items
	NSM_SELECTITEMS = NSM_FIRST,

	// wParam = fist item
	// lParam = last item
	// result = number of total selected items
	NSM_TOGGLEITEMS,

	// wParam = fist item
	// lParam = last item
	// result = number of total selected items
	// select items wParam - lParam and deselect all other
	NSM_SELECTITEMS2,

	// wParam = fist item
	// lParam = last item
	// result = number of total selected items
	NSM_DESELECTITEMS,

	// wParam = item id
	NSM_ENSUREVISIBLE,

	// wParam = x in control
	// lParam = y in control
	// result = id
	NSM_GETITEMFROMPIXEL,

	// add one or more events
	NSM_ADDEVENTS,
	NSM_ADDCHATEVENT,

	// wParam = id
	NSM_SETCARET,

	// result = id
	NSM_GETCARET,

	// wParam = text
	NSM_FINDNEXT,
	NSM_FINDPREV,

	// wParam = wtext
	NSM_FINDNEXTW,
	NSM_FINDPREVW,

	//
	NSM_COPY,
	NSM_DELETE,
	NSM_EXPORT,

	//
	NSM_GETCOUNT,

	//
	NSM_SEEKEND,
	NSM_SEEKTIME,

	NSM_LAST
};

void InitNewstoryControl();
//void DestroyNewstoryControl();

#endif // __history_control_h__