Click here to Skip to main content
15,922,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reclaim memory...? Pin
David Crow8-May-03 2:18
David Crow8-May-03 2:18 
QuestionCDialog automatically deletion --- safe? Pin
lauch26-May-03 15:17
lauch26-May-03 15:17 
AnswerRe: CDialog automatically deletion --- safe? Pin
Nish Nishant6-May-03 15:43
sitebuilderNish Nishant6-May-03 15:43 
GeneralRe: CDialog automatically deletion --- safe? Pin
lauch26-May-03 15:59
lauch26-May-03 15:59 
GeneralRe: CDialog automatically deletion --- safe? Pin
Nish Nishant6-May-03 16:07
sitebuilderNish Nishant6-May-03 16:07 
GeneralRe: CDialog automatically deletion --- safe? Pin
lauch26-May-03 20:17
lauch26-May-03 20:17 
GeneralRe: CDialog automatically deletion --- safe? Pin
Nish Nishant7-May-03 3:58
sitebuilderNish Nishant7-May-03 3:58 
GeneralRe: CDialog automatically deletion --- safe? Pin
Nish Nishant7-May-03 4:01
sitebuilderNish Nishant7-May-03 4:01 
GeneralRe: CDialog automatically deletion --- safe? Pin
lauch28-May-03 16:37
lauch28-May-03 16:37 
QuestionHow to copy from clipboard to MS Word Project??? Pin
krle6-May-03 15:08
krle6-May-03 15:08 
GeneralWhy won't my CTreeCtrl work in my SDI Pin
adonisv6-May-03 11:43
adonisv6-May-03 11:43 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
valikac6-May-03 12:46
valikac6-May-03 12:46 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
adonisv6-May-03 13:35
adonisv6-May-03 13:35 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
valikac6-May-03 16:16
valikac6-May-03 16:16 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Tibor Blazko6-May-03 23:57
Tibor Blazko6-May-03 23:57 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Michael Dunn6-May-03 17:27
sitebuilderMichael Dunn6-May-03 17:27 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Chris Richardson6-May-03 18:21
Chris Richardson6-May-03 18:21 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
adonisv7-May-03 10:23
adonisv7-May-03 10:23 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Chris Richardson7-May-03 10:33
Chris Richardson7-May-03 10:33 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
adonisv7-May-03 11:11
adonisv7-May-03 11:11 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Chris Richardson7-May-03 11:16
Chris Richardson7-May-03 11:16 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
adonisv8-May-03 14:42
adonisv8-May-03 14:42 
GeneralRe: Why won't my CTreeCtrl work in my SDI Pin
Chris Richardson8-May-03 15:52
Chris Richardson8-May-03 15:52 
GeneralWow I got it workin'!!! Pin
adonisv8-May-03 18:29
adonisv8-May-03 18:29 
Cool | :cool:
Actually, all I needed to do was move my code into the OnInitialUpdate function. I didn't need to call create!

void CSacmanSetupApplicationView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	GetParentFrame()->RecalcLayout();
	ResizeParentToFit();

		// Build the image list which will hold the icons
	// we want to use in the lists and trees.

	CRect treeRect;
	CImageList *pImageList=new CImageList;	
	My object is fine at this point	
		if(this->m_ctrlSetupTree)
		{
			
			Beep(999,99);
			int i, icons=0;
			for (icons=0; RCanalTree::m_icons[icons]; icons++) {}
			pImageList->Create(16, 16, TRUE, icons,6);
			for (i=0; RCanalTree::m_icons[i]; i++)
			{
				pImageList->Add(AfxGetApp()->LoadIcon(RCanalTree::m_icons[i]));
			}
			// Assign the image list to all list and tree controls
			// so that icons can be used.	
			m_ctrlSetupTree.SetImageList(pImageList,TVSIL_NORMAL);
			
			// Instruct the Canal Manager to create a new system based on the information
			// in the Canal Structures database.
			
Had to make sure it was displaying an object with data in it..	

m_ctrlSetupTree.SetCanalManagerPointer(this->m_oCanalManager.GetCanalManager());


Thanks for the help! Big Grin | :-D
Generalparameter of glutInit Pin
aguest6-May-03 10:33
aguest6-May-03 10:33 

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.