<i>the Following Code was Obtained from <br>
<A HREF="
TARGET="_new">
<br>
Good Luck!<br>
<br>
Create a new project, and add the Common Controls ActiveX control to it. <br>
<br>
Draw the Toolbar onto a form. Add your buttons. <br>
<br>
Place the following code into a new module: <br>
<br>
Declare Function GetWindowLong Lib "user32" _<br>
Alias "GetWindowLongA" (ByVal hwnd As Long, _<br>
ByVal nIndex As Long) As Long<br>
Declare Function SetWindowLong Lib "user32" _<br>
Alias "SetWindowLongA" (ByVal hwnd As Long, _<br>
ByVal nIndex As Long, ByVal dwNewLong As Long) As Long<br>
Declare Function FindWindowEx Lib "user32" _<br>
Alias "FindWindowExA" (ByVal hWndParent As _<br>
Long, ByVal hWndChildWindow As Long, ByVal _<br>
lpClassName As String, ByVal lpsWindowName _<br>
As String) As Long<br>
<br>
Public Const GWL_STYLE = &HFFF0<br>
<br>
Public Const TBSTYLE_FLAT = &H800<br>
<br>
Public Sub TBar97(TBar As Toolbar)<br>
<br>
Dim lTBarStyle As Long, lTBarHwnd As Long<br>
<br>
If Not TypeOf TBar Is Toolbar Then Exit Sub<br>
<br>
lTBarHwnd = FindWindowEx(TBar.hwnd, 0&, "ToolbarWindow32", vbNullString)<br>
lTBarStyle = GetWindowLong(lTBarHwnd, GWL_STYLE)<br>
lTBarStyle = lTBarStyle Or TBSTYLE_FLAT<br>
lTBarStyle = SetWindowLong(lTBarHwnd, GWL_STYLE, lTBarStyle)<br>
TBar.Refresh<br>
End Sub<br>
Now, in the Form's load event, call TBar97 to make your ToolBar into a CoolBar!<br>
<br>
TBar97 ToolBar1<br>
<p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href=
</a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)