From 61b200d53108f50cfba3ba89448c17c69aa9b291 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Tue, 22 Oct 2013 21:35:16 +0000 Subject: [PATCH] CMM: update list_box library git-svn-id: svn://kolibrios.org@4073 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/list_box.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/programs/cmm/lib/list_box.h b/programs/cmm/lib/list_box.h index 6fde8e299b..d28524cdad 100644 --- a/programs/cmm/lib/list_box.h +++ b/programs/cmm/lib/list_box.h @@ -6,6 +6,7 @@ struct llist int count, visible, first, current; int current_temp; void ClearList(); + int ProcessKey(dword key); int KeyDown(); int KeyUp(); int KeyHome(); @@ -49,6 +50,18 @@ int llist::MouseScroll(dword scroll_state) 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