예제 #1
0
파일: App.hpp 프로젝트: chrisoldwood/WCL
inline const CPen& CApp::DarkestPen()
{
	// Create, if first call.
	if (m_DarkestPen.Handle() == NULL)
		m_DarkestPen.Create(PS_SOLID, 0, ::GetSysColor(COLOR_3DDKSHADOW));

	return m_DarkestPen;
}
예제 #2
0
파일: App.hpp 프로젝트: chrisoldwood/WCL
inline const CPen& CApp::LightestPen()
{
	// Create, if first call.
	if (m_LightestPen.Handle() == NULL)
		m_LightestPen.Create(PS_SOLID, 0, ::GetSysColor(COLOR_3DHIGHLIGHT));

	return m_LightestPen;
}
예제 #3
0
// -------------------------------------------------------------------------------------------------------------------------------------
// CreateAnimalCage Method																								하위 구성물 생성
//
VOID CSHFarm::CreateAnimalCage(int nAnimalCageNum, int animalSize )
{
	for(int i = 0; i < nAnimalCageNum; ++i )
	{
		CPen* pen = GetAnimalCage( i );

		if( 0 == pen )
		{
			pen = new CPen;
			m_pcsAnimalCage.Add( pen, i );
		}

		pen->SetID((WORD)i);
		pen->SetParent(this);
		pen->Create( animalSize );
		AddChild(
			pen,
			FARM_EVENT_ANIMALCAGE );
	}
}