Private Declare Function SetWindowTheme Lib "uxtheme.dll" (ByVal hWnd As Long, ByVal pszSubAppName As Long, ByVal pszSubIdList As Long) As Long
Private Sub RemoveTheme(ByVal hWnd As Long)
On Error Resume Next
Dim lR As Long
lR = SetWindowTheme(hWnd, StrPtr(" "), StrPtr(" "))
On Error GoTo 0
End Sub
Dim i As Control
For Each i In Me.Controls
RemoveTheme i.hWnd
Next
Private Declare Function ActivateWindowTheme Lib "uxtheme.dll" Alias "SetWindowTheme" (ByVal hwnd As Long, Optional ByVal pszSubAppName As Long = 0, Optional ByVal pszSubIdList As Long = 0) As Long
Private Declare Function DeactivateWindowTheme Lib "uxtheme.dll" Alias "SetWindowTheme" (ByVal hwnd As Long, Optional ByRef pszSubAppName As String = " ", Optional ByRef pszSubIdList As String = " ") As Long
Private Declare Sub SetThemeAppProperties Lib "UxTheme" (dwFlags As Long)
Private Sub Form_Initialize()
SetThemeAppProperties 0
End Sub
Во всем - это на сколько? Все оформление в целом? Малехо не понял про способ вызова, почему оно так заработает.Если надо во всем - LoadLibrary и CallWindowProc
Сейчас этот форум просматривают: Google-бот и гости: 61