yaklit писал(а):Чето я не нашел такой константы и API которая ее юзает...
Private Const WS_EX_NOACTIVATE As Long = &H8000000&
Private Declare Function GetWindowLong Lib "user32.dll" Alias "GetWindowLongA" ( _
ByVal hwnd As Long, _
ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" ( _
ByVal hwnd As Long, _
ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
yaklit писал(а):Блин Можно Пример?
Private Sub Form_Load()
SetWindowLong Me.hWnd, GWL_EXSTYLE, GetWindowLong(Me.hwnd, GWL_EXSTYLE) + WS_EX_NOACTIVATE
End Sub
inf писал(а):офф топ
2lister где взять этот АпиВьювер???
yaklit писал(а):api viewer есть в стандартной поставке Visual Basic 6
yaklit писал(а):Api Guide плоха тем что там только апи и нет констант а тоб темы этой не было...
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Declare Function Putfocus Lib "user32" Alias "SetFocus" (ByVal hwnd As Long) As Long
Private Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long
Dim hLastParent As Long
Private Sub Command1_Click()
SetParent Me.hwnd, hLastParent
Unload Me
End
End Sub
Private Sub Form_Load()
Dim hDesktop As Long
hDesktop = FindWindow("Progman", vbNullString)
hLastParent = GetParent(Me.hwnd)
SetParent Me.hwnd, hDesktop
Putfocus Me.hwnd
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
SetParent Me.hwnd, hLastParent
End Sub
Private Sub Form_Resize()
On Error Resume Next
Me.Top = 0
Me.Left = 0
Me.Height = Screen.Height
Me.Width = Screen.Width
End Sub
Сейчас этот форум просматривают: Google-бот и гости: 58