|
-
Nov 6th, 2009, 02:53 AM
#1
Thread Starter
Lively Member
A small piece of code to share
Just wanted to share a small piece of code that i found. I had started a thread asking about how to prevent some controls from taking XP styles when using manifest files. But i can't find that thread. But anyway i got the solution. Here it is: (In this example i use a scrollbar)
Option Explicit
Private Declare Function DeactivateWindowTheme Lib "uxtheme" _
Alias "SetWindowTheme" ( _
ByVal hWnd As Long, _
Optional ByRef pszSubAppName As String = " ", _
Optional ByRef pszSubIdList As String = " ") _
As Integer
Private Sub Form_Load()
DeactivateWindowTheme VScroll1.hWnd
End Sub
Regards
Krishley
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|