!SkinCustomMenu allow for separators

This commit is contained in:
Brian Ferguson 2014-02-13 09:42:37 -07:00
parent 57e6787b71
commit f74dba0c03

View File

@ -499,10 +499,17 @@ void ContextMenu::AppendSkinCustomMenu(
for (size_t i = 0; i < titleSize; ++i) for (size_t i = 0; i < titleSize; ++i)
{ {
if (isTitleSeparator(cTitles[i])) if (isTitleSeparator(cTitles[i]))
{
if (standaloneMenu)
{
AppendMenu(menu, MF_BYPOSITION | MF_SEPARATOR, 0, nullptr);
}
else
{ {
// Separators not allowed in main top-level menu // Separators not allowed in main top-level menu
--position; --position;
} }
}
else else
{ {
const UINT_PTR id = (index << 16) | (IDM_SKIN_CUSTOMCONTEXTMENU_FIRST + i); const UINT_PTR id = (index << 16) | (IDM_SKIN_CUSTOMCONTEXTMENU_FIRST + i);