Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem Showing a window with MFC Pin
Joe Woodbury26-Mar-10 15:24
professionalJoe Woodbury26-Mar-10 15:24 
AnswerRe: Problem Showing a window with MFC Pin
sthalasayanam26-Mar-10 17:45
sthalasayanam26-Mar-10 17:45 
GeneralRe: Problem Showing a window with MFC Pin
Cool_Dev27-Mar-10 4:15
Cool_Dev27-Mar-10 4:15 
GeneralRe: Problem Showing a window with MFC Pin
andybougard27-Mar-10 8:59
andybougard27-Mar-10 8:59 
Questionport of VC98 to VS2008 problem with ATL & MFC Pin
danhass26-Mar-10 9:48
danhass26-Mar-10 9:48 
AnswerRe: port of VC98 to VS2008 problem with ATL & MFC Pin
danhass30-Mar-10 9:01
danhass30-Mar-10 9:01 
QuestionIntranet license checker Pin
Sergono26-Mar-10 7:12
Sergono26-Mar-10 7:12 
QuestionRe: Menu in dialog application, CheckMenuItem [modified] Pin
mla15426-Mar-10 7:07
mla15426-Mar-10 7:07 
Dear all,
I have created a dialog application using Visual C++ 2008 with a menu and I haven't been able to get a check mark to show on a menu item.

In the class derived from CDialog, I declared a private member:
CMenu m_menu;

The menu IDR_MENU1 was loaded into the dialog using the resource editor.

In the OnInitDialog function of the same class:
m_menu.LoadMenuA(IDR_MENU1);

When the user selects the menu item, the check should appear. The code reached after selecting the menu item:
UINT j = m_menu.CheckMenuItem(ID_HELLO_CHOICE1, MF_BYCOMMAND | MF_CHECKED);

The value of j is 0 after being executed the first time and 8 after being executed the second time, which is what I expected. However, I still see no check mark next to the menu item. How can I get the check mark to show?

Any suggestions and help are appreciated.

Regards,
Mike


-- Modified Friday, March 26, 2010 1:20 PM
AnswerRe: Menu in dialog application, CheckMenuItem Pin
mla15426-Mar-10 7:17
mla15426-Mar-10 7:17 
Questionuse custom icon on an AfxMessageBox Pin
b-rad31126-Mar-10 6:29
b-rad31126-Mar-10 6:29 
AnswerRe: use custom icon on an AfxMessageBox PinPopular
jeron126-Mar-10 7:03
jeron126-Mar-10 7:03 
GeneralRe: use custom icon on an AfxMessageBox Pin
b-rad31126-Mar-10 8:18
b-rad31126-Mar-10 8:18 
QuestionHelp with binary tree(BST) function building. Pin
Member 382253226-Mar-10 4:52
Member 382253226-Mar-10 4:52 
AnswerRe: Help with binary tree(BST) function building. Pin
David Crow26-Mar-10 5:28
David Crow26-Mar-10 5:28 
GeneralRe: Help with binary tree(BST) function building. Pin
Member 382253226-Mar-10 6:45
Member 382253226-Mar-10 6:45 
GeneralRe: Help with binary tree(BST) function building. Pin
David Crow26-Mar-10 7:35
David Crow26-Mar-10 7:35 
AnswerRe: Help with binary tree(BST) function building. Pin
Member 382253226-Mar-10 8:03
Member 382253226-Mar-10 8:03 
GeneralRe: Help with binary tree(BST) function building. Pin
Member 382253226-Mar-10 8:09
Member 382253226-Mar-10 8:09 
GeneralRe: Help with binary tree(BST) function building. Pin
David Crow26-Mar-10 8:11
David Crow26-Mar-10 8:11 
GeneralRe: Help with binary tree(BST) function building. Pin
Member 382253226-Mar-10 8:24
Member 382253226-Mar-10 8:24 
QuestionRe: Help with binary tree(BST) function building. Pin
David Crow26-Mar-10 8:36
David Crow26-Mar-10 8:36 
AnswerRe: Help with binary tree(BST) function building. Pin
Member 382253226-Mar-10 8:55
Member 382253226-Mar-10 8:55 
AnswerRe: Help with binary tree(BST) function building. Pin
David Crow26-Mar-10 8:58
David Crow26-Mar-10 8:58 
GeneralRe: Help with binary tree(BST) function building. Pin
Member 382253226-Mar-10 9:15
Member 382253226-Mar-10 9:15 
GeneralRe: Help with binary tree(BST) function building. Pin
David Crow26-Mar-10 9:29
David Crow26-Mar-10 9:29 

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.