Rev 4063 | Rev 4077 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4063 | Rev 4073 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | { |
4 | { |
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 KeyDown(); |
10 | int KeyDown(); |
10 | int KeyUp(); |
11 | int KeyUp(); |
11 | int KeyHome(); |
12 | int KeyHome(); |
12 | int KeyEnd(); |
13 | int KeyEnd(); |
13 | void SetSizes(int xx, yy, ww, hh, min_hh, line_hh); |
14 | void SetSizes(int xx, yy, ww, hh, min_hh, line_hh); |
Line 47... | Line 48... | ||
47 | return 1; |
48 | return 1; |
48 | } |
49 | } |
49 | return 0; |
50 | return 0; |
50 | } |
51 | } |
Line -... | Line 52... | ||
- | 52 | ||
- | 53 | int llist::ProcessKey(dword key) |
|
- | 54 | { |
|
- | 55 | switch(key) |
|
- | 56 | { |
|
- | 57 | case 177: return KeyDown(); |
|
- | 58 | case 178: return KeyUp(); |
|
- | 59 | case 180: return KeyHome(); |
|
- | 60 | case 181: return KeyEnd(); |
|
- | 61 | } |
|
- | 62 | return 0; |
|
- | 63 | } |
|
51 | 64 | ||
52 | int llist::KeyDown() |
65 | int llist::KeyDown() |
53 | { |
66 | { |
54 | if (current-first+1 |
67 | if (current-first+1 |
55 | { |
68 | { |