From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/nu/menushortcuts.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Src/nu/menushortcuts.h (limited to 'Src/nu/menushortcuts.h') diff --git a/Src/nu/menushortcuts.h b/Src/nu/menushortcuts.h new file mode 100644 index 00000000..b9c9127a --- /dev/null +++ b/Src/nu/menushortcuts.h @@ -0,0 +1,20 @@ +#ifndef NULLOSFT_MEDIALIBRARY_MENU_SHORTCUTS_HEADER +#define NULLOSFT_MEDIALIBRARY_MENU_SHORTCUTS_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include + +#define MSF_REPLACE 0x0000 +#define MSF_APPEND 0x0001 +#define MSF_WALKSUBMENU 0x0100 + +BOOL AppendMenuShortcuts(HMENU hMenu, HACCEL *phAccel, INT count, UINT uMode); +BOOL AppendMenuShortcutsEx(HMENU hMenu, ACCEL *pszAccel, INT count, UINT uMode); +BOOL AppendShortcutText(LPWSTR pszItemText, INT cchTextMax, WORD wID, HACCEL *phAccel, INT count, UINT uMode); +BOOL AppendShortcutTextEx(LPWSTR pszItemText, INT cchTextMax, WORD wID, ACCEL *pszAccel, INT cchAccel, UINT uMode); + + +#endif // NULLOSFT_MEDIALIBRARY_MENU_SHORTCUTS_HEADER \ No newline at end of file -- cgit