Download Project Report
Transcript
Project Report
Bibliography
float to_be_converted;
g_WindowWidth=0;
pDC->GetTextExtent( buff, &to_be_converted, &TempMaxHeight);
g_WindowWidth = (int) to_be_converted;
g_WindowWidth += 5; g_SectionHeight = (int) (TempMaxHeight * 2);
// now free the buffer memory
free( (void*) buff );
m_pContents = NULL;
SetScrollbars(20,20,50,50,4,4);
SetScrollRange( wxHORIZONTAL, 100);
SetScrollRange( wxVERTICAL, 100);
EnableScrolling( TRUE, TRUE);
m_positnew=FALSE;
m_pMenu = new CLinkedMenu( this );
m_pMenu->Append( NEW_BASE_CLASS, "New Class");
OnPaint();
}
//#PUBLIC
CmwContents::~CmwContents(void)
{
CClassWindow *temp;
while (m_pContents != NULL)
{
temp = (CClassWindow*) (m_pContents->GetNext());
m_pContents->SetNext( NULL );
delete m_pContents;
m_pContents = temp;
}
}
//#PUBLIC
CClassWindow* CmwContents::GetContents( void )
{
return m_pContents;
}
//#PUBLIC
void CmwContents::SetContents( CClassWindow* pClass)
{
m_pContents = pClass;
}
//#PUBLIC
void CmwContents::UpdateLinks( void )
{
CClassWindow* pClass = m_pContents;
int x,y;
int w,h;
while (pClass != NULL)
{
144