当前位置: 代码迷 >> PB >> mdi框架怎么设置当前激活的窗口
  详细解决方案

mdi框架怎么设置当前激活的窗口

热度:64   发布时间:2016-04-29 06:51:49.0
mdi框架如何设置当前激活的窗口
在mdi框架下  getactivesheet() 可以得到当前激活的窗口
用什么代码可以更改这个活动的窗口
而不用鼠标去点击  

------解决方案--------------------
一、声明两个api
Public Function ulong ShowWindow (ulong hwnd,ulong ncmdshow) LIBRARY "user32.dll"
Public Function boolean SetWindowPos (ulong whnd,ulong hwndinsertafter,integer sx,integer sy,integer cx,integer cy,uint uflags) LIBRARY "user32.dll"
二、激活并显示
showwindow(al_handle,1)
setwindowpos(al_handle,0,0,0,0,0,3)
  相关解决方案