Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WaitForSingleObject, Run do loop, win32 api Pin
jkirkerx27-Nov-11 10:50
professionaljkirkerx27-Nov-11 10:50 
GeneralModulus Operator % Pin
Randor 27-Nov-11 11:23
professional Randor 27-Nov-11 11:23 
GeneralRe: WaitForSingleObject, Run do loop, win32 api Pin
jkirkerx27-Nov-11 10:44
professionaljkirkerx27-Nov-11 10:44 
QuestionSetFocus problem Pin
_Flaviu25-Nov-11 3:05
_Flaviu25-Nov-11 3:05 
QuestionRe: SetFocus problem Pin
Chris Meech25-Nov-11 3:23
Chris Meech25-Nov-11 3:23 
AnswerRe: SetFocus problem Pin
_Flaviu25-Nov-11 9:07
_Flaviu25-Nov-11 9:07 
GeneralRe: SetFocus problem Pin
Chris Meech25-Nov-11 9:18
Chris Meech25-Nov-11 9:18 
GeneralRe: SetFocus problem Pin
_Flaviu25-Nov-11 9:46
_Flaviu25-Nov-11 9:46 
C++
void CMyTree::OnEditDelete() 
{
	// TODO: Add your command handler code here

	CString sItem,sMessage;
	CTreeCtrl& Tree = GetTreeCtrl();
	HTREEITEM hSelectedItem = Tree.GetSelectedItem();
	if(! hSelectedItem)return;

	sItem = Tree.GetItemText(hSelectedItem);
	sMessage.Format(_T("Are you sure you want to delete '%s' item ?"),sItem);
		if(IDYES != MessageBox(sMessage,NULL,MB_YESNO | MB_ICONWARNING))return;
	}


	// here I effectivelly delete an item into a serialized file and after that ... ( the tree view is loaded with serialized data )
	theApp.UpdateAllViews(NULL,CMyApp::UH_ITEM_CHANGED);
}


the code for delete an item from list view is similar, but at the point when I have confirm message-box, the message said to me that want to delete item from listview, not from tree view ....

I don't know if I'm was understable, but thank you anyway for your interest !!!!

modified 26-Nov-11 1:17am.

GeneralRe: SetFocus problem Pin
Goto_Label_26-Nov-11 11:59
Goto_Label_26-Nov-11 11:59 
AnswerRe: SetFocus problem Pin
Jonathan Davies25-Nov-11 6:44
Jonathan Davies25-Nov-11 6:44 
QuestionCapture mouse over event on trayicon aplication Pin
lucio8124-Nov-11 2:58
lucio8124-Nov-11 2:58 
AnswerRe: Capture mouse over event on trayicon aplication Pin
Software_Developer24-Nov-11 4:56
Software_Developer24-Nov-11 4:56 
AnswerRe: Capture mouse over event on trayicon aplication Pin
Satheesh154624-Nov-11 17:18
Satheesh154624-Nov-11 17:18 
GeneralRe: Capture mouse over event on trayicon aplication Pin
Richard MacCutchan24-Nov-11 21:39
mveRichard MacCutchan24-Nov-11 21:39 
QuestionHow to get close event of form view in MFC Pin
Amrit Agr24-Nov-11 1:53
Amrit Agr24-Nov-11 1:53 
AnswerRe: How to get close event of form view in MFC Pin
Schehaider_Aymen24-Nov-11 2:46
Schehaider_Aymen24-Nov-11 2:46 
AnswerRe: How to get close event of form view in MFC Pin
Software_Developer24-Nov-11 5:19
Software_Developer24-Nov-11 5:19 
GeneralRe: How to get close event of form view in MFC Pin
Schehaider_Aymen24-Nov-11 22:09
Schehaider_Aymen24-Nov-11 22:09 
GeneralRe: How to get close event of form view in MFC Pin
Software_Developer24-Nov-11 22:25
Software_Developer24-Nov-11 22:25 
GeneralRe: How to get close event of form view in MFC Pin
Schehaider_Aymen24-Nov-11 22:42
Schehaider_Aymen24-Nov-11 22:42 
QuestionInvoke ENTER KEY Pin
manju 323-Nov-11 19:33
manju 323-Nov-11 19:33 
AnswerRe: Invoke ENTER KEY Pin
Irwin.R23-Nov-11 20:45
Irwin.R23-Nov-11 20:45 
AnswerRe: Invoke ENTER KEY Pin
Pranit Kothari24-Nov-11 3:10
Pranit Kothari24-Nov-11 3:10 
AnswerRe: Invoke ENTER KEY Pin
Satheesh154624-Nov-11 17:13
Satheesh154624-Nov-11 17:13 
QuestionHow to change my application (Client-Server using TCP/IP Sockets) to internet based application Pin
manoharbalu23-Nov-11 18:00
manoharbalu23-Nov-11 18:00 

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.