Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated