Click here to Skip to main content
15,914,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCollection in C++ Pin
pas_ascom18-Sep-03 5:02
pas_ascom18-Sep-03 5:02 
GeneralRe: Collection in C++ Pin
Steve S18-Sep-03 6:26
Steve S18-Sep-03 6:26 
GeneralRe: Collection in C++ Pin
antlers18-Sep-03 8:29
antlers18-Sep-03 8:29 
QuestionASSERT? Pin
Dominik Reichl18-Sep-03 4:56
Dominik Reichl18-Sep-03 4:56 
AnswerRe: ASSERT? Pin
David Crow18-Sep-03 5:52
David Crow18-Sep-03 5:52 
GeneralRe: ASSERT? Pin
Dominik Reichl18-Sep-03 6:04
Dominik Reichl18-Sep-03 6:04 
GeneralRe: ASSERT? Pin
Steve S18-Sep-03 6:27
Steve S18-Sep-03 6:27 
GeneralRe: ASSERT? Pin
Dominik Reichl18-Sep-03 7:05
Dominik Reichl18-Sep-03 7:05 
AnswerRe: ASSERT? Pin
Michael Dunn18-Sep-03 7:10
sitebuilderMichael Dunn18-Sep-03 7:10 
GeneralRe: ASSERT? Pin
Dominik Reichl18-Sep-03 7:27
Dominik Reichl18-Sep-03 7:27 
AnswerRe: ASSERT? Pin
Gary R. Wheeler20-Sep-03 4:47
Gary R. Wheeler20-Sep-03 4:47 
Generalchange style of CComboBox Pin
includeh1018-Sep-03 4:43
includeh1018-Sep-03 4:43 
GeneralRe: change style of CComboBox Pin
David Crow18-Sep-03 5:57
David Crow18-Sep-03 5:57 
GeneralRe: change style of CComboBox Pin
Steve S18-Sep-03 6:28
Steve S18-Sep-03 6:28 
GeneralRe: change style of CComboBox Pin
valikac18-Sep-03 7:05
valikac18-Sep-03 7:05 
GeneralEnable/Disable items in main menu Pin
b_girl18-Sep-03 4:32
b_girl18-Sep-03 4:32 
Hello.

I'm currently designing a user interface for a piece of physics software which is currently only able to run through DOS. I'm new to Visual C++, and haven't done much programming for windows before. I have created an SDI MFC using the MFC App Wizard. The main menu contains the items: File Edit Setup Help.

When the user clicks on Setup (which is not a pop-up menu, it acts more like a button), a modeless dialog box opens up. What I want to do is have the Setup option disabled until the user opens a file (File -> Open). I have found lots of information on how to disable/enable items contained within these menu options, but not on how to deal with the menu options themselves. I am pretty sure that I must make use of ON_ UPDATE_COMMAND_UI, I'm just not completely sure what to do.

Any help anyone could provide me would be greatly appreciated!
GeneralRe: Enable/Disable items in main menu Pin
KaЯl18-Sep-03 4:58
KaЯl18-Sep-03 4:58 
GeneralRe: Enable/Disable items in main menu Pin
b_girl18-Sep-03 5:19
b_girl18-Sep-03 5:19 
GeneralRe: Enable/Disable items in main menu Pin
KaЯl18-Sep-03 5:30
KaЯl18-Sep-03 5:30 
GeneralRe: Enable/Disable items in main menu Pin
b_girl18-Sep-03 5:41
b_girl18-Sep-03 5:41 
GeneralRe: Enable/Disable items in main menu Pin
KaЯl18-Sep-03 5:55
KaЯl18-Sep-03 5:55 
GeneralRe: Enable/Disable items in main menu Pin
Steve S18-Sep-03 6:30
Steve S18-Sep-03 6:30 
GeneralRe: Enable/Disable items in main menu Pin
KaЯl18-Sep-03 6:35
KaЯl18-Sep-03 6:35 
GeneralRe: Enable/Disable items in main menu Pin
b_girl18-Sep-03 7:21
b_girl18-Sep-03 7:21 
GeneralRe: Enable/Disable items in main menu Pin
b_girl18-Sep-03 7:14
b_girl18-Sep-03 7:14 

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.