Click here to Skip to main content
15,886,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: WebBrowser control error INET_E_DOWNLOAD_FAILURE Pin
navinavi7-Dec-09 1:13
navinavi7-Dec-09 1:13 
QuestionHow to run an app in admin mode in Vista and 7 Pin
Patcher326-Dec-09 3:12
Patcher326-Dec-09 3:12 
AnswerRe: How to run an app in admin mode in Vista and 7 Pin
krmed6-Dec-09 4:57
krmed6-Dec-09 4:57 
AnswerRe: How to run an app in admin mode in Vista and 7 Pin
«_Superman_»6-Dec-09 4:58
professional«_Superman_»6-Dec-09 4:58 
AnswerRe: How to run an app in admin mode in Vista and 7 Pin
Kushagra Tiwari6-Dec-09 19:34
Kushagra Tiwari6-Dec-09 19:34 
GeneralRe: How to run an app in admin mode in Vista and 7 Pin
Patcher3230-Apr-10 11:50
Patcher3230-Apr-10 11:50 
QuestionHow to disable/enable menu items when using CMFCMenuBar in Visual Studio 2008 Feature Pack Pin
Blade_Bao5-Dec-09 20:51
Blade_Bao5-Dec-09 20:51 
AnswerRe: How to disable/enable menu items when using CMFCMenuBar in Visual Studio 2008 Feature Pack Pin
krmed6-Dec-09 5:08
krmed6-Dec-09 5:08 
Perhaps this may give you a clue - I've used this many times to disable a top-level menu:
if (pCmdUI->m_pSubMenu != NULL)	// this takes care of the parent for this pop-up
{
	pCmdUI->m_pMenu->EnableMenuItem(pCmdUI->m_nIndex, MF_BYPOSITION |
					(bShowMenuItems ? MF_ENABLED : (MF_DISABLED | MF_GRAYED)));
}


This code is in the UpdateCmdUI handler for the menu, so it takes care of getting the CMenu that I'm concerned with - you'll need to modify it for your needs.

Hope this helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

QuestionRe: How to disable/enable menu items when using CMFCMenuBar in Visual Studio 2008 Feature Pack Pin
Blade_Bao12-Dec-09 1:53
Blade_Bao12-Dec-09 1:53 
QuestionSHGetSpecialFolderPath or SHGetFolderPath Pin
includeh105-Dec-09 9:39
includeh105-Dec-09 9:39 
AnswerRe: SHGetSpecialFolderPath or SHGetFolderPath Pin
LunaticFringe5-Dec-09 9:52
LunaticFringe5-Dec-09 9:52 
GeneralRe: SHGetSpecialFolderPath or SHGetFolderPath Pin
Bram van Kampen5-Dec-09 14:28
Bram van Kampen5-Dec-09 14:28 
GeneralRe: SHGetSpecialFolderPath or SHGetFolderPath PinPopular
David Crow5-Dec-09 17:21
David Crow5-Dec-09 17:21 
AnswerRe: SHGetSpecialFolderPath or SHGetFolderPath PinPopular
Iain Clarke, Warrior Programmer5-Dec-09 21:04
Iain Clarke, Warrior Programmer5-Dec-09 21:04 
QuestionWhere to call AnimateWindow during DoModal Pin
emmmatty15-Dec-09 0:27
emmmatty15-Dec-09 0:27 
AnswerRe: Where to call AnimateWindow during DoModal Pin
«_Superman_»5-Dec-09 4:55
professional«_Superman_»5-Dec-09 4:55 
QuestionApplication hangs when entering dialog procedure Pin
Sauce!4-Dec-09 22:32
Sauce!4-Dec-09 22:32 
AnswerRe: Application hangs when entering dialog procedure Pin
Sauce!5-Dec-09 3:43
Sauce!5-Dec-09 3:43 
QuestionSHGetSpecialFolderPath Pin
includeh104-Dec-09 22:15
includeh104-Dec-09 22:15 
AnswerRe: SHGetSpecialFolderPath Pin
MsmVc4-Dec-09 23:44
MsmVc4-Dec-09 23:44 
GeneralRe: SHGetSpecialFolderPath Pin
includeh105-Dec-09 9:40
includeh105-Dec-09 9:40 
GeneralRe: SHGetSpecialFolderPath PinPopular
LunaticFringe5-Dec-09 10:10
LunaticFringe5-Dec-09 10:10 
GeneralRe: SHGetSpecialFolderPath Pin
MsmVc6-Dec-09 18:01
MsmVc6-Dec-09 18:01 
AnswerRe: SHGetSpecialFolderPath Pin
Iain Clarke, Warrior Programmer5-Dec-09 3:01
Iain Clarke, Warrior Programmer5-Dec-09 3:01 
QuestionDrive Letters (More than 26 Drives??) Pin
Bram van Kampen4-Dec-09 16:09
Bram van Kampen4-Dec-09 16:09 

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.