Click here to Skip to main content
15,915,752 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple view of a doc in MDI Pin
Ed Gadziemski4-Jun-02 14:26
professionalEd Gadziemski4-Jun-02 14:26 
Generalgc struct/class Help Pin
Paul Watson4-Jun-02 6:49
sitebuilderPaul Watson4-Jun-02 6:49 
GeneralRe: gc struct/class Help Pin
Rama Krishna Vavilala4-Jun-02 7:03
Rama Krishna Vavilala4-Jun-02 7:03 
GeneralRe: gc struct/class Help Pin
Paul Watson4-Jun-02 21:50
sitebuilderPaul Watson4-Jun-02 21:50 
GeneralRe: gc struct/class Help Pin
Anders Molin4-Jun-02 9:31
professionalAnders Molin4-Jun-02 9:31 
GeneralRe: gc struct/class Help Pin
4-Jun-02 9:33
suss4-Jun-02 9:33 
GeneralRe: gc struct/class Help Pin
Paul Watson4-Jun-02 21:58
sitebuilderPaul Watson4-Jun-02 21:58 
GeneralThe thing is in the tree Pin
Rage4-Jun-02 6:22
professionalRage4-Jun-02 6:22 
I have a CTreeCtrl with Parent nodes which have each 4 Child nodes. I´d like to associate an image on the child nodes, but not on the parent nodes. How do I manage to do that :

TVINSERTSTRUCT tvInsert;
HTREEITEM ChildItem;
CString Text;
CTreeCtrl *pOutprob;
pOutprob=(CTreeCtrl *) GetDlgItem(IDC_TREEPROB);
pOutprob->SetImageList(m_ImageList,TVSIL_NORMAL);

tvInsert.hParent = NULL;
tvInsert.hInsertAfter = TVI_SORT;
tvInsert.item.stateMask=0;
	
for(i=0;i<Tree.Nb_Vars();i++)
{
	tvInsert.item.mask = TVIF_TEXT;
        tvInsert.item.pszText =(unsigned short *)Text.operator LPCTSTR();
	tvInsert.hParent = NULL;
	tvInsert.hInsertAfter = NULL;
	ChildItem=pOutprob->InsertItem(&tvInsert);
	tvInsert.hParent = ChildItem;
	tvInsert.hInsertAfter = NULL;
	for(j=0;j<Tree.Variable_Parents[i].weight();j++)
	{
	        tvInsert.item.mask = TVIF_TEXT|TVIF_IMAGE;
		tvInsert.item.pszText =(unsigned short *)Text.operator LPCTSTR();
		S_ID=pOutprob->InsertItem(&tvInsert);
		pOutprob->SetItemImage(S_ID,imgnb,imgnb);
	}
}

(Sorry if there is not the whole code here Hmmm | :| ) This displays an image for both parent and children .. and i do not see why ... Confused | :confused:



~RaGE();
GeneralRe: The thing is in the tree Pin
4-Jun-02 11:18
suss4-Jun-02 11:18 
GeneralRe: The thing is in the tree Pin
Rage4-Jun-02 21:18
professionalRage4-Jun-02 21:18 
GeneralRe: The thing is in the tree Pin
4-Jun-02 21:29
suss4-Jun-02 21:29 
GeneralThread blocking interface Pin
Hans Ruck4-Jun-02 6:17
Hans Ruck4-Jun-02 6:17 
GeneralRe: Thread blocking interface Pin
Tomasz Sowinski4-Jun-02 6:41
Tomasz Sowinski4-Jun-02 6:41 
GeneralRe: Thread blocking interface Pin
Hans Ruck4-Jun-02 6:43
Hans Ruck4-Jun-02 6:43 
GeneralRe: Thread blocking interface Pin
Tomasz Sowinski4-Jun-02 6:48
Tomasz Sowinski4-Jun-02 6:48 
GeneralRe: Thread blocking interface Pin
Hans Ruck4-Jun-02 7:09
Hans Ruck4-Jun-02 7:09 
GeneralSingle document in MDI Pin
Haakon S.4-Jun-02 6:14
Haakon S.4-Jun-02 6:14 
GeneralRe: Single document in MDI Pin
Tomasz Sowinski4-Jun-02 6:13
Tomasz Sowinski4-Jun-02 6:13 
GeneralRe: Single document in MDI Pin
Haakon S.4-Jun-02 6:26
Haakon S.4-Jun-02 6:26 
GeneralRe: Single document in MDI Pin
Tomasz Sowinski4-Jun-02 6:27
Tomasz Sowinski4-Jun-02 6:27 
GeneralRe: Single document in MDI Pin
Haakon S.4-Jun-02 7:38
Haakon S.4-Jun-02 7:38 
GeneralRe: Single document in MDI Pin
Tomasz Sowinski4-Jun-02 23:32
Tomasz Sowinski4-Jun-02 23:32 
GeneralRe: Single document in MDI Pin
Ed Gadziemski4-Jun-02 14:52
professionalEd Gadziemski4-Jun-02 14:52 
GeneralEdit box with units Pin
Ali Asi4-Jun-02 5:56
Ali Asi4-Jun-02 5:56 
GeneralRe: Edit box with units Pin
Haakon S.4-Jun-02 8:46
Haakon S.4-Jun-02 8:46 

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.