Click here to Skip to main content
16,004,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalaccessing the DPi Values in the code directly like 72,96,etc DPi Pin
chethu6659-Jun-05 19:13
chethu6659-Jun-05 19:13 
GeneralRe: accessing the DPi Values in the code directly like 72,96,etc DPi Pin
Rick York9-Jun-05 20:00
mveRick York9-Jun-05 20:00 
GeneralRe: accessing the DPi Values in the code directly like 72,96,etc DPi Pin
chethu6659-Jun-05 20:40
chethu6659-Jun-05 20:40 
Generalmore two projects Pin
hcmuns9-Jun-05 17:00
susshcmuns9-Jun-05 17:00 
GeneralRe: more two projects Pin
Christian Graus9-Jun-05 17:03
protectorChristian Graus9-Jun-05 17:03 
GeneralRe: more two projects Pin
Bob Stanneveld9-Jun-05 22:10
Bob Stanneveld9-Jun-05 22:10 
QuestionThe ToolBar cannot Be dispalyed?? Pin
senses19-Jun-05 16:54
senses19-Jun-05 16:54 
GeneralEnableMenu() not working Pin
Member 19839859-Jun-05 15:00
Member 19839859-Jun-05 15:00 
I have to be doing something wrong as this is too simple. I have a doc/view project with a LOT of menu items. EnableMenu() isn't working as I want it to. However, I can call the CheckMenuItem member and it works fine in the same SPOT!

This code takes a emumerated list of ALL menu items and checks each menu item. It works perfectly:
<br />
CMenu* pMenu = GetMenu();<br />
<br />
// this checks each menu item (note ID_SEPARATOR is the last in my enum)<br />
for(int i = 0; mymenuids[i] != ID_SEPARATOR; i++)<br />
   pMenu->CheckMenuItem(mymenuids[i], MF_CHECKED);<br />


Now, if I change this to gray all the entries, NONE of them gray\disable:

<br />
CMenu* pMenu = GetMenu();<br />
<br />
// this disables each menu item (note ID_SEPARATOR is the last in my enum)<br />
for(int i = 0; mymenuids[i] != ID_SEPARATOR; i++)<br />
   pMenu->EnableMenuItem(mymenuids[i], MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);<br />


What could possibly be wrong? Possible that a resource file has corrupted? I'm baffled!

Thanks in advance,
Philip
GeneralRe: EnableMenu() not working Pin
Christian Graus9-Jun-05 15:12
protectorChristian Graus9-Jun-05 15:12 
GeneralRe: EnableMenu() not working Pin
Member 19839859-Jun-05 15:18
Member 19839859-Jun-05 15:18 
GeneralRe: EnableMenu() not working Pin
Christian Graus9-Jun-05 15:29
protectorChristian Graus9-Jun-05 15:29 
GeneralCPropTree usage Pin
CodeGoose9-Jun-05 11:17
CodeGoose9-Jun-05 11:17 
Generalaccess data in dialog from win32 application Pin
asdeshmukh9-Jun-05 11:10
asdeshmukh9-Jun-05 11:10 
GeneralRe: access data in dialog from win32 application Pin
Tom Archer9-Jun-05 16:24
Tom Archer9-Jun-05 16:24 
QuestionCommented data file? Pin
knapak9-Jun-05 9:36
knapak9-Jun-05 9:36 
AnswerRe: Commented data file? Pin
Christian Graus9-Jun-05 12:40
protectorChristian Graus9-Jun-05 12:40 
GeneralRe: Commented data file? Pin
knapak9-Jun-05 13:12
knapak9-Jun-05 13:12 
GeneralRe: Commented data file? Pin
Christian Graus9-Jun-05 13:16
protectorChristian Graus9-Jun-05 13:16 
GeneralRe: Commented data file? Pin
knapak9-Jun-05 13:27
knapak9-Jun-05 13:27 
GeneralRe: Commented data file? Pin
Christian Graus9-Jun-05 13:28
protectorChristian Graus9-Jun-05 13:28 
GeneralRe: Commented data file? Pin
Tom Archer9-Jun-05 16:11
Tom Archer9-Jun-05 16:11 
Generaldir work CDatabase and CFileDialog Pin
Pasquale829-Jun-05 9:17
Pasquale829-Jun-05 9:17 
GeneralRe: dir work CDatabase and CFileDialog Pin
Tom Archer9-Jun-05 16:15
Tom Archer9-Jun-05 16:15 
GeneralMaking a C++ DLL to be used form VB - Static Question Pin
CimTaurus9-Jun-05 9:15
CimTaurus9-Jun-05 9:15 
GeneralRe: Making a C++ DLL to be used form VB - Static Question Pin
Chris Losinger9-Jun-05 9:47
professionalChris Losinger9-Jun-05 9:47 

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.