Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Questionhow to code an edit for database? Pin
coda_x18-Sep-03 4:20
coda_x18-Sep-03 4:20 
AnswerRe: how to code an edit for database? Pin
vcplusplus18-Sep-03 6:09
vcplusplus18-Sep-03 6:09 
GeneralGetFTPConnection and socket()- MFC one fails Pin
ns18-Sep-03 4:10
ns18-Sep-03 4:10 
GeneralRe: GetFTPConnection and socket()- MFC one fails Pin
Jagadeesh VN18-Sep-03 4:24
Jagadeesh VN18-Sep-03 4:24 
GeneralRe: GetFTPConnection and socket()- MFC one fails Pin
ns18-Sep-03 4:30
ns18-Sep-03 4:30 
GeneralRe: GetFTPConnection and socket()- MFC one fails Pin
Steve S18-Sep-03 4:53
Steve S18-Sep-03 4:53 
GeneralRe: GetFTPConnection and socket()- MFC one fails Pin
Jagadeesh VN18-Sep-03 7:32
Jagadeesh VN18-Sep-03 7:32 
GeneralSerial Comm. / virtual COM-Port / WirteFile never return Pin
Joerg Hoffmann18-Sep-03 4:09
Joerg Hoffmann18-Sep-03 4: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.