Author: dchapyshev
Date: Sun Apr 20 13:59:58 2008
New Revision: 33077
URL:
http://svn.reactos.org/svn/reactos?rev=33077&view=rev
Log:
- Add "Exit" item to menu
Modified:
trunk/reactos/base/applications/kbswitch/kbswitch.c
Modified: trunk/reactos/base/applications/kbswitch/kbswitch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/kbswitch…
==============================================================================
--- trunk/reactos/base/applications/kbswitch/kbswitch.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/kbswitch/kbswitch.c [iso-8859-1] Sun Apr 20 13:59:58
2008
@@ -158,6 +158,9 @@
RegCloseKey(hKey);
}
+
+ AppendMenu(hMenu, MF_SEPARATOR, 0, _T(""));
+ AppendMenu(hMenu, MF_STRING, 1000, _T("Exit"));
return hMenu;
}
@@ -191,7 +194,16 @@
break;
case WM_COMMAND:
- ActivateLayout(LOWORD(wParam));
+ if (LOWORD(wParam) == 1000)
+ {
+ DestroyMenu(hPopupMenu);
+ DelTrayIcon(hwnd);
+ PostQuitMessage(0);
+ }
+ else
+ {
+ ActivateLayout(LOWORD(wParam));
+ }
break;
case WM_DESTROY: