Solved

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

Posted on 2001-06-18
1
144 Views
Last Modified: 2013-11-20
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?
0
Comment
Question by:emily_hall
1 Comment
 
LVL 49

Accepted Solution

by:
DanRollins earned 35 total points
ID: 6205241
Use CMenu::AppendMenu() or AddMenu() and set the nFlags parameter it include MF_SEPARATOR.  The itemId is irrelevant.

-- Dan
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question