Click here to Skip to main content
16,017,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: adding named item to script engine Pin
Stuart Dootson7-Aug-02 19:56
professionalStuart Dootson7-Aug-02 19:56 
GeneralADO connection String Pin
unknown soldier7-Aug-02 19:33
unknown soldier7-Aug-02 19:33 
GeneralRe: ADO connection String Pin
Michael P Butler7-Aug-02 22:01
Michael P Butler7-Aug-02 22:01 
GeneralWindows Fonts problem Pin
Shamoon7-Aug-02 18:34
Shamoon7-Aug-02 18:34 
GeneralBitMapInfoHeader question. Pin
nss7-Aug-02 18:34
nss7-Aug-02 18:34 
GeneralRe: BitMapInfoHeader question. Pin
Chris Losinger7-Aug-02 18:39
professionalChris Losinger7-Aug-02 18:39 
Generaldynamic popup menu Pin
bryce7-Aug-02 18:32
bryce7-Aug-02 18:32 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 18:45
professionalChris Losinger7-Aug-02 18:45 
(hey Smile | :) )

when you build the menu, i assume you're adding menu items with InsertMenu ? if you are, then you are probably providing a "command ID" as one of the parameters. that ID is what you need to handle (and you should be using IDs you created with the Resource Symbols menu).

so, in whatever window you want to handle the message, add a line like this to the .cpp's MESSAGE_MAP

ON_COMMAND(ID_MY_MENU_ID, MyHandler)

add a line like this to the .h:

afx_msg void MyHandler();

then write the "void CMyVest::MyHandler()" function

-c


WWJD? JWRTFM.
   found on /.

GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 18:49
bryce7-Aug-02 18:49 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 18:56
professionalChris Losinger7-Aug-02 18:56 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 19:00
bryce7-Aug-02 19:00 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 19:03
professionalChris Losinger7-Aug-02 19:03 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 21:29
bryce7-Aug-02 21:29 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 21:31
professionalChris Losinger7-Aug-02 21:31 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 21:33
bryce7-Aug-02 21:33 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 21:35
professionalChris Losinger7-Aug-02 21:35 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 21:37
bryce7-Aug-02 21:37 
GeneralRe: dynamic popup menu Pin
Bill S7-Aug-02 19:28
professionalBill S7-Aug-02 19:28 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 21:10
bryce7-Aug-02 21:10 
GeneralRe: dynamic popup menu Pin
Bill S8-Aug-02 6:45
professionalBill S8-Aug-02 6:45 
GeneralGUID generation Pin
unknown soldier7-Aug-02 18:30
unknown soldier7-Aug-02 18:30 
GeneralRe: GUID generation Pin
Bill S7-Aug-02 19:31
professionalBill S7-Aug-02 19:31 
GeneralCreating DLL from C++ class Pin
Anonymous7-Aug-02 17:35
Anonymous7-Aug-02 17:35 
GeneralRe: Creating DLL from C++ class Pin
Chris Losinger7-Aug-02 17:46
professionalChris Losinger7-Aug-02 17:46 
GeneralRe: Creating DLL from C++ class Pin
Anonymous7-Aug-02 18:37
Anonymous7-Aug-02 18:37 

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.