InPowerS.Net

 找回密碼
 註冊
搜索
查看: 1580|回復: 0

[轉貼]關於VB2005窗口置頂和百度搜索的聲明

[複製鏈接]
發表於 2008-12-25 22:47:25 | 顯示全部樓層 |閱讀模式
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
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

' 窗口置前
Dim myval
myval = SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3)

'窗口正常
Dim myval
myval = SetWindowPos(Me.hwnd, -2, 0, 0, 0, 0, 3)
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

小黑屋|Archiver|手機版|InPowerS.Net

GMT+8, 2018-10-22 08:12

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表