Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFile Question Pin
Trin214-Dec-02 22:13
Trin214-Dec-02 22:13 
GeneralRe: CFile Question Pin
Dudi Avramov14-Dec-02 23:16
Dudi Avramov14-Dec-02 23:16 
QuestionCSimpleArray ? Pin
ZBUILDER14-Dec-02 19:35
ZBUILDER14-Dec-02 19:35 
AnswerRe: CSimpleArray ? Pin
Renjith Ramachandran14-Dec-02 20:13
Renjith Ramachandran14-Dec-02 20:13 
GeneralRe: CSimpleArray ? Pin
ZBUILDER14-Dec-02 20:18
ZBUILDER14-Dec-02 20:18 
GeneralRe: CSimpleArray ? Pin
Jörgen Sigvardsson15-Dec-02 4:28
Jörgen Sigvardsson15-Dec-02 4:28 
AnswerRe: CSimpleArray ? Pin
Jörgen Sigvardsson15-Dec-02 4:29
Jörgen Sigvardsson15-Dec-02 4:29 
GeneralHelp with context menu programming. Pin
trustno114-Dec-02 15:43
trustno114-Dec-02 15:43 
hi everyone,

i added a context menu to my sdi project, based on treeview, but the context menu doesn't work correctly. the problem with my context menu is that whenever i right single click on a treenode, the context menu doesn't popup, which the context menu supposes to popup. the context menu only pops up when i double right click on a node.. i'm running winxp and using visual studio.net.. any suggestion is welcome.. thx in advance.

this is the code i added to my message map:

ON_WM_CONTEXTMENU()

this are the codes that i used for my context menu:

void CLeftView::OnContextMenu(CWnd *pWnd, CPoint point)
{
CMenu menu;
menu.LoadMenu(IDR_MENU1);
menu.GetSubMenu(0)
->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,
point.x, point.y, this);
}

GeneralTemplate class question... Pin
Matt Gullett14-Dec-02 14:56
Matt Gullett14-Dec-02 14:56 
GeneralRe: Template class question... Pin
Taka Muraoka14-Dec-02 15:51
Taka Muraoka14-Dec-02 15:51 
GeneralRe: Template class question... Pin
Matt Gullett14-Dec-02 16:03
Matt Gullett14-Dec-02 16:03 
GeneralRe: Template class question... Pin
Taka Muraoka14-Dec-02 16:17
Taka Muraoka14-Dec-02 16:17 
GeneralRe: Template class question... Pin
Matt Gullett14-Dec-02 16:45
Matt Gullett14-Dec-02 16:45 
GeneralRe: Template class question... Pin
Taka Muraoka14-Dec-02 16:55
Taka Muraoka14-Dec-02 16:55 
GeneralRe: Template class question... Pin
Matt Gullett14-Dec-02 17:04
Matt Gullett14-Dec-02 17:04 
GeneralRe: Template class question... Pin
Todd Smith14-Dec-02 17:11
Todd Smith14-Dec-02 17:11 
GeneralRe: Template class question... Pin
Matt Gullett14-Dec-02 17:23
Matt Gullett14-Dec-02 17:23 
GeneralHelp on Overlapped Serial IO Pin
work_to_live14-Dec-02 13:44
work_to_live14-Dec-02 13:44 
GeneralRe: Help on Overlapped Serial IO Pin
work_to_live14-Dec-02 14:21
work_to_live14-Dec-02 14:21 
GeneralRe: Help on Overlapped Serial IO Pin
Michael Dunn14-Dec-02 15:55
sitebuilderMichael Dunn14-Dec-02 15:55 
GeneralRe: Help on Overlapped Serial IO Pin
patk14-Dec-02 17:07
patk14-Dec-02 17:07 
GeneralRe: Help on Overlapped Serial IO Pin
work_to_live14-Dec-02 17:57
work_to_live14-Dec-02 17:57 
GeneralRe: Help on Overlapped Serial IO Pin
patk14-Dec-02 18:49
patk14-Dec-02 18:49 
GeneralRe: Help on Overlapped Serial IO Pin
work_to_live14-Dec-02 19:23
work_to_live14-Dec-02 19:23 
GeneralRe: Help on Overlapped Serial IO Pin
work_to_live14-Dec-02 20:01
work_to_live14-Dec-02 20:01 

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.