void CLeftView::OnInitialUpdate()
{
	CTreeView::OnInitialUpdate();

	// TODO: You may populate your TreeView with items by directly accessing
	//  its tree control through a call to GetTreeCtrl().
	// Æú´õ ³»¿ëÀ» ÃʱâÈ­ ½ÃŲ´Ù.
	CStringArray	driveNames;

	// ÄÄÇ»ÅÍ¿¡ ÇöÀç ¼³Á¤µÇ¾îÁ® ÀÖ´Â ¸ðµç 
	// µð½ºÅ© µå¶óÀ̺êÀÇ À̸§µéÀ» ¾ò¾î³»´Â »ç¿ëÀÚ Á¤ÀÇ ÇÔ¼ö 
	GetDriveNames(&driveNames);

	// µð½ºÅ© µå¶óÀ̺êµéÀ» Æ®¸®ºä¿¡ ÃʱâÈ­
	InitFolders(&driveNames);
}
Example #2
0
struct Control CreateDriveSelectionBox(struct DriveSelectionBox* box,
                                       struct LowListBox* LBox,
                                       struct VerticalScrollControl* VBox,
                                       int posx, int posy,
                                       int forcolor, int backcolor)
{
     struct Control result;

     result = CreateLowListBox(LBox, VBox, posx, posy, forcolor, backcolor);

     LBox->ControlData = (void*) box;

     LBox->AmOfEntries = AmOfEntries;
     LBox->PrintEntry  = PrintEntry;
     LBox->SelectEntry = SelectEntry;
     LBox->LeaveEntry  = LeaveEntry;
     LBox->EnterEntry  = SelectEntry;

     GetDriveNames(box->Drives);
     
     return result;
}