调用API的SetWindowsPos函数出错!
unser 2003-05-19 03:38:45 为什么我调用API的SetWindowsPos函数,无法使窗口总在最前面
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) As Long
-------------------------------------------------------------------------
Private Sub Form_Load()
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
Or SWP_SHOWWINDOW
End Sub