AppendMenu question
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
- From: "Derek" <der@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 18:29:15 -0500
Hi,
I'm trying to add to existing button menu new item
and have some problems, I can modify menu
item (below) but cannot append. What I'm doing wrong?
CMenu Menu;
Menu.Attach(m_btn.m_hMenu);
Menu.AppendMenu(MF_STRING, ID_TOOLS_LANGUAGE, _T("EN")); //doesn't work
Menu.ModifyMenu(ID_TOOLS_COUNTRY, MF_BYCOMMAND, ID_TOOLS_COUNTRY, _T("US"));
//works
Menu.Detach();
thanks
.