Files
Paul Lipscomb 6f66a5db64 Move feedback stutter bug report to android folder
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-30 19:14:00 -05:00

27 lines
703 B
C

#ifndef _WDL_WIN32_HELPERS_H_
#define _WDL_WIN32_HELPERS_H_
static WDL_STATICFUNC_UNUSED HMENU InsertSubMenu(HMENU hMenu, int pos, const char *name, int flags=0)
{
HMENU sub = NULL;
if (hMenu)
{
sub = CreatePopupMenu();
InsertMenu(hMenu,pos,flags|MF_BYPOSITION|(sub?MF_POPUP:0)|MF_STRING,(UINT_PTR)sub, name);
}
return sub;
}
static WDL_STATICFUNC_UNUSED void InsertMenuString(HMENU hMenu, int pos, const char *name, int idx, int flags=0)
{
if (hMenu) InsertMenu(hMenu,pos,flags|MF_BYPOSITION|MF_STRING, idx, name);
}
static WDL_STATICFUNC_UNUSED void InsertMenuSeparator(HMENU hMenu, int pos)
{
if (hMenu) InsertMenu(hMenu,pos,MF_BYPOSITION|MF_SEPARATOR, 0, NULL);
}
#endif