/programs/cmm/lib/list_box.h |
---|
6,6 → 6,7 |
int count, visible, first, current; |
int current_temp; |
void ClearList(); |
int ProcessKey(dword key); |
int KeyDown(); |
int KeyUp(); |
int KeyHome(); |
49,6 → 50,18 |
return 0; |
} |
int llist::ProcessKey(dword key) |
{ |
switch(key) |
{ |
case 177: return KeyDown(); |
case 178: return KeyUp(); |
case 180: return KeyHome(); |
case 181: return KeyEnd(); |
} |
return 0; |
} |
int llist::KeyDown() |
{ |
if (current-first+1<visible) |