Click here to Skip to main content
16,012,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: disable one ActiveX function Pin
SAWilde7-Dec-00 23:03
SAWilde7-Dec-00 23:03 
GeneralRe: disable one ActiveX function Pin
8-Dec-00 6:23
suss8-Dec-00 6:23 
GeneralDesktop icons and their labels Pin
Daníel B. Sigurgeirsson7-Dec-00 4:46
Daníel B. Sigurgeirsson7-Dec-00 4:46 
GeneralRe: Desktop icons and their labels Pin
Christian Graus7-Dec-00 12:07
protectorChristian Graus7-Dec-00 12:07 
GeneralRe: Desktop icons and their labels Pin
Daníel B. Sigurgeirsson11-Dec-00 0:17
Daníel B. Sigurgeirsson11-Dec-00 0:17 
GeneralChanging text color on Buttons created on the fly Pin
Ishai Shotten7-Dec-00 4:27
Ishai Shotten7-Dec-00 4:27 
GeneralCRichEditView context menu Pin
7-Dec-00 1:42
suss7-Dec-00 1:42 
GeneralRe: CRichEditView context menu Pin
SAWilde7-Dec-00 23:23
SAWilde7-Dec-00 23:23 
try this

HMENU CCmView::GetContextMenu(WORD, LPOLEOBJECT, CHARRANGE* )
{
menu.DestroyMenu();
menu.LoadMenu(IDR_MENU_POPUP);

HMENU hMenu=menu.GetSubMenu(0)->GetSafeHmenu();

return hMenu;
}

design your menu as you would any other popup menu - if you are always using the same menu then you could load the menu at the view creation and delete it when the view is destroyed


Holy Handgrenade of Antioch instructions
GeneralToolBar Pin
6-Dec-00 17:04
suss6-Dec-00 17:04 
GeneralRe: ToolBar Pin
Michael Dunn6-Dec-00 17:32
sitebuilderMichael Dunn6-Dec-00 17:32 
GeneralRe: ToolBar Pin
Christian Graus6-Dec-00 19:06
protectorChristian Graus6-Dec-00 19:06 
GeneralToolBar Pin
6-Dec-00 17:00
suss6-Dec-00 17:00 
GeneralUnreal Tournament Code question Pin
keepvdubbin6-Dec-00 16:55
keepvdubbin6-Dec-00 16:55 
GeneralRe: Unreal Tournament Code question Pin
6-Dec-00 17:25
suss6-Dec-00 17:25 
GeneralRe: Unreal Tournament Code question Pin
keepvdubbin7-Dec-00 6:56
keepvdubbin7-Dec-00 6:56 
GeneralSiN and .sam files Pin
keepvdubbin6-Dec-00 16:54
keepvdubbin6-Dec-00 16:54 
Generalie / netscape Pin
6-Dec-00 13:36
suss6-Dec-00 13:36 
QuestionHow to run a .js from a MFC program? Pin
Joep6-Dec-00 12:24
Joep6-Dec-00 12:24 
AnswerRe: How to run a .js from a MFC program? Pin
Michael Dunn6-Dec-00 17:13
sitebuilderMichael Dunn6-Dec-00 17:13 
GeneralRe: How to run a .js from a MFC program? Pin
Joep7-Dec-00 22:36
Joep7-Dec-00 22:36 
GeneralProblems with accelerators Pin
6-Dec-00 5:58
suss6-Dec-00 5:58 
GeneralRe: Problems with accelerators Pin
Christian Graus6-Dec-00 9:33
protectorChristian Graus6-Dec-00 9:33 
GeneralWhile using DAO with VC++ or VB..... Pin
6-Dec-00 5:51
suss6-Dec-00 5:51 
GeneralWhile using DAO with VC++ or VB..... Pin
6-Dec-00 5:51
suss6-Dec-00 5:51 
GeneralWhile using DAO with VC++ or VB..... Pin
6-Dec-00 5:50
suss6-Dec-00 5:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.