Click here to Skip to main content
15,672,088 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ShellExecute Pin
beckle24-Apr-09 22:15
beckle24-Apr-09 22:15 
QuestionCRegKey Pin
p_196024-Apr-09 18:03
p_196024-Apr-09 18:03 
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 
I am running into the problem of when a resource is active/accessible and not.

I want to disable (grey out) certain menu items when the files it needs are not available.

I tried using the resource ID of the menu item(s) in OnInitDialog() and in OnSysCommand(), but that didn't work.

CWnd	*pCntrlItem;
if ( !bExists )
{
	pCntrlItem = CWnd::GetDlgItem(ID_UTILITIES_ITEM1);
	pCntrlItem->EnableWindow(FALSE);
}


Can anyone help? Thanks,
JJM
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 
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 

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.