Click here to Skip to main content
11,707,470 members (75,957 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: MFC

Ive got a problem with my context menu.
My app is a splitter window with a tree view in the left pane.
I have implemented a menu in NM_RCLICK handler.
I have implemented the menu handler ON_COMMAND in left pane class.
Problem is when I click on menu item, handler doesn't get called.
Do I need some special handling for context menu items?

Thanks in advance
Posted 2-Oct-12 19:05pm
NipunG at 3-Oct-12 2:00am
I have solved this myself. I can track the notification in DOC class although it is also puzzling me why the notification can be tracked in DOC cladd only...
Any commets?
Vineeth.B at 21-Nov-12 1:35am
Try to write the handler in mainframe class(just as a temp code) and check whether it is called.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Mika Wendelius 220
1 Maciej Los 195
2 OriginalGriff 148
3 Sergey Alexandrovich Kryukov 145
4 chainerlt 110
0 OriginalGriff 9,198
1 Sergey Alexandrovich Kryukov 8,562
2 CPallini 5,189
3 Maciej Los 4,921
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100