Click here to Skip to main content
15,907,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRetrieve the file names from a dir? Pin
Rickard Andersson2015-Dec-02 3:47
Rickard Andersson2015-Dec-02 3:47 
AnswerRe: Retrieve the file names from a dir? Pin
Chris Losinger15-Dec-02 3:54
professionalChris Losinger15-Dec-02 3:54 
GeneralRe: Retrieve the file names from a dir? Pin
Rickard Andersson2015-Dec-02 4:16
Rickard Andersson2015-Dec-02 4:16 
GeneralRe: Retrieve the file names from a dir? Pin
Jörgen Sigvardsson15-Dec-02 4:27
Jörgen Sigvardsson15-Dec-02 4:27 
GeneralRe: Retrieve the file names from a dir? Pin
Ted Ferenc15-Dec-02 4:30
Ted Ferenc15-Dec-02 4:30 
GeneralTypo Pin
Ted Ferenc15-Dec-02 4:32
Ted Ferenc15-Dec-02 4:32 
GeneralRe: Retrieve the file names from a dir? Pin
Rickard Andersson2015-Dec-02 6:15
Rickard Andersson2015-Dec-02 6:15 
GeneralProxy Scanner Pin
Trin214-Dec-02 22:20
Trin214-Dec-02 22:20 
GeneralRe: Proxy Scanner Pin
l a u r e n15-Dec-02 3:34
l a u r e n15-Dec-02 3:34 
GeneralRe: Proxy Scanner Pin
Taka Muraoka15-Dec-02 4:04
Taka Muraoka15-Dec-02 4:04 
GeneralCFile Question Pin
John Clump14-Dec-02 20:09
John Clump14-Dec-02 20:09 
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 

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.