Реферат: Моделирование структуры книги
{
m_ActivePage--;
RenewCtrls();
}
}
void SetNextActivePage()
{
if (m_ActivePage+1<m_pPages.GetSize())
{
m_ActivePage++;
RenewCtrls();
}
}
CBookClass();
~CBookClass();
void Serialize(CArchive&);
};
BookClass.cpp:
#include "stdafx.h"
#include "BookClass.h"
IMPLEMENT_SERIAL(CBookClass,CObject,0)
CBookClass::CBookClass()
{
m_ActivePage=0;
}
CBookClass::~CBookClass()
{
m_Razdels.DeleteRazdels();
}