Click here to Skip to main content
15,923,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Only one Icon in my treeview! Pin
Iain Clarke, Warrior Programmer19-May-08 5:45
Iain Clarke, Warrior Programmer19-May-08 5:45 
QuestionHow do I use this api call for C++ Pin
luisgrimaldo17-May-08 6:15
luisgrimaldo17-May-08 6:15 
AnswerRe: How do I use this api call for C++ Pin
Hamid_RT17-May-08 6:40
Hamid_RT17-May-08 6:40 
GeneralRe: How do I use this api call for C++ Pin
luisgrimaldo17-May-08 7:14
luisgrimaldo17-May-08 7:14 
GeneralRe: How do I use this api call for C++ Pin
Hamid_RT17-May-08 7:25
Hamid_RT17-May-08 7:25 
GeneralRe: How do I use this api call for C++ Pin
luisgrimaldo17-May-08 8:06
luisgrimaldo17-May-08 8:06 
GeneralRe: How do I use this api call for C++ Pin
bob1697217-May-08 9:39
bob1697217-May-08 9:39 
GeneralRe: How do I use this api call for C++ Pin
Hamid_RT17-May-08 19:11
Hamid_RT17-May-08 19:11 
AnswerRe: How do I use this api call for C++ Pin
Hamid_RT17-May-08 6:51
Hamid_RT17-May-08 6:51 
GeneralRe: How do I use this api call for C++ Pin
ThatsAlok6-Jul-09 21:01
ThatsAlok6-Jul-09 21:01 
GeneralRe: How do I use this api call for C++ Pin
Hamid_RT7-Jul-09 1:06
Hamid_RT7-Jul-09 1:06 
Questionnot allowing the edit option for an combobox Pin
sunny_vc17-May-08 0:13
sunny_vc17-May-08 0:13 
AnswerRe: not allowing the edit option for an combobox Pin
Gary R. Wheeler17-May-08 0:20
Gary R. Wheeler17-May-08 0:20 
AnswerRe: not allowing the edit option for an combobox Pin
Maxim Zarus17-May-08 0:21
Maxim Zarus17-May-08 0:21 
GeneralRe: not allowing the edit option for an combobox Pin
sunny_vc17-May-08 0:29
sunny_vc17-May-08 0:29 
QuestionCan't read the summary property of docx file Pin
Prazwol17-May-08 0:11
Prazwol17-May-08 0:11 
AnswerRe: Can't read the summary property of docx file Pin
Iain Clarke, Warrior Programmer17-May-08 0:27
Iain Clarke, Warrior Programmer17-May-08 0:27 
QuestionHow can I get user accout details ? Pin
SherTeks17-May-08 0:03
SherTeks17-May-08 0:03 
AnswerRe: How can I get user accout details ? Pin
Hamid_RT17-May-08 0:51
Hamid_RT17-May-08 0:51 
QuestionHow can handle Enter key in TreeCtrl? Pin
Le@rner16-May-08 22:09
Le@rner16-May-08 22:09 
Hi all,

i want to know how can i use Enter key in TreeCtrl?

i want to use this same as LButtonDown function.
i m using Lbuttondown like this.
void CMyTree::OnLButtonDown(UINT nFlags, CPoint point)
{
	CTreeView::OnLButtonDown(nFlags, point);
	CTreeCtrl& tc = GetTreeCtrl();
	UINT uFlags = 0;
	HTREEITEM hItem = tc.HitTest(point, &uFlags);
	if(!hItem)
		return;
	tc.SelectItem(hItem);
	tc.SetFocus();	
	CString Previous_File;
	CString Tree_str = tc.GetItemText(hItem);
	CMainFrame *pMainFrame=(CMainFrame*)AfxGetMainWnd();

	if (Tree_str==_T("Str"))
	{
AfxMessageBox(Tree_str);
//i m replacing a view here.
	}


please anybody can tell me how can i do this.

Thanks in advance.

IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

AnswerRe: How can handle Enter key in TreeCtrl? Pin
Naveen16-May-08 22:39
Naveen16-May-08 22:39 
GeneralRe: How can handle Enter key in TreeCtrl? Pin
Le@rner17-May-08 0:44
Le@rner17-May-08 0:44 
GeneralRe: How can handle Enter key in TreeCtrl? Pin
Hamid_RT17-May-08 0:47
Hamid_RT17-May-08 0:47 
GeneralRe: How can handle Enter key in TreeCtrl? Pin
Le@rner17-May-08 1:53
Le@rner17-May-08 1:53 
GeneralRe: How can handle Enter key in TreeCtrl? Pin
Hamid_RT17-May-08 4:13
Hamid_RT17-May-08 4:13 

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.