showform.h
来自「本系统里面包含数据库(SQL SERVER2000)」· C头文件 代码 · 共 24 行
H
24 行
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[i]->ClassType()==WForm->ClassType())
{
FormExist=true;
break;
}
if(FormExist==false) return FormExist;
if(WForm->WindowState==wsMinimized)
ShowWindow(WForm->Handle,SW_SHOWNORMAL);
else
ShowWindow(WForm->Handle,SW_SHOW);
if(!WForm->Visible) WForm->Visible=true;
WForm->BringToFront();
WForm->SetFocus();
return true;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?