1 #ifndef _WDL_WIN32_HELPERS_H_
2 #define _WDL_WIN32_HELPERS_H_
5 static HMENU
InsertSubMenu(HMENU hMenu
, int pos
, const char *name
, int flags
=0)
10 sub
= CreatePopupMenu();
11 InsertMenu(hMenu
,pos
,flags
|MF_BYPOSITION
|(sub
?MF_POPUP
:0)|MF_STRING
,(UINT_PTR
)sub
, name
);
16 static void InsertMenuString(HMENU hMenu
, int pos
, const char *name
, int idx
, int flags
=0)
18 if (hMenu
) InsertMenu(hMenu
,pos
,flags
|MF_BYPOSITION
|MF_STRING
, idx
, name
);
21 static void InsertMenuSeparator(HMENU hMenu
, int pos
)
23 if (hMenu
) InsertMenu(hMenu
,pos
,MF_BYPOSITION
|MF_SEPARATOR
, 0, NULL
);