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; }
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; }
// ------------------------------------------------------------------------------------------------------------------------------------- // 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 ); } }