怎样判断一个窗体处于隐藏状态?(50分)

  • 主题发起人 lifchina
  • 开始时间
L

lifchina

Unregistered / Unconfirmed
GUEST, unregistred user!
怎样判断一个窗体处于隐藏状态?
 
form.visibled=True
 
if form2.visible then
showmessage('form2是可见的')
else
showmessage('form2是不可见的');
 
no
visible为false和.hide是不同的耶
 
if Assigned(Form2) then
if Form2.Visible then
// FORM2 可见
else
// FORM2 不可见
else
// FORM2 不存在
 
form.visiable
 
visiable是不可见啊
不是隐藏…………
那怎么如何判断一个窗体已存在?
 
zhihuali 不是已经说了
 
根据form的windowstat来判断
 
to BlueGhost
判断screen的form的classtype
 
form1.Showing
 
IsWindowVisible(xx.handle)
 
用SetWindowPos
eg: 如果你不确定FORM1是否隐藏
SetWindowPos(form1.handle,HWND_TOP,0,0,0,0,SWP_NOSIZE OR SWP_NOMOVE OR SWP_SHOWWINDOW);
如果FORM1隐藏了,调用这个函数就可马上SHOW它出来!
 

Similar threads

顶部