Global Const SRCCOPY = &HCC0020 ' API Call for Picture Copy Bild kopieren
Global SourceBitmap As PictureBox ' Where are all my Bitmaps
Type ToolbarButtonType ' All my active Bitmaps are here
Left As Integer
Top As Integer
right As Integer
bottom As Integer
Nummer As Integer
pressed As Integer
enabled As Integer
visible As Integer
Yellowhelp As String
Statushelp As String
End Type
Type POINTAPI '4 Bytes
x As Integer
y As Integer
End Type
Type RECT '8 Bytes
Left As Integer
Top As Integer
right As Integer
bottom As Integer
End Type
' Only API Call for Copy then Bitmaps
Declare Function BitBlt Lib "GDI" (ByVal hDestDC As Integer, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hSrcDC As Integer, ByVal XSrc As Integer, ByVal YSrc As Integer, ByVal dwRop As Long) As Integer
Declare Sub GetCursorPos Lib "User" (sPoint As POINTAPI)
Declare Sub GetWindowRect Lib "User" (ByVal hWnd As Integer, lpRect As RECT)
Sub ToolbarAddButton (Ctrl As Control, TbBtn As ToolbarButtonType, ByVal XPos As Integer, ByVal Nummer As Integer, SourceBitmap As PictureBox)