How do I add/remove main menu selections at run time?

I need to be able to add main menu items: ID, Caption and Prompt (as well as 
control properties) under program control. How might I accomplish this, or is 
there a Knowlegebase article that covers this topic?
0
AVee (83)
9/30/2005 4:30:03 PM
vc.mfc 33608 articles. 0 followers. Follow

2 Replies
534 Views

Similar Articles

[PageSpeed] 9

AVee wrote:
> I need to be able to add main menu items: ID, Caption and Prompt (as well as 
> control properties) under program control. How might I accomplish this, or is 
> there a Knowlegebase article that covers this topic?

This may be what you are looking for:

http://www.codeproject.com/menu/dynitems.asp

(c:
0
user1895 (19)
10/1/2005 8:54:38 PM
Thanks, Mark (great emoticon!). This example in Code Project was a bit more 
than I was looking for. Since then I found a good example in the MFC Samples 
entitled "DynaMenu". Thanks, though.

"Mark F." wrote:

> AVee wrote:
> > I need to be able to add main menu items: ID, Caption and Prompt (as well as 
> > control properties) under program control. How might I accomplish this, or is 
> > there a Knowlegebase article that covers this topic?
> 
> This may be what you are looking for:
> 
> http://www.codeproject.com/menu/dynitems.asp
> 
> (c:
> 
0
AVee (83)
10/7/2005 8:23:13 PM
Reply:

Similar Artilces:

Macro to add a connection point to the center of every circle in a dwg
Hello, I'm trying to figure out how to add a connection point that is relative to a shape, such as the center of a circle. I'm used to doing this in Autocad, but not in visio. Can someone show me how to make a macro or know if one already esists that can find all the circle shapes in a drawing, and insert a connection point at the center of each one. (Usiing visio2003) Thanks in advance.. You might try something like this, Al ' this is called by the following routine to add a standard set of ' connections to the rectangles used Public Function funcAddConnectionPointToS...

Removing site sections
Is it possible to remove entire sections/concepts from the CRM system? For instance, I'd like to get rid of the Opportunities in CRM. How would I go about that? Thanks. -GS You could restrict access to that area via security. "--" <bizilly@NOTCOLDmail.com> wrote in message news:gdudnZmwO6jM7SOiRVn-gw@speakeasy.net... Is it possible to remove entire sections/concepts from the CRM system? For instance, I'd like to get rid of the Opportunities in CRM. How would I go about that? Thanks. -GS ...

How do I remove ~WRL0000.tmp files?
Two days ago one of my MS Word folders I was working in started to accumulate a lot of ~WRL1234.tmp files. Usually these disappear after I leave the folder, but today they're still there. How can I delete them? And how can I reset things so they don't start accumulating again? Many Thanks. See http://www.gmayor.com/what_to_do_when_word_crashes.htm. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. Tim wrote: > Two days ago one of my...

add e-mailaddresses
Hi, we are using Exchange 5.5 SP4 in combination with Outlook2003 and I want to let another user (not an administrator) manage some recipient-containers in Exchange 5.5 admin-program. in order to let that user manage e-mailaddresses in that particular recipient-container. Is that only possible with the Exchange admin-program. or is there another way to do that? Thanks. John ...

Letter Writing Assistant selection based on Smart List Lookup
We had a great opportunity to use the letter writing assistance to send out a notice to any vendor used within the last 6 months. Using the smartlist lookup up we can see those vendors we have issued a check to based on Last Check date, but the Letter Writing Assistant only allows you to select ranges. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the ...

Option to key in the account manually in Requisition's Add Item wi
This is a customer suggestion from Convergence. Customer would like to be able to have the option to key in the account manually in Requisition's Add Item window. 1. User has editable access to Account field on Add Item page 2. User accesses Add Item page: BP>Employee>Purchase Requests>New Request>New Item 3. User attempts to manual enter Account number, not using the lookup. ISSUE: Currently, this is a non-editable field; forcing the customer to use the account lookup. 3/15/2005 10:45 AM Edited by mfitzl For further inquiry- Customer Information: Michael P. Brow...

Removing web access from outlook address bar
Is there a way to remove or restrict someone's access to the web from the address bar in outlook 2002? I have users who do not have IE priviledges but are able to slide the address bar over and type in a web address to get to websites. Any help would be appreciated. Thanks Can you block their web access at the firewall? Perhaps this is not a technical problem but rather a behavior problem. If these people are employees (or children) perhaps you need to create a policy that forbids them doing this along with some consequences for violating it. -- Aloha, -Ben- Ben M. Schorr, On...

How to add 6% to entire sheet?
I have a spreadsheet and I want to add 6% to whatever value is already in each cell. How does a guy do this? --- Message posted from http://www.ExcelForum.com/ Hi "skeetley" Make sure that you save a backup. To my mind it's probably best to copy your table of data to a new sheet. Put 1.06 in a cell Select that cell Copy Select the data to be uplifted Paste Special > Multiply > OK -- Regards Norman Harker MVP (Excel) Sydney, Australia njharker@optusnet.com.au Excel and Word Function Lists (Classifications, Syntax and Arguments) available free to good homes. "s...

Epson TM88III (OPOS) with add in parallel card not working
I have RMS set-up on a newer Dell system that was configured with no parallel ports. I have added a parallel port on a PCI add-in card. The printer (Epson tm88-III) works fine under the Windows driver, but OPOS does not, reporting "Check Health Error". Everything worked fine on an older system with the on-board Parallel interface. Is this an OPOS problem? Is there a work-around for this issue? HI Dean, Check the new drivers and also hardware compatibility of your RMS version I think you need enhanced OPOS drivers. "Dean" wrote: > I have RMS set-up on a new...

Sorting in select query. manually
Hello, I have a select query and I would like to sort on the field month. but I want to be able to specify the order myself (not descending nor ascending). how can I do this? thank you! You create a table with the data you which you would see in the Month field and the sort order that you want. You then join these two tables in the query and sort on it. Something like this: Month MonthSort Jan 12 Feb 11 Mar 3 and so on. -- Jerry Whittle, Microsoft Access MVP Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycl...

Excel & Word auto selection from menus
Ok, I'm a keyboarder, not a mouser. I use quick commands like the letter code or arrows on menus to speed along without the grab, aquire, click business. Excel & Word seem to be periodically (not always) automatically selecting menu items based on prior selections if I use arrow selectors. How do I turn this off? I get no help from "Help". Please reply to my e-mail address: legreenwood@hotmail.com. Thanks! Would love to get rid of this nuisance & keep speeding along. ...

select query of parent and child in one row
I have a parent table and a child table one parent has between 1 and 6 children in the child table I wont a query to have the parent and the child in one "row" how do I create that? thanks for helping me Your table structure is not correct for a relational database but this will get you there. This has three but you get the idea and expand on it. Place the table in the design grid as many times as you have field to combine. SELECT MultipleFieldData.x, MultipleFieldData.a & IIf(MultipleFieldData_1.b Is Null,Null," " & MultipleFieldData_1.b) & IIf(MultipleF...

Clause order in SQL select query
Are there any rules that govern clause order? Does the parser care? Obviously SELECT must be first but does WHERE have to precede ORDER BY? This question arises because I have a situation where the VBA code would be easier if the WHERE could be the final clause. That way I could have an unchanging SELECT, FROM, ORDER BY string and just tag the WHERE; on the tail. My thinking then turned to whether there is a mandated order for other clauses too. Is there an article somewhere to explain it? -- Len ______________________________________________________ remove nothing for v...

Time out OWA
i have a problem with owa, when i connect it does not happen but of 2 minutes and it gives to Time out me, "expired conecction", i have nt 4.0 and exchange server 5.5 sp4, i check options and everything is normal salu2 Ruben R. "Ruben Rozas" <pipen@uplink.cl> wrote in news:003c01c3c59a$13b80b90 $a601280a@phx.gbl: > i have a problem with owa, when i connect it does not > happen but of 2 minutes and it gives to Time out > me, "expired conecction", i have nt 4.0 and exchange > server 5.5 sp4, Has it ever worked correctly? Is the OWA serve...

Running Totals
Hi, everyody. I have prepard a worksheet that logs electicity meter readings. Against each reading I want the previous added to the current so I can view a running total of the electricity used for the year each week. Example: Column G shows the KWH used for that week. Column H shows the number of KWH used as a running total. This works okay with (H2)+(G3) H2 being the previous week's total. My problem is, when auto inserting the whole year's column the last entry shows all the way to the bottom of the worksheet. Is there a formula I can use so that the part of the column...

Remove discontinued inventory
Is it possible to remove inventory with the item type of Discontinued? I know that it can be done through the inventory year-end close, but was wondering if it was possible to do it at any other time without affecting other records. Thanks to all! Dan, yes, you can remove any item at any time but you first have to make sure it doesn't appear in any transactions (Sales Order, PO, MO, etc) and remove the item's transaction history. You do this under Inventory>Utilities>Remove History. Once you've removed history, you can delete the item(s). Make sure you back-up your d...

Add MFC support
I have an old console application. I want to add MFC support to the source files. Is that possible and how? Regards Ziv Hi, Yes,it is possible. But what to do is depends on how deep you want to use MFC stuff. At a minimum, you need to include <afx.h> and <afxwin.h>. To make your app really MFC based you'd better create a new MFC based console app and move your files into it, or explore the differences between your old app and the new one; particularly, there are also some differences in project settings. -- ====== Arman "Ziv" wrote: > I have an old con...

convert time into decimal #2
=IF(E44="","X",E40-E44) the formula above where E40 is the time now, and E44 is the time of 2 hours ago. I want to return 2 instead of 2:00 PM. How do I do this? I do this but it does not work (E40-E44)*24. ...

How do I add up a column of figures? on excell spreadsheet
I am doing my accounts in an excell spreadshee and want to add the coloumn of figures where my income is. How do I do it. Normally I would go to formula and just say add, but it does not work the smae on my home computer. Thank you. Dxx Dorothy, use sum, something like =SUM(A1:A100) -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "Dorothy" <Dorothy@discussions.microsoft.com> wrote in message news:2BA003FD-0A58-48B...

Removing hyperlinks in SSRS excel export
Anyone know how to remove the hyperlinks before exporting the data into excel. The exported file is becoming five times because of the hyperlinks. Is there any setting which can be done in rdl file? Naga, As far as I know, there is no way to do this in SQL 2005/08. I checked the Device Information Settings for Excel (http://msdn.microsoft.com/en-us/library/ms155069.aspx), but there does not seem to be a setting to set for this. As a workaround, you could add a parameter that the user could choose to include\exclude hyperlinks. In SQL 08 R2 there are new Built-In fields that ...

Excel runs slowly, but only when connected to a network
I have an excel program that runs very slowly when connected to a network. When I physically disconnect the lan, the program runs fine. Other excel programs I have run fine when my computer is attached to the network. The program in question has about 10 macros (nothing unusual, I have other programs more complex that work fine). Has anyone experienced anything like this? Thanks for your help in advance. Does your file maybe look for other data outside itself?............if its trying to find that data in your C drive directory maybe it finds it fast, but if trying while on the ne...

How to change the text of a menu item dynamically?
Hi to all, I created a dialog-based project with Visual C++ 6.0 and added to the dialog a menu. This menu is the following: File Help Sound On About Exit Everything is working fine so far. What I want to do, is change the text of the menu item "Sound On" to "Sound Off" every time the user clicks on it. I am using the CCmdUI* pCmdUI of the ON_UPDATE_COMMAND_UI handler to do it as follows: void CMyDlg::OnUpdateFileSound(CCmdUI* pCmdUI) { TRACE("OnUpdate\n"); pCmdUI->SetText(m_bSound ? "Sound On" : "Sound Of...

Where is the option in Windows Server Backup to add/remove external backup disks??
I'm running Windows Server Backup on my 2008 server. Everything works fine however I can't find the options for adding/removing a drive from the rotation schedule. For example say if I wanted to add a third external drive to the rotation schedule where are the options for this? Configure Backup -- Russell Grover - SBITS.Biz [SBS-MVP] MCP, MCPS, MCNPS, SBSC Microsoft Certified Small Business Specialist SBS2003 SBS2008 Support - www.SBITS.Biz Question or Second Opinion - www.PersonalITConsultant.com Free Trial Microsoft Online Services - www.Microsoft-Online-Services.co...

RMS Add-ons???
Please tell me if anyone has solutions/suggestions/RMS add-ons available to mitigate system crashes especially for SO (with just one machine having both SO database and POS with SQL server 2005 express). How to deal with the case when crash is unrecoverable i.e. hard disks get damaged, how to retrieve sales data then? Secondly, how to deal with database size growth getting more than 4GB on SO with SQL Server 2005 express edition? Shifting to SQLSerevr Standard edition is out of question, cant do it... its a limitation. How to secure my sales data and how to keep RMS SO going? Some bod...

how to delete or remove checkbox form control in Excel?
I am having a hard time getting rid of form control checkboxes in Excel. Is there some simpe way to get the rid of the */#x things? Right click and cut dosen't work. it seems almost impossible to delete the things after they are added. Most often you end up creating a copy of one instead of getting rid of one. Help! They are more trouble than they are worth. Are these from the control toolbox toolbar? If yes, then click on the design mode icon first. Then delete the checkbox. Remember to toggle that design mode icon when you're done. tubbekans wrote: > > I am ha...