how do i add a separator to a dynamically generated menu?

I have a menu that is generated at runtime and I want to put a separator between two of the items in the menu.  How do I do this?
LVL 1
emily_hallAsked:
Who is Participating?
 
DanRollinsCommented:
Use CMenu::AppendMenu() or AddMenu() and set the nFlags parameter it include MF_SEPARATOR.  The itemId is irrelevant.

-- Dan
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.