Click here to Skip to main content
15,884,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CRegKey Pin
CPallini24-Apr-09 21:59
mveCPallini24-Apr-09 21:59 
QuestionSelf-Taught C++? Pin
steve7606324-Apr-09 11:36
steve7606324-Apr-09 11:36 
QuestionRe: Self-Taught C++? Pin
CPallini24-Apr-09 11:52
mveCPallini24-Apr-09 11:52 
AnswerRe: Self-Taught C++? Pin
steve7606324-Apr-09 12:22
steve7606324-Apr-09 12:22 
AnswerRe: Self-Taught C++? Pin
N a v a n e e t h24-Apr-09 17:09
N a v a n e e t h24-Apr-09 17:09 
QuestionEnable/Disable menu items programmatically Pin
john john mackey24-Apr-09 8:18
john john mackey24-Apr-09 8:18 
AnswerRe: Enable/Disable menu items programmatically Pin
David Crow24-Apr-09 8:36
David Crow24-Apr-09 8:36 
GeneralRe: Enable/Disable menu items programmatically Pin
john john mackey24-Apr-09 10:29
john john mackey24-Apr-09 10:29 
I'm obviously doing something wrong. I am even looking at some code that did the same thing (originally created in VC++ 6.0) and comparing it to what I am trying - not working.

In my Studio 2008 (VC++ 2008), I set the menu item's property to Grayed=True, Enabled=FALSE.

I have message handler for ON_UPDATE_COMMAND_UI(), and then I'm doing the debugger.

Since Enabled==FALSE, I can't get the button to change back even when my criterium is found:

void CStartupDlg::OnUpdateUtilitiesCoordConv(CCmdUI *pCmdUI)
{
	CString sProcName;
	sProcName.LoadStringA(IDS_MYFILE);

	CFileStatus		cfStat;
	BOOL			bExists = FALSE;

	// Get the status of this file
	bExists = CFile::GetStatus(sProcName, cfStat);
	if ( !bExists )
	{
		MessageBox("What the Deuce?!", NULL, MB_OK);
		pCmdUI->Enable(FALSE);
	}
	else
	{
		pCmdUI->Enable(TRUE);
	}
}

QuestionRe: Enable/Disable menu items programmatically Pin
David Crow24-Apr-09 10:32
David Crow24-Apr-09 10:32 
AnswerRe: Enable/Disable menu items programmatically Pin
john john mackey24-Apr-09 10:42
john john mackey24-Apr-09 10:42 
QuestionRe: Enable/Disable menu items programmatically Pin
David Crow24-Apr-09 10:46
David Crow24-Apr-09 10:46 
AnswerRe: Enable/Disable menu items programmatically Pin
john john mackey24-Apr-09 11:26
john john mackey24-Apr-09 11:26 
AnswerRe: Enable/Disable menu items programmatically Pin
john john mackey27-Apr-09 11:22
john john mackey27-Apr-09 11:22 
GeneralRe: Enable/Disable menu items programmatically Pin
David Crow28-Apr-09 3:04
David Crow28-Apr-09 3:04 
QuestionGetting clipboard paste notification. Pin
Green Fuze24-Apr-09 4:47
Green Fuze24-Apr-09 4:47 
AnswerRe: Getting clipboard paste notification. Pin
led mike24-Apr-09 5:16
led mike24-Apr-09 5:16 
GeneralRe: Getting clipboard paste notification. Pin
CPallini24-Apr-09 5:42
mveCPallini24-Apr-09 5:42 
GeneralRe: Getting clipboard paste notification. Pin
Green Fuze24-Apr-09 10:53
Green Fuze24-Apr-09 10:53 
GeneralRe: Getting clipboard paste notification. Pin
Green Fuze24-Apr-09 10:52
Green Fuze24-Apr-09 10:52 
QuestionRe: Getting clipboard paste notification. Pin
David Crow24-Apr-09 6:04
David Crow24-Apr-09 6:04 
AnswerRe: Getting clipboard paste notification. Pin
Green Fuze24-Apr-09 10:58
Green Fuze24-Apr-09 10:58 
AnswerRe: Getting clipboard paste notification. Pin
wguerram2-Apr-10 5:27
wguerram2-Apr-10 5:27 
QuestionIs there any way to display info for password is strong or not like in MBSA show Pin
ashish8patil24-Apr-09 2:49
ashish8patil24-Apr-09 2:49 
AnswerRe: Is there any way to display info for password is strong or not like in MBSA show Pin
Stuart Dootson24-Apr-09 3:46
professionalStuart Dootson24-Apr-09 3:46 
AnswerRe: Is there any way to display info for password is strong or not like in MBSA show Pin
David Crow24-Apr-09 4:06
David Crow24-Apr-09 4:06 

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.