W
wangsangwu
Unregistered / Unconfirmed
GUEST, unregistred user!
bool Openform(TForm *WForm) //判断窗体是否已经打开
{
int i;
bool FormExist ;
if (WForm == NULL) return false;
FormExist =false;
for(i=0 ;i<Screen->FormCount ;i++)
{
if(Screen->Forms->ClassType() == WForm->ClassType())
{
FormExist = true;
break ;
}
}
return FormExist;
// if (FormExist ==false) return FormExist ;
// if (FormExist)
// WForm->Visible = false;
}
{
int i;
bool FormExist ;
if (WForm == NULL) return false;
FormExist =false;
for(i=0 ;i<Screen->FormCount ;i++)
{
if(Screen->Forms->ClassType() == WForm->ClassType())
{
FormExist = true;
break ;
}
}
return FormExist;
// if (FormExist ==false) return FormExist ;
// if (FormExist)
// WForm->Visible = false;
}