diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 5647690c01..ea98d096b9 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -452,6 +452,12 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos) mii.fState = MFS_CHECKED; } + if ( flags & MF_MENUBREAK ) + { + mii.fMask |= MIIM_FTYPE; + mii.fType = MFT_MENUBREAK; + } + mii.dwItemData = reinterpret_cast(pItem); ok = ::InsertMenuItem(GetHmenu(), pos, TRUE /* by pos */, &mii);