Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Code-Page? Pin
John R. Shaw17-Apr-07 4:51
John R. Shaw17-Apr-07 4:51 
QuestionRe: Code-Page? Pin
David Crow17-Apr-07 4:59
David Crow17-Apr-07 4:59 
AnswerRe: Code-Page? Pin
John R. Shaw17-Apr-07 6:33
John R. Shaw17-Apr-07 6:33 
QuestionCTreeCtrl Problem Pin
_anil_16-Apr-07 17:49
_anil_16-Apr-07 17:49 
AnswerRe: CTreeCtrl Problem Pin
aquawicket16-Apr-07 18:03
aquawicket16-Apr-07 18:03 
GeneralRe: CTreeCtrl Problem Pin
_anil_16-Apr-07 18:07
_anil_16-Apr-07 18:07 
GeneralRe: CTreeCtrl Problem Pin
Michael Dunn16-Apr-07 18:25
sitebuilderMichael Dunn16-Apr-07 18:25 
GeneralRe: CTreeCtrl Problem Pin
Parthi_Appu16-Apr-07 18:26
Parthi_Appu16-Apr-07 18:26 
_anil_ wrote:
m_BackupTree.DeleteItem( m_BackupTree.GetRootItem() );


You are deleting the whole tree item here, is this your intension?
_anil_ wrote:
*pResult = 0;
}


This code will crash...

But If make *pResult = -1; it is working.


I'm not sure, but i think this is why your code get crashed.
If you set pResult is 0, then the frame work thinks that you didn't handle this notification,so it'll proceed with its task. But you already deleted the tree items, so its crashing.
If you set values other than zero then, the framework knows that you handled the notifaction and it does nothing.




Do your Duty and Don't expect the Result

AnswerRe: CTreeCtrl Problem Pin
syampj16-Apr-07 20:47
syampj16-Apr-07 20:47 
AnswerRe: CTreeCtrl Problem Pin
skornel17-Apr-07 2:27
skornel17-Apr-07 2:27 
QuestionNot access to child dialog object... Assert Error.. Pin
aquawicket16-Apr-07 16:59
aquawicket16-Apr-07 16:59 
AnswerRe: Not access to child dialog object... Assert Error.. Pin
aquawicket16-Apr-07 17:32
aquawicket16-Apr-07 17:32 
Questioncrypto and stego..? Pin
Software_Specialist16-Apr-07 13:11
Software_Specialist16-Apr-07 13:11 
AnswerRe: crypto and stego..? Pin
Dmitry Khudorozhkov16-Apr-07 14:37
Dmitry Khudorozhkov16-Apr-07 14:37 
Questiongetline help Pin
arbster116-Apr-07 10:56
arbster116-Apr-07 10:56 
AnswerRe: getline help Pin
toxcct16-Apr-07 11:08
toxcct16-Apr-07 11:08 
GeneralRe: getline help Pin
arbster116-Apr-07 11:10
arbster116-Apr-07 11:10 
GeneralRe: getline help Pin
toxcct16-Apr-07 11:14
toxcct16-Apr-07 11:14 
AnswerRe: getline help Pin
Stephen Hewitt16-Apr-07 18:08
Stephen Hewitt16-Apr-07 18:08 
GeneralRe: getline help Pin
toxcct16-Apr-07 20:28
toxcct16-Apr-07 20:28 
GeneralRe: getline help Pin
Stephen Hewitt16-Apr-07 20:34
Stephen Hewitt16-Apr-07 20:34 
AnswerRe: getline help Pin
wucy121316-Apr-07 18:12
wucy121316-Apr-07 18:12 
QuestionVS2005 Component Gallery Pin
DRHuff16-Apr-07 10:55
DRHuff16-Apr-07 10:55 
AnswerRe: VS2005 Component Gallery Pin
Arman S.16-Apr-07 20:36
Arman S.16-Apr-07 20:36 
QuestionAccessing windows user account properties Pin
ramesh_hp200616-Apr-07 10:22
ramesh_hp200616-Apr-07 10:22 

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.