Click here to Skip to main content
15,667,078 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Disable menu Pin
Hamid_RT31-May-06 20:14
Hamid_RT31-May-06 20:14 
GeneralRe: Disable menu Pin
Anu_Bala31-May-06 20:17
Anu_Bala31-May-06 20:17 
GeneralRe: Disable menu Pin
Sarath C31-May-06 20:18
Sarath C31-May-06 20:18 
GeneralRe: Disable menu Pin
Sarath C31-May-06 20:22
Sarath C31-May-06 20:22 
GeneralRe: Disable menu Pin
Hamid_RT31-May-06 20:24
Hamid_RT31-May-06 20:24 
AnswerRe: Disable menu [modified] Pin
Sarath C31-May-06 20:17
Sarath C31-May-06 20:17 
GeneralRe: Disable menu [modified] Pin
Steve Echols31-May-06 20:25
Steve Echols31-May-06 20:25 
AnswerRe: Disable menu Pin
Steve Echols31-May-06 20:17
Steve Echols31-May-06 20:17 
GetSubMenu and EnableMenuItem are members of CMenu, so you need to get access to the main menu like (this is from MSDN):

CMenu* menu = AfxGetApp()->m_pMainWnd->GetMenu()->GetSubMenu(2);

and then:

menu->EnableMenuItem(i, MF_BYPOSITION | MF_GRAYED);



- S
50 cups of coffee and you know it's on!
AnswerRe: Disable menu Pin
NiceNaidu31-May-06 20:19
NiceNaidu31-May-06 20:19 
QuestionVC++ 8 Doc tool Pin
Fernando A. Gomez F.31-May-06 19:39
Fernando A. Gomez F.31-May-06 19:39 
AnswerRe: VC++ 8 Doc tool [modified] Pin
Stephen Hewitt31-May-06 19:42
Stephen Hewitt31-May-06 19:42 
GeneralRe: VC++ 8 Doc tool [modified] Pin
Fernando A. Gomez F.1-Jun-06 4:10
Fernando A. Gomez F.1-Jun-06 4:10 
GeneralRe: VC++ 8 Doc tool [modified] Pin
Stephen Hewitt1-Jun-06 13:45
Stephen Hewitt1-Jun-06 13:45 
GeneralRe: VC++ 8 Doc tool [modified] Pin
Fernando A. Gomez F.1-Jun-06 13:52
Fernando A. Gomez F.1-Jun-06 13:52 
QuestionContext menu extensions Pin
Anil_vvs31-May-06 19:22
Anil_vvs31-May-06 19:22 
AnswerRe: Context menu extensions Pin
Anil_vvs31-May-06 19:26
Anil_vvs31-May-06 19:26 
Questionvc++ Pin
Y_Kaushik31-May-06 18:58
Y_Kaushik31-May-06 18:58 
AnswerRe: vc++ Pin
Stephen Hewitt31-May-06 19:40
Stephen Hewitt31-May-06 19:40 
AnswerRe: vc++ [modified] Pin
NiceNaidu31-May-06 19:47
NiceNaidu31-May-06 19:47 
GeneralRe: vc++ Pin
NiceNaidu31-May-06 19:50
NiceNaidu31-May-06 19:50 
AnswerRe: vc++ Pin
Steve Echols31-May-06 20:07
Steve Echols31-May-06 20:07 
AnswerRe: vc++ Pin
David Crow1-Jun-06 4:15
David Crow1-Jun-06 4:15 
QuestionDoes vc7/8 supprot declare a variable in switch case? Pin
followait31-May-06 18:46
followait31-May-06 18:46 
AnswerRe: Does vc7/8 supprot declare a variable in switch case? Pin
_AnsHUMAN_ 31-May-06 18:49
_AnsHUMAN_ 31-May-06 18:49 
GeneralRe: Does vc7/8 supprot declare a variable in switch case? Pin
Steve Mayfield31-May-06 19:30
Steve Mayfield31-May-06 19:30 

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.