怎么在全屏中呼出程序

来源:百度知道 编辑:UC知道 时间:2024/09/22 15:44:39
自己做了一个小辅助程序,游戏全屏时呼出就弹出去桌面了,要怎么才可以呼出程序不弹出去呢?
楼下的,我的意思是不弹出去啊,游戏不要最小化,同时开着游戏全屏和程序的界面,用完后关闭程序,下次再按全局热键呼出来,现在的问题是按全局热键就会弹出去桌面了。

Private Declare Function SetWindowPos& Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)

Private Sub Command1_Click()
SetWindowPos Me.hwnd, -1, 0, 0, 0, 0, 3
End Sub

Private Sub Command2_Click()
SetWindowPos Me.hwnd, -2, 0, 0, 0, 0, 3
End Sub
按了Command1窗口就在最顶端,Command2就取消.

可以按win徽标键,弹出到桌面再选其他程序,也可以直接用alt+tab键在程序间切换,连续多按几次选择要切换的程序