如何让子窗口不被父窗口的控件覆盖住??
如下 程序
建立了一个 有颜色的子窗口
希望 不要看到 ﹝能看到我吗??﹞那个按钮
希望子窗口 永远在哪个按钮的上面
能做得到吗???
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <ListviewConstants.au3>
#Include <Constants.au3>
#include <WindowsConstants.au3>
#Include <WinAPIEx.au3>
$main_GUI = GUICreate("Tab Sample", 400, 320, -1, -1,$WS_MAXIMIZEBOX+ $WS_MINIMIZEBOX+ $WS_SIZEBOX+$WS_CLIPCHILDREN);, BitOr($GUI_SS_DEFAULT_GUI,$WS_CLIPSIBLINGS))
$button4 = GUICtrlCreateButton("可以看到我嗎??", 150, 100, 120, 20)
$button1 = GUICtrlCreateButton("顯示", 10, 270, 70, 20)
$button2 = GUICtrlCreateButton("隱藏", 100, 270, 70, 20)
GUISetState()
$child1= GUICreate("child1", 370, 215, 15, 40,BitOr($WS_CHILD,$WS_CLIPSIBLINGS) ,-1, $main_GUI);
GUISetBkColor(0x257788); just for dimensing the child
_WinAPI_SetWindowPos($child1, -1, 0, 0, 0, 0, 3)
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $button1
GUISetState(@SW_SHOW, $child1)
Case $button2
GUISetState(@SW_HIDE, $child1)
EndSwitch
WEnd
|