如何用使VB编的窗口运行的时候保持最前,不要让那些IE呀,之类的窗口挡在后面。如何获取任务栏的高度呀?
如何用使VB编的窗口运行的时候保持最前,不要让那些IE呀,之类的窗口挡在后面。如何获取任务栏的高度呀?...
如何用使VB编的窗口运行的时候保持最前,不要让那些IE呀,之类的窗口挡在后面。如何获取任务栏的高度呀?
展开
展开全部
Option Explicit
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) As Long
Public Const HWND_TOPMOST = -1
Public Const HWND_TOP = -1
Public Const SWP_SHOWWINDOW = &H40
Private Sub Form_Load()
Dim retValue As Long retValue = SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, Me.Width, Me.Height, SWP_SHOWWINDOW)
End Sub
获取任务栏高度http://zhidao.baidu.com/question/30386325.html有,借用一下
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) As Long
Public Const HWND_TOPMOST = -1
Public Const HWND_TOP = -1
Public Const SWP_SHOWWINDOW = &H40
Private Sub Form_Load()
Dim retValue As Long retValue = SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, Me.Width, Me.Height, SWP_SHOWWINDOW)
End Sub
获取任务栏高度http://zhidao.baidu.com/question/30386325.html有,借用一下
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询