Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleExperiment with extended window styles
Keywordsextended window styles, window style
CategoriesControls, Tips and Tricks
 
Use SetWindowLong to give a window an extended style.
 
Private Sub Check1_Click(Index As Integer)
Dim new_style As Long
Dim i As Integer

    For i = 1 To NumStyles
        If Check1(i).Value = vbChecked Then _
            new_style = new_style Or StyleValue(i)
    Next i

    SetWindowLong hwnd, GWL_EXSTYLE, new_style
    SetWindowPos hwnd, 0, 0, 0, 0, 0, _
        SWP_FRAMECHANGED Or SWP_NOMOVE Or _
        SWP_NOZORDER Or SWP_NOSIZE
    Refresh
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated