Click here to Skip to main content
15,924,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CMenu selected Pin
picazo26-Aug-05 6:24
picazo26-Aug-05 6:24 
GeneralRe: CMenu selected Pin
Roger Allen26-Aug-05 6:51
Roger Allen26-Aug-05 6:51 
AnswerRe: CMenu selected Pin
David Crow26-Aug-05 6:11
David Crow26-Aug-05 6:11 
GeneralRe: CMenu selected Pin
picazo26-Aug-05 6:19
picazo26-Aug-05 6:19 
GeneralRe: CMenu selected Pin
David Crow26-Aug-05 6:40
David Crow26-Aug-05 6:40 
GeneralRe: CMenu selected Pin
picazo26-Aug-05 6:53
picazo26-Aug-05 6:53 
GeneralRe: CMenu selected Pin
David Crow26-Aug-05 7:01
David Crow26-Aug-05 7:01 
GeneralRe: CMenu selected Pin
Maximilien26-Aug-05 9:26
Maximilien26-Aug-05 9:26 
picazo wrote:

Now all I need to do is make sure to give each of the insert options a unique ID.


if you are filling the menu dynamically, and I assume that you know all the possibilities that the menu can contain; for example, for node X, you will put item a, b and c, and for node Z, you will put item a, b and d, ... for all node type. so you can manually add unique command ID in your resource.h file for each possible item.

Once that is done, use the return value from TrackPopupMenu, it will give you the ID that was selected because you used TPM_RETURNCMD.

then you can switch on those values ( or use a callback ).





Maximilien Lincourt
Your Head A Splode - Strong Bad
QuestionWS_CLIPCHILDREN causing MORE flicker?! Pin
Intangir26-Aug-05 6:07
Intangir26-Aug-05 6:07 
AnswerRe: WS_CLIPCHILDREN causing MORE flicker?! Pin
CWinThread27-Aug-05 2:25
CWinThread27-Aug-05 2:25 
QuestionSystem menu not refreshed Pin
Priyank Bolia26-Aug-05 5:01
Priyank Bolia26-Aug-05 5:01 
QuestionAdding words to a mouse over Pin
LCI26-Aug-05 4:58
LCI26-Aug-05 4:58 
AnswerRe: Adding words to a mouse over Pin
BlackDice26-Aug-05 5:28
BlackDice26-Aug-05 5:28 
GeneralRe: Adding words to a mouse over Pin
Laser126-Aug-05 11:53
Laser126-Aug-05 11:53 
QuestionChanging text color in a record list. MFC Pin
LCI26-Aug-05 4:54
LCI26-Aug-05 4:54 
QuestionWMP Plugin Activation Pin
Lafraia26-Aug-05 4:39
Lafraia26-Aug-05 4:39 
QuestionNaming convention Pin
Eytukan26-Aug-05 4:37
Eytukan26-Aug-05 4:37 
GeneralRe: Naming convention Pin
sunit526-Aug-05 4:43
sunit526-Aug-05 4:43 
GeneralRe: Naming convention Pin
Eytukan26-Aug-05 4:53
Eytukan26-Aug-05 4:53 
AnswerRe: Naming convention Pin
David Crow26-Aug-05 4:55
David Crow26-Aug-05 4:55 
AnswerRe: Naming convention Pin
Michael P Butler26-Aug-05 5:10
Michael P Butler26-Aug-05 5:10 
GeneralRe: Naming convention Pin
David Crow26-Aug-05 6:09
David Crow26-Aug-05 6:09 
AnswerRe: Naming convention Pin
toxcct26-Aug-05 5:10
toxcct26-Aug-05 5:10 
AnswerRe: Naming convention Pin
Roger Allen26-Aug-05 6:14
Roger Allen26-Aug-05 6:14 
AnswerRe: Naming convention Pin
Eytukan26-Aug-05 6:47
Eytukan26-Aug-05 6:47 

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.