Click here to Skip to main content
16,011,784 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to design an application to handle versioning issues? Pin
Saurabh.Garg11-Jun-08 23:53
Saurabh.Garg11-Jun-08 23:53 
QuestionCoordinating between Print Setup dialog and Print dialog Pin
theCPkid11-Jun-08 22:52
theCPkid11-Jun-08 22:52 
AnswerRe: Coordinating between Print Setup dialog and Print dialog Pin
leonigah12-Jun-08 0:46
leonigah12-Jun-08 0:46 
GeneralRe: Coordinating between Print Setup dialog and Print dialog Pin
theCPkid12-Jun-08 2:41
theCPkid12-Jun-08 2:41 
GeneralRe: Coordinating between Print Setup dialog and Print dialog Pin
Nelek12-Jun-08 5:33
protectorNelek12-Jun-08 5:33 
GeneralRe: Coordinating between Print Setup dialog and Print dialog Pin
theCPkid12-Jun-08 21:24
theCPkid12-Jun-08 21:24 
GeneralRe: Coordinating between Print Setup dialog and Print dialog Pin
Nelek12-Jun-08 22:47
protectorNelek12-Jun-08 22:47 
QuestionRemove parent menu item Pin
kildareflare11-Jun-08 22:32
kildareflare11-Jun-08 22:32 
Hello

I have a pop up context menu for a treeview where one item displays further sub items when selected. The exact items displayed depends on the current program state and what items are in the tree view.

I am able to achieve this quite simply by checking the program state and then using RemoveMenu() or EnableMenuItem().

However, there are some circumstances where I want to disable or remove the parent item. checking the properties page in the visual studio resource editor shows that this menu item has not been assigned an ID and in fact it prevents me from doing so.

I've tried using GetMenuItemID() as I know the items position but this returns NULL.

E.g Menu is:

View Properties
Move To Segment

When user selects Move To Segment further menu options appear,
how many appear is dependent on the number of segments:

Move To Segment One
Move To Segment Two
Move To Segment Three

However in some circumstances (when there are no segments) I want to remove the parent item Move To Segment from the menu.

Any suggestions?

Cheers
Rich
AnswerRe: Remove parent menu item Pin
Saurabh.Garg11-Jun-08 23:10
Saurabh.Garg11-Jun-08 23:10 
AnswerRe: Remove parent menu item Pin
SandipG 11-Jun-08 23:12
SandipG 11-Jun-08 23:12 
GeneralRe: Remove parent menu item Pin
Saurabh.Garg11-Jun-08 23:25
Saurabh.Garg11-Jun-08 23:25 
GeneralRe: Remove parent menu item Pin
kildareflare11-Jun-08 23:28
kildareflare11-Jun-08 23:28 
QuestionFinding specific locations in a string Pin
toasttime11-Jun-08 21:22
toasttime11-Jun-08 21:22 
AnswerRe: Finding specific locations in a string [modified] Pin
rp_suman11-Jun-08 21:46
rp_suman11-Jun-08 21:46 
AnswerRe: Finding specific locations in a string Pin
Nibu babu thomas11-Jun-08 21:47
Nibu babu thomas11-Jun-08 21:47 
AnswerRe: Finding specific locations in a string Pin
_AnsHUMAN_ 11-Jun-08 21:48
_AnsHUMAN_ 11-Jun-08 21:48 
AnswerRe: Finding specific locations in a string Pin
Saurabh.Garg11-Jun-08 21:58
Saurabh.Garg11-Jun-08 21:58 
QuestionReg: System Login detail Pin
pooja_friends11-Jun-08 21:10
pooja_friends11-Jun-08 21:10 
AnswerRe: Reg: System Login detail Pin
Rajesh R Subramanian11-Jun-08 21:57
professionalRajesh R Subramanian11-Jun-08 21:57 
GeneralRe: Reg: System Login detail Pin
pooja_friends11-Jun-08 22:04
pooja_friends11-Jun-08 22:04 
GeneralRe: Reg: System Login detail Pin
Rajesh R Subramanian11-Jun-08 22:09
professionalRajesh R Subramanian11-Jun-08 22:09 
GeneralRe: Reg: System Login detail Pin
David Crow12-Jun-08 4:15
David Crow12-Jun-08 4:15 
AnswerRe: Reg: System Login detail Pin
Nibu babu thomas11-Jun-08 22:11
Nibu babu thomas11-Jun-08 22:11 
GeneralRe: Reg: System Login detail Pin
pooja_friends11-Jun-08 22:16
pooja_friends11-Jun-08 22:16 
GeneralRe: Reg: System Login detail Pin
Rajesh R Subramanian11-Jun-08 22:22
professionalRajesh R Subramanian11-Jun-08 22:22 

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.