Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow put symbol?? Pin
cell5119-Jan-05 14:46
cell5119-Jan-05 14:46 
AnswerRe: how put symbol?? Pin
Antony M Kancidrowski20-Jan-05 2:42
Antony M Kancidrowski20-Jan-05 2:42 
AnswerRe: how put symbol?? Pin
David Crow20-Jan-05 2:48
David Crow20-Jan-05 2:48 
AnswerRe: how put symbol?? Pin
basementman20-Jan-05 4:42
basementman20-Jan-05 4:42 
GeneralQuery Pin
Anonymous19-Jan-05 14:28
Anonymous19-Jan-05 14:28 
GeneralSerialization for WTL app Pin
peterchen19-Jan-05 12:36
peterchen19-Jan-05 12:36 
GeneralRe: Serialization for WTL app Pin
Shog919-Jan-05 12:42
sitebuilderShog919-Jan-05 12:42 
Generaltreectrl Pin
Shotgun19-Jan-05 9:13
Shotgun19-Jan-05 9:13 
I am stumpped
I have a tree control I am filling with

// insert into the selected tree item
tvinsert.hParent=this->GetCurrentItem(bLocal); tvinsert.hInsertAfter=TVI_LAST; tvinsert.item.mask=TVIF_TEXT|TVIF_IMAGE|TVIF_SELECTEDIMAGE|TVIF_CHILDREN; tvinsert.item.pszText=new_name.GetBuffer(0); tvinsert.item.iImage=f;
tvinsert.item.iSelectedImage=g;

HTREEITEM a = TreeView_InsertItem(tmpTree->m_hWnd, &tvinsert);

but it doesn't show a plus (+) sign.

// if I add
tvinsert.hParent=a; tvinsert.hInsertAfter=TVI_LAST; tvinsert.item.mask=TVIF_TEXT|TVIF_IMAGE|TVIF_SELECTEDIMAGE|TVIF_CHILDREN; tvinsert.item.pszText="first sub item"; tvinsert.item.iImage=f;
tvinsert.item.iSelectedImage=g;

HTREEITEM b = TreeView_InsertItem(tmpTree->m_hWnd, &tvinsert);

// still no plus

// if i add
tvinsert.hParent=b; tvinsert.hInsertAfter=TVI_LAST; tvinsert.item.mask=TVIF_TEXT|TVIF_IMAGE|TVIF_SELECTEDIMAGE|TVIF_CHILDREN; tvinsert.item.pszText="sub to sub item"; tvinsert.item.iImage=f;
tvinsert.item.iSelectedImage=g;

HTREEITEM a = TreeView_InsertItem(tmpTree->m_hWnd, &tvinsert);

the item now has a plus sign with both subs, one under the other....

any helps really, really appreciated


shotgun
GeneralRe: treectrl Pin
Steve Mayfield19-Jan-05 20:23
Steve Mayfield19-Jan-05 20:23 
GeneralRe: treectrl Pin
Shotgun20-Jan-05 12:14
Shotgun20-Jan-05 12:14 
GeneralRe: treectrl Pin
Shotgun20-Jan-05 12:14
Shotgun20-Jan-05 12:14 
GeneralCount the number of pages in a PCL file. Pin
raf-sp19-Jan-05 8:07
raf-sp19-Jan-05 8:07 
GeneralRe: Count the number of pages in a PCL file. Pin
David Crow19-Jan-05 9:39
David Crow19-Jan-05 9:39 
GeneralRe: Count the number of pages in a PCL file. Pin
raf-sp20-Jan-05 0:49
raf-sp20-Jan-05 0:49 
GeneralRe: Count the number of pages in a PCL file. Pin
David Crow20-Jan-05 2:35
David Crow20-Jan-05 2:35 
GeneralRe: Count the number of pages in a PCL file. Pin
raf-sp20-Jan-05 7:54
raf-sp20-Jan-05 7:54 
GeneralRe: Count the number of pages in a PCL file. Pin
David Crow20-Jan-05 8:35
David Crow20-Jan-05 8:35 
GeneralRe: Count the number of pages in a PCL file. Pin
raf-sp2-Feb-05 8:26
raf-sp2-Feb-05 8:26 
QuestionHow to grab sound forom the modem Pin
usman.ghani19-Jan-05 7:47
usman.ghani19-Jan-05 7:47 
Generalcheck if remote computer exists Pin
Mathias S.19-Jan-05 5:23
Mathias S.19-Jan-05 5:23 
GeneralRe: check if remote computer exists Pin
David Crow19-Jan-05 5:46
David Crow19-Jan-05 5:46 
GeneralRe: check if remote computer exists Pin
Mathias S.19-Jan-05 6:06
Mathias S.19-Jan-05 6:06 
Generaldrag rectangle with scrolling Pin
Anonymous19-Jan-05 5:09
Anonymous19-Jan-05 5:09 
GeneralFile Access from CD-ROM Pin
Gunnar Mätzler19-Jan-05 5:08
Gunnar Mätzler19-Jan-05 5:08 
GeneralRe: File Access from CD-ROM Pin
David Crow19-Jan-05 5:31
David Crow19-Jan-05 5:31 

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.