Rev 4073 | Rev 4078 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4073 | Rev 4077 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | int x, y, w, h, min_h, line_h; |
5 | int x, y, w, h, min_h, line_h; |
6 | int count, visible, first, current; |
6 | int count, visible, first, current; |
7 | int current_temp; |
7 | int current_temp; |
8 | void ClearList(); |
8 | void ClearList(); |
9 | int ProcessKey(dword key); |
9 | int ProcessKey(dword key); |
- | 10 | int MouseOver(int xx, yy); |
|
- | 11 | int ProcessMouse(int xx, yy); |
|
10 | int KeyDown(); |
12 | int KeyDown(); |
11 | int KeyUp(); |
13 | int KeyUp(); |
12 | int KeyHome(); |
14 | int KeyHome(); |
13 | int KeyEnd(); |
15 | int KeyEnd(); |
14 | void SetSizes(int xx, yy, ww, hh, min_hh, line_hh); |
16 | void SetSizes(int xx, yy, ww, hh, min_hh, line_hh); |
Line 48... | Line 50... | ||
48 | return 1; |
50 | return 1; |
49 | } |
51 | } |
50 | return 0; |
52 | return 0; |
51 | } |
53 | } |
Line -... | Line 54... | ||
- | 54 | ||
- | 55 | int llist::MouseOver(int xx, yy) |
|
- | 56 | { |
|
- | 57 | if (xx>x) && (xx |
|
- | 58 | return 0; |
|
- | 59 | } |
|
- | 60 | ||
- | 61 | int llist::ProcessMouse(int xx, yy) |
|
- | 62 | { |
|
- | 63 | if (MouseOver(xx, yy)) |
|
- | 64 | { |
|
- | 65 | current_temp = yy - y / line_h + first; |
|
- | 66 | if (current_temp != current) |
|
- | 67 | { |
|
- | 68 | current = current_temp; |
|
- | 69 | return 1; |
|
- | 70 | } |
|
- | 71 | } |
|
- | 72 | return 0; |
|
- | 73 | } |
|
52 | 74 | ||
53 | int llist::ProcessKey(dword key) |
75 | int llist::ProcessKey(dword key) |
54 | { |
76 | { |
55 | switch(key) |
77 | switch(key) |
56 | { |
78 | { |