Click here to Skip to main content
15,904,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSolved Pin
hairy_hats29-Jun-07 0:34
hairy_hats29-Jun-07 0:34 
QuestionXML in C Pin
KeithF29-Jun-07 0:06
KeithF29-Jun-07 0:06 
Questionhow to run a batch file ...plzzz help me... Pin
eclairs_db28-Jun-07 23:58
eclairs_db28-Jun-07 23:58 
QuestionRe: how to run a batch file ...plzzz help me... Pin
Rajesh R Subramanian29-Jun-07 0:28
professionalRajesh R Subramanian29-Jun-07 0:28 
AnswerRe: how to run a batch file ...plzzz help me... Pin
eclairs_db29-Jun-07 0:51
eclairs_db29-Jun-07 0:51 
Generalare koi to jawab do...plz anybody reply... Pin
eclairs_db29-Jun-07 2:27
eclairs_db29-Jun-07 2:27 
QuestionRe: how to run a batch file ...plzzz help me... Pin
Rajesh R Subramanian30-Jun-07 6:52
professionalRajesh R Subramanian30-Jun-07 6:52 
QuestionSetting checks of context menu items Pin
Akin Ocal28-Jun-07 23:39
Akin Ocal28-Jun-07 23:39 
I am making a popup menu resource in my MFC project.
I can call it in OnRButtonDown event with code below :

CMenu menuPop;

menuPop.LoadMenu(IDR_MENU_MAIN);
POINT ptMouse;
GetCursorPos(&ptMouse);
menuPop.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, ptMouse.x,ptMouse.y,this);

All i want to do is to change check of items. Its first menu items is checked by default.
I tried code below to make first menu item unchecked but it didnt work :

CMenu menuPop;
menuPop.LoadMenu(IDR_MENU_MAIN);
menuPop.CheckMenuItem(0,MF_BYPOSITION | MF_UNCHECKED);

How can i set check states of menu items in my popup style -context menu ?
AnswerRe: Setting checks of context menu items Pin
KarstenK29-Jun-07 0:03
mveKarstenK29-Jun-07 0:03 
GeneralRe: Setting checks of context menu items Pin
Akin Ocal29-Jun-07 0:56
Akin Ocal29-Jun-07 0:56 
GeneralRe: Setting checks of context menu items Pin
KarstenK29-Jun-07 1:44
mveKarstenK29-Jun-07 1:44 
GeneralRe: Setting checks of context menu items Pin
Akin Ocal29-Jun-07 2:49
Akin Ocal29-Jun-07 2:49 
GeneralRe: Setting checks of context menu items Pin
KarstenK29-Jun-07 2:56
mveKarstenK29-Jun-07 2:56 
GeneralRe: Setting checks of context menu items Pin
Akin Ocal29-Jun-07 2:58
Akin Ocal29-Jun-07 2:58 
QuestionInitModalIndirect() for dialog box creation Pin
prithaa28-Jun-07 23:09
prithaa28-Jun-07 23:09 
AnswerRe: InitModalIndirect() for dialog box creation Pin
Nibu babu thomas28-Jun-07 23:27
Nibu babu thomas28-Jun-07 23:27 
GeneralRe: InitModalIndirect() for dialog box creation Pin
prithaa29-Jun-07 1:28
prithaa29-Jun-07 1:28 
GeneralRe: InitModalIndirect() for dialog box creation Pin
Mark Salsbery1-Jul-07 11:19
Mark Salsbery1-Jul-07 11:19 
Questionfile icons Pin
Jhony george28-Jun-07 21:38
Jhony george28-Jun-07 21:38 
AnswerRe: file icons Pin
Rajasekharan Vengalil28-Jun-07 22:11
Rajasekharan Vengalil28-Jun-07 22:11 
Questiondefference between DLL and Static library Pin
gentleguy28-Jun-07 21:33
gentleguy28-Jun-07 21:33 
AnswerRe: defference between DLL and Static library Pin
Rajasekharan Vengalil28-Jun-07 22:19
Rajasekharan Vengalil28-Jun-07 22:19 
AnswerRe: defference between DLL and Static library Pin
Hamid_RT29-Jun-07 2:22
Hamid_RT29-Jun-07 2:22 
Questioncannot open include file 'res\DSplit.rc2'. Pin
gentleguy28-Jun-07 21:28
gentleguy28-Jun-07 21:28 
AnswerRe: cannot open include file 'res\DSplit.rc2'. Pin
Programm3r28-Jun-07 23:25
Programm3r28-Jun-07 23:25 

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.