|
동적으로 생성한 컴포넌트를 찾는 방법좀 가르쳐 주세요.
소스는 아래에 있구요!
//선언
TImage *Image_IntroScreenLogo;
//동적 생성
Image_IntroScreenLogo = new TImage(Form1->Panel1);
Image_IntroScreenLogo->Parent = Form1->Panel1;
Image_IntroScreenLogo->Name = "Image_IntroScreenLogo";
Image_IntroScreenLogo->Stretch = true;
Image_IntroScreenLogo->Height = 307;
Image_IntroScreenLogo->Width = 669;
Image_IntroScreenLogo->Top = 111;
Image_IntroScreenLogo->Left = 64;
Image_IntroScreenLogo->Picture->
LoadFromFile(currDir + "\\" + "GDILOGO.bmp");
//동적 생성한 컴포넌트를 찾아 메모리 해제
if(동적 생성한 컴포넌트를 찾아 있으면) <- 알고 싶은 부분임.
{
//메모리해제
delete Image_IntroScreenLogo;
}
|