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

C / C++ / MFC

 
GeneralRe: restricting app to execute Pin
Rage7-Jul-03 0:54
professionalRage7-Jul-03 0:54 
GeneralRe: restricting app to execute Pin
Terry O'Nolley10-Jul-03 9:21
Terry O'Nolley10-Jul-03 9:21 
GeneralRe: restricting app to execute Pin
Terry O'Nolley10-Jul-03 9:21
Terry O'Nolley10-Jul-03 9:21 
GeneralDisplay Raw Image Pin
:_Rocket_:6-Jul-03 22:39
:_Rocket_:6-Jul-03 22:39 
GeneralRe: Display Raw Image Pin
John M. Drescher7-Jul-03 3:27
John M. Drescher7-Jul-03 3:27 
GeneralRe: Display Raw Image Pin
:_Rocket_:7-Jul-03 14:47
:_Rocket_:7-Jul-03 14:47 
GeneralRe: Display Raw Image Pin
John M. Drescher7-Jul-03 14:54
John M. Drescher7-Jul-03 14:54 
GeneralCheckMenuItem problem Pin
LittleYellowBird6-Jul-03 21:45
LittleYellowBird6-Jul-03 21:45 
Hi, I want to mark items on a popup menu as checked or unchecked. Here is the code I am trying to use.

CMenu menuPopup;<br />
<br />
menuPopup.LoadMenu(IDR_MENU_ZOOM);<br />
menuPopup.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN,point.x,point.y,this);<br />
menuPopup.CheckMenuItem(1, MF_CHECKED|MF_BYPOSITION);


The problem is that when I call CheckMenuItem nothing happens, and if I look at the returned value from CheckMenuItem it is 0xFFFFFFFF which means 'the menu item did not exist'.

What am I doing wrong?
Is there a better way?

Thanks, (bleary eyed on a Monday morning)


Ali
GeneralRe: CheckMenuItem problem Pin
peterchen7-Jul-03 0:05
peterchen7-Jul-03 0:05 
GeneralRe: CheckMenuItem problem Pin
LittleYellowBird7-Jul-03 0:50
LittleYellowBird7-Jul-03 0:50 
GeneralRe: CheckMenuItem problem Pin
basementman7-Jul-03 5:30
basementman7-Jul-03 5:30 
GeneralRe: CheckMenuItem problem Pin
valikac7-Jul-03 5:30
valikac7-Jul-03 5:30 
GeneralWant to find an ActiveX control for displaying picture Pin
Xilin6-Jul-03 21:26
Xilin6-Jul-03 21:26 
GeneralRe: Want to find an ActiveX control for displaying picture Pin
Ravi Bhavnani7-Jul-03 4:00
professionalRavi Bhavnani7-Jul-03 4:00 
GeneralRe: Want to find an ActiveX control for displaying picture Pin
Xilin7-Jul-03 18:05
Xilin7-Jul-03 18:05 
GeneralRe: Want to find an ActiveX control for displaying picture Pin
Ravi Bhavnani8-Jul-03 1:43
professionalRavi Bhavnani8-Jul-03 1:43 
GeneralVS 2003 overrun checking not working Pin
ed welch6-Jul-03 21:17
ed welch6-Jul-03 21:17 
GeneralRe: VS 2003 overrun checking not working Pin
Mike Dimmick7-Jul-03 4:00
Mike Dimmick7-Jul-03 4:00 
GeneralRe: VS 2003 overrun checking not working Pin
ed welch7-Jul-03 4:29
ed welch7-Jul-03 4:29 
GeneralRe: VS 2003 overrun checking not working Pin
Mike Dimmick7-Jul-03 22:50
Mike Dimmick7-Jul-03 22:50 
GeneralRe: VS 2003 overrun checking not working Pin
ed welch8-Jul-03 21:27
ed welch8-Jul-03 21:27 
GeneralDeciphering memory leak dump Pin
paulb6-Jul-03 20:39
paulb6-Jul-03 20:39 
GeneralRe: Deciphering memory leak dump Pin
peterchen6-Jul-03 21:47
peterchen6-Jul-03 21:47 
Generalp Pin
KaЯl7-Jul-03 3:40
KaЯl7-Jul-03 3:40 
GeneralRe: Deciphering memory leak dump Pin
Xander807-Jul-03 1:15
Xander807-Jul-03 1:15 

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.