CMM: update list_box library

git-svn-id: svn://kolibrios.org@4073 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2013-10-22 21:35:16 +00:00
parent a26384aaa8
commit 61b200d531

View File

@ -6,6 +6,7 @@ struct llist
int count, visible, first, current; int count, visible, first, current;
int current_temp; int current_temp;
void ClearList(); void ClearList();
int ProcessKey(dword key);
int KeyDown(); int KeyDown();
int KeyUp(); int KeyUp();
int KeyHome(); int KeyHome();
@ -49,6 +50,18 @@ int llist::MouseScroll(dword scroll_state)
return 0; 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() int llist::KeyDown()
{ {
if (current-first+1<visible) if (current-first+1<visible)