Click here to Skip to main content
15,895,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: EXECUTE code 1 after the other only Pin
JudyL_MD3-Jun-08 6:43
JudyL_MD3-Jun-08 6:43 
QuestionRe: EXECUTE code 1 after the other only Pin
David Crow3-Jun-08 6:49
David Crow3-Jun-08 6:49 
GeneralRe: EXECUTE code 1 after the other only Pin
JudyL_MD3-Jun-08 6:53
JudyL_MD3-Jun-08 6:53 
GeneralRe: EXECUTE code 1 after the other only Pin
Trupti Mehta3-Jun-08 21:18
Trupti Mehta3-Jun-08 21:18 
GeneralRe: EXECUTE code 1 after the other only Pin
JudyL_MD4-Jun-08 3:00
JudyL_MD4-Jun-08 3:00 
GeneralRe: EXECUTE code 1 after the other only Pin
Trupti Mehta4-Jun-08 4:14
Trupti Mehta4-Jun-08 4:14 
GeneralRe: EXECUTE code 1 after the other only Pin
JudyL_MD4-Jun-08 4:34
JudyL_MD4-Jun-08 4:34 
QuestionPopup Menu - Check Menu Item Pin
JBAK_CP3-Jun-08 4:32
JBAK_CP3-Jun-08 4:32 
Hi, I have a dialog box with a pop-up menu and one of the menu entry in there has the 'Checked' property set to true (as default). Now during the execution of my program, I would like to un-check the check mark next to this menu item, but I can't seem to be able to accomplish this, the check-mark seems to be there always. Debugging through the code, it seems to execute the correct statements, but the GUI does not seem to get updated. Any help would be greatly apperciated.

VS2005, C++ (MFC)

Code:
CMenu menuTst;
	VERIFY(menuTst.LoadMenu(IDR_MENU_HELP));
	CMenu* pPopupTest = menuTst.GetSubMenu(0);

	UINT state = pPopupTest->GetMenuState(ID_OPEN_LOGFILE, MF_BYCOMMAND);
	
         ASSERT(state != 0xFFFFFFFF);

	if (state & MF_CHECKED)
           pPopupTest->CheckMenuItem(ID_OPEN_LOGFILE, MF_UNCHECKED | MF_BYCOMMAND);
        else
           pPopupTest->CheckMenuItem(ID_OPEN_LOGFILE, MF_CHECKED | MF_BYCOMMAND);

AnswerRe: Popup Menu - Check Menu Item Pin
sudhir_Kumar3-Jun-08 4:39
sudhir_Kumar3-Jun-08 4:39 
GeneralRe: Popup Menu - Check Menu Item Pin
JBAK_CP3-Jun-08 6:53
JBAK_CP3-Jun-08 6:53 
GeneralRe: Popup Menu - Check Menu Item Pin
Hamid_RT4-Jun-08 20:30
Hamid_RT4-Jun-08 20:30 
QuestionGet Position of Start Menu Button Pin
fetti3-Jun-08 4:29
fetti3-Jun-08 4:29 
AnswerRe: Get Position of Start Menu Button Pin
sudhir_Kumar3-Jun-08 4:49
sudhir_Kumar3-Jun-08 4:49 
GeneralRe: Get Position of Start Menu Button Pin
fetti3-Jun-08 5:03
fetti3-Jun-08 5:03 
GeneralRe: Get Position of Start Menu Button Pin
sudhir_Kumar3-Jun-08 5:08
sudhir_Kumar3-Jun-08 5:08 
AnswerRe: Get Position of Start Menu Button Pin
Hamid_RT3-Jun-08 6:34
Hamid_RT3-Jun-08 6:34 
QuestionMy first Win32 program... Pin
xelios3-Jun-08 3:50
xelios3-Jun-08 3:50 
AnswerRe: My first Win32 program... Pin
Cedric Moonen3-Jun-08 3:54
Cedric Moonen3-Jun-08 3:54 
AnswerRe: My first Win32 program... Pin
sudhir_Kumar3-Jun-08 3:55
sudhir_Kumar3-Jun-08 3:55 
GeneralRe: My first Win32 program... Pin
xelios3-Jun-08 3:56
xelios3-Jun-08 3:56 
GeneralRe: My first Win32 program... Pin
Cedric Moonen3-Jun-08 4:03
Cedric Moonen3-Jun-08 4:03 
GeneralRe: My first Win32 program... Pin
zafersavas3-Jun-08 5:24
zafersavas3-Jun-08 5:24 
GeneralRe: My first Win32 program... Pin
David Crow3-Jun-08 6:51
David Crow3-Jun-08 6:51 
AnswerRe: My first Win32 program... Pin
sudhir_Kumar3-Jun-08 3:56
sudhir_Kumar3-Jun-08 3:56 
AnswerRe: My first Win32 program... Pin
Hamid_RT3-Jun-08 4:01
Hamid_RT3-Jun-08 4:01 

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.