Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ATL::CSimpleStringT ?? Pin
Rajesh R Subramanian20-Nov-06 23:57
professionalRajesh R Subramanian20-Nov-06 23:57 
AnswerRe: ATL::CSimpleStringT ?? Pin
James R. Twine21-Nov-06 0:36
James R. Twine21-Nov-06 0:36 
QuestionArray Question Pin
Programm3r20-Nov-06 22:53
Programm3r20-Nov-06 22:53 
AnswerRe: Array Question Pin
Programm3r20-Nov-06 23:47
Programm3r20-Nov-06 23:47 
GeneralRe: Array Question Pin
toxcct21-Nov-06 0:29
toxcct21-Nov-06 0:29 
QuestionVS 2005 Express C++ code in header files!? Pin
floenk20-Nov-06 22:46
floenk20-Nov-06 22:46 
AnswerRe: VS 2005 Express C++ code in header files!? Pin
Christian Graus20-Nov-06 23:03
protectorChristian Graus20-Nov-06 23:03 
QuestionCtreeCtrl Popupmenu Pin
harsha_123420-Nov-06 22:45
harsha_123420-Nov-06 22:45 
Hi all, i have a tree control in which i want to show the
popup menu when someone right clicks on item.

so that i hadled the NM_RCLICK message but the pop up menu comes
somewhere near start button!!

the code is as follows
void CTreeViewDlg::OnNMRclickTree1(NMHDR *pNMHDR, LRESULT *pResult)
{
NM_TREEVIEW* pNmTreeVew = NULL;
pNmTreeVew =(NM_TREEVIEW*) pNMHDR;
if(pNmTreeVew)
{
CPoint point;
point.x = pNmTreeVew->ptDrag.x;
point.y = pNmTreeVew->ptDrag.y;/*
HMENU hMenu = LoadMenu(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MENU1));
if(hMenu)
{
TrackPopupMenu(hMenu,0,point.x,point.y,0,pTreeCtrl->m_hWnd,NULL);
}
}
}


What can be the problem with this code?
actually when i debugged the code it point.y shows some big value

so please tell what is the problem

Thanks and regards
Harshal
AnswerRe: CtreeCtrl Popupmenu Pin
Mila02520-Nov-06 22:57
Mila02520-Nov-06 22:57 
GeneralRe: CtreeCtrl Popupmenu Pin
harsha_123420-Nov-06 23:09
harsha_123420-Nov-06 23:09 
GeneralRe: CtreeCtrl Popupmenu Pin
Mila02520-Nov-06 23:31
Mila02520-Nov-06 23:31 
GeneralRe: CtreeCtrl Popupmenu Pin
harsha_123421-Nov-06 1:03
harsha_123421-Nov-06 1:03 
AnswerRe: CtreeCtrl Popupmenu Pin
Viorel.20-Nov-06 23:13
Viorel.20-Nov-06 23:13 
QuestionOpen file and recent files in MFC Pin
includeh1020-Nov-06 22:40
includeh1020-Nov-06 22:40 
AnswerRe: Open file and recent files in MFC Pin
XtremDev20-Nov-06 22:51
XtremDev20-Nov-06 22:51 
QuestionApplication hibernation [modified] Pin
SelvaKr20-Nov-06 21:47
SelvaKr20-Nov-06 21:47 
AnswerRe: Application hibernation Pin
Ștefan-Mihai MOGA20-Nov-06 21:52
professionalȘtefan-Mihai MOGA20-Nov-06 21:52 
GeneralRe: Application hibernation Pin
SelvaKr20-Nov-06 21:56
SelvaKr20-Nov-06 21:56 
AnswerRe: Application hibernation Pin
Christian Graus20-Nov-06 21:59
protectorChristian Graus20-Nov-06 21:59 
GeneralRe: Application hibernation Pin
SelvaKr20-Nov-06 22:07
SelvaKr20-Nov-06 22:07 
GeneralRe: Application hibernation Pin
Christian Graus20-Nov-06 22:10
protectorChristian Graus20-Nov-06 22:10 
AnswerRe: Application hibernation Pin
Michael Dunn20-Nov-06 22:11
sitebuilderMichael Dunn20-Nov-06 22:11 
AnswerRe: Application hibernation Pin
XtremDev20-Nov-06 22:14
XtremDev20-Nov-06 22:14 
GeneralRe: Application hibernation Pin
SelvaKr20-Nov-06 22:19
SelvaKr20-Nov-06 22:19 
GeneralRe: Application hibernation Pin
XtremDev20-Nov-06 22:23
XtremDev20-Nov-06 22:23 

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.