Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: handling abnormal termination Pin
Anand Paranjpe3-Oct-03 1:19
Anand Paranjpe3-Oct-03 1:19 
GeneralCTreeCtrl and deleting items Pin
vprat2-Oct-03 22:57
vprat2-Oct-03 22:57 
GeneralRe: CTreeCtrl and deleting items Pin
Tibor Blazko2-Oct-03 23:50
Tibor Blazko2-Oct-03 23:50 
GeneralRe: CTreeCtrl and deleting items Pin
vprat2-Oct-03 23:59
vprat2-Oct-03 23:59 
GeneralRe: CTreeCtrl and deleting items Pin
Tibor Blazko3-Oct-03 0:03
Tibor Blazko3-Oct-03 0:03 
GeneralRe: CTreeCtrl and deleting items Pin
vprat3-Oct-03 0:14
vprat3-Oct-03 0:14 
GeneralRe: CTreeCtrl and deleting items Pin
Tibor Blazko3-Oct-03 1:06
Tibor Blazko3-Oct-03 1:06 
GeneralRe: CTreeCtrl and deleting items Pin
Anand Paranjpe3-Oct-03 0:29
Anand Paranjpe3-Oct-03 0:29 
Hi,
I have tested code as below and it works fine

HTREEITEM hMyItem = m_myTree.InsertItem( "my item" );
HTREEITEM hMyChildItem = m_myTree.InsertItem( "my child item", hMyItem );

// 1. I delete the items I just inserted
//--
m_myTree.DeleteAllItems();
// OR 2. (according to the MSDN that should do the same)
//--
m_myTree.DeleteItem( TVI_ROOT );

hMyItem = m_myTree.InsertItem( "my item" );
hMyChildItem = m_myTree.InsertItem( "my child item", hMyItem );

Have u checked required properties of CTreeCtrl.
I don't see any problem in your code.


The chosen One Smile | :)
GeneralRe: CTreeCtrl and deleting items Pin
vprat3-Oct-03 1:28
vprat3-Oct-03 1:28 
QuestionHow to stop other Process use ReadProcessMemory to Inject into my Process?don't use APIHOOK? Pin
runner1112-Oct-03 22:27
runner1112-Oct-03 22:27 
AnswerRe: How to stop other Process use ReadProcessMemory to Inject into my Process?don't use APIHOOK? Pin
Dominik Reichl2-Oct-03 22:47
Dominik Reichl2-Oct-03 22:47 
AnswerRe: How to stop other Process use ReadProcessMemory to Inject into my Process?don't use APIHOOK? Pin
David Crow3-Oct-03 3:37
David Crow3-Oct-03 3:37 
GeneralMFC popup menus and filedialog don't show in fullscreen Pin
Anonymous2-Oct-03 22:18
Anonymous2-Oct-03 22:18 
QuestionWhat's the difference between bool and BOOL? Pin
Link26002-Oct-03 21:27
Link26002-Oct-03 21:27 
AnswerRe: What's the difference between bool and BOOL? Pin
Rickard Andersson202-Oct-03 21:44
Rickard Andersson202-Oct-03 21:44 
AnswerRe: What's the difference between bool and BOOL? Pin
Dominik Reichl2-Oct-03 22:17
Dominik Reichl2-Oct-03 22:17 
GeneralRe: What's the difference between bool and BOOL? Pin
Link26002-Oct-03 22:28
Link26002-Oct-03 22:28 
GeneralRe: What's the difference between bool and BOOL? Pin
Rickard Andersson202-Oct-03 22:40
Rickard Andersson202-Oct-03 22:40 
GeneralRe: What's the difference between bool and BOOL? Pin
Dominik Reichl2-Oct-03 22:41
Dominik Reichl2-Oct-03 22:41 
GeneralRe: What's the difference between bool and BOOL? Pin
vcplusplus2-Oct-03 22:50
vcplusplus2-Oct-03 22:50 
GeneralRe: What's the difference between bool and BOOL? Pin
Bo Hunter3-Oct-03 9:59
Bo Hunter3-Oct-03 9:59 
GeneralRe: What's the difference between bool and BOOL? Pin
Dominik Reichl3-Oct-03 10:11
Dominik Reichl3-Oct-03 10:11 
AnswerRe: What's the difference between bool and BOOL? Pin
3-Oct-03 2:03
suss3-Oct-03 2:03 
QuestionDoes VS.Net support pure C language? Pin
Link26002-Oct-03 21:10
Link26002-Oct-03 21:10 
AnswerRe: Does VS.Net support pure C language? Pin
Rickard Andersson202-Oct-03 21:17
Rickard Andersson202-Oct-03 21:17 

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.