add oversampler

This commit is contained in:
2024-05-24 13:28:31 +02:00
parent e4a4a661a0
commit 989dba5a6b
484 changed files with 313937 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#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