It's very long ago, but as I recall the MF_POPUP flag applies to a menu
entry, not to a menu object in itself.
So, the literal question seems to be practically impossible, but simply
specify MF_BYPOSITION|MF_POPUP when you create the menu entry.
Cheers & hth.,
- Alf