Private Declare Function SetCapture Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetCapture Lib "user32" () As Long
Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
Private Declare Function DrawState Lib "user32" Alias "DrawStateA" (ByVal hdc As Long, ByVal hBrush As Long, ByVal lpDrawStateProc As Long, ByVal lParam As Long, ByVal wParam As Long, ByVal X As Long, ByVal Y As Long, ByVal CX As Long, ByVal CY As Long, ByVal fuFlags As Long) As Long
Private Declare Function OleTranslateColor Lib "oleaut32.dll" (ByVal ColorIn As Long, ByVal hPal As Long, ByRef RGBColorOut As Long) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal iparam As Long) As Long
Private Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal lpString As String, ByVal nCount As Long) As Long
Private Declare Function SetTextColor Lib "gdi32" (ByVal hdc As Long, ByVal crColor As Long) As Long
Private Declare Function CreateFontIndirect Lib "gdi32" Alias "CreateFontIndirectA" (lpLogFont As LOGFONT) As Long
Private Declare Function SetBkMode Lib "gdi32" (ByVal hdc As Long, ByVal nBkMode As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (ByVal hdc As Long, ByVal lpsz As String, ByVal cbString As Long, lpSize As POINTAPI) As Long
Private Declare Function GetClientRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Private Declare Function ScreenToClient Lib "user32" (ByVal hwnd As Long, lpPoint As POINTAPI) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Const DSS_MONO = &H80 ' Draw in colour of brush specified in hBrush
Const DSS_RIGHT = &H8000
'Default Property Values:
Const m_def_AutoRedraw = False
Const m_def_ToolTipText = ""
Const m_def_PicturePosMode = pManual
Const m_def_PicturePosX = 6
Const m_def_PicturePosY = 4
Const m_def_CaptionPosX = tbbsAuto
Const m_def_CaptionPosY = tbbsCenter
Const m_def_CaptionBorder = False
Const m_def_CaptionBorderColor = vbBlack
Const m_def_Caption3DWidth = 2
Const m_def_Caption3DTop = False
Const m_def_Caption3DBottom = True
Const m_def_Caption3DLeft = False
Const m_def_Caption3DRight = True
Const m_def_Style = 8
Const m_def_IconStyle = 0
'Property Variables:
Dim m_def_BackColorCover As Single
Dim m_def_BackColorV2Begin As OLE_COLOR
Dim m_def_BackColorV2End As OLE_COLOR
Dim m_def_BackColorV1Begin As OLE_COLOR
Dim m_def_BackColorV1End As OLE_COLOR
Dim m_def_CaptionColor As OLE_COLOR
Dim m_def_CaptionColorBack As OLE_COLOR
Dim m_def_CaptionShadowColor As OLE_COLOR
Dim m_def_BorderColorHighLight As OLE_COLOR
Dim m_def_BorderColorDarkLight As OLE_COLOR
Dim m_IconStyle As Byte
Dim m_BackColorCover As Single
Dim m_AutoRedraw As Boolean
Dim m_Style As Integer
Dim m_ShowClose As Boolean
Dim m_ShowMinimized As Boolean
Dim m_ShowMaximized As Boolean
Dim m_ShowCloseEnabled As Boolean
Dim m_ShowMinimizedEnabled As Boolean
Dim m_ShowMaximizedEnabled As Boolean
Dim m_DashBack As Boolean
Dim m_ToolTipText As String
Dim m_Caption As String
Dim m_PicturePosMode As TCPosMode
Dim m_PicturePosX As Integer
Dim m_PicturePosY As Integer
Dim m_CaptionPosX As TCPositionsX
Dim m_CaptionPosY As TCPositionsY
Dim m_PictureButton As StdPicture
Dim m_BackColorV2Begin As OLE_COLOR
Dim m_BackColorV2End As OLE_COLOR
Dim m_CaptionColorBack As OLE_COLOR
Dim m_BackColorV1Begin As OLE_COLOR
Dim m_BackColorV1End As OLE_COLOR
Dim m_CaptionColor As OLE_COLOR
Dim m_BorderNormal As Byte
Dim m_BorderColorHighLight As OLE_COLOR
Dim m_BorderColorDarkLight As OLE_COLOR
Dim m_Caption3DWidth As Byte
Dim m_Caption3DTop As Boolean
Dim m_Caption3DBottom As Boolean
Dim m_Caption3DLeft As Boolean
Dim m_Caption3DRight As Boolean
Dim m_CaptionBorder As Boolean
Dim m_CaptionBorderColor As OLE_COLOR
Dim m_CaptionShadowColor As OLE_COLOR
Public Function GetRealColor(ByVal Color As OLE_COLOR) As Long
Dim R As Long
R = OleTranslateColor(Color, 0, GetRealColor)
If R <> 0 Then 'raise an error
DoEvents
End If
End Function
Public Property Get AutoRedraw() As Boolean
AutoRedraw = m_AutoRedraw
End Property
Public Property Let AutoRedraw(ByVal New_AutoRedraw As Boolean)
m_AutoRedraw = New_AutoRedraw
PropertyChanged "AutoRedraw"
'''Refresh
End Property
Public Property Get DashBack() As Boolean
DashBack = m_DashBack
End Property
Public Property Let DashBack(ByVal New_DashBack As Boolean)
m_DashBack = New_DashBack
PropertyChanged "DashBack"
Refresh
End Property
Public Property Get Style() As TbarStyles
Style = m_Style
End Property
Public Property Let Style(ByVal New_Style As TbarStyles)
m_Style = New_Style
PropertyChanged "Style"
Refresh
End Property
Public Property Get BackColor() As OLE_COLOR
BackColor = UserControl.BackColor
End Property
Public Property Let BackColor(ByVal New_BackColor As OLE_COLOR)
UserControl.BackColor() = New_BackColor
PropertyChanged "BackColor"
Refresh
End Property
Public Property Get BackColorCover() As Single
BackColorCover = m_BackColorCover
End Property
Public Property Let BackColorCover(ByVal New_BackColorCover As Single)
m_BackColorCover = New_BackColorCover
If m_BackColorCover >= 10 Then m_BackColorCover = 10
If m_BackColorCover <= 0 Then m_BackColorCover = 1
PropertyChanged "BackColorCover"
Refresh
End Property
Public Property Get BackColorV2Begin() As OLE_COLOR
BackColorV2Begin = m_BackColorV2Begin
End Property
Public Property Let BackColorV2Begin(ByVal New_BackColorV2Begin As OLE_COLOR)
m_BackColorV2Begin = New_BackColorV2Begin
PropertyChanged "BackColorV2Begin"
Refresh
End Property
Public Property Get BackColorV2End() As OLE_COLOR
BackColorV2End = m_BackColorV2End
End Property
Public Property Let BackColorV2End(ByVal New_BackColorV2End As OLE_COLOR)
m_BackColorV2End = New_BackColorV2End
PropertyChanged "BackColorV2End"
Refresh
End Property
Public Property Get BackColorV1Begin() As OLE_COLOR
BackColorV1Begin = m_BackColorV1Begin
End Property
Public Property Let BackColorV1Begin(ByVal New_BackColorV1Begin As OLE_COLOR)
m_BackColorV1Begin = New_BackColorV1Begin
PropertyChanged "BackColorV1Begin"
Refresh
End Property
Public Property Get BackColorV1End() As OLE_COLOR
BackColorV1End = m_BackColorV1End
End Property
Public Property Let BackColorV1End(ByVal New_BackColorV1End As OLE_COLOR)
m_BackColorV1End = New_BackColorV1End
PropertyChanged "BackColorV1End"
Refresh
End Property
Public Property Get BorderColorHighLight() As OLE_COLOR
BorderColorHighLight = m_BorderColorHighLight
End Property
Public Property Let BorderColorHighLight(ByVal New_BorderColorHighLight As OLE_COLOR)
m_BorderColorHighLight = New_BorderColorHighLight
PropertyChanged "BorderColorHighLight"
Refresh
End Property
Public Property Get BorderColorDarkLight() As OLE_COLOR
BorderColorDarkLight = m_BorderColorDarkLight
End Property
Public Property Let BorderColorDarkLight(ByVal New_BorderColorDarkLight As OLE_COLOR)
m_BorderColorDarkLight = New_BorderColorDarkLight
PropertyChanged "BorderColorDarkLight"
Refresh
End Property
Public Property Get ForeColor() As OLE_COLOR
ForeColor = UserControl.ForeColor
End Property
Public Property Let ForeColor(ByVal New_ForeColor As OLE_COLOR)
UserControl.ForeColor() = New_ForeColor
PropertyChanged "ForeColor"
Refresh
End Property
Public Property Get CaptionColorBack() As OLE_COLOR
CaptionColorBack = m_CaptionColorBack
End Property
Public Property Let CaptionColorBack(ByVal New_CaptionColorBack As OLE_COLOR)
m_CaptionColorBack = New_CaptionColorBack
PropertyChanged "CaptionColorBack"
Refresh
End Property
Public Property Get CaptionColor() As OLE_COLOR
CaptionColor = m_CaptionColor
End Property
Public Property Let CaptionColor(ByVal New_CaptionColor As OLE_COLOR)
m_CaptionColor = New_CaptionColor
PropertyChanged "CaptionColor"
UserControl.ForeColor = CaptionColor
Refresh
End Property
Public Property Get CaptionBorderColor() As OLE_COLOR
CaptionBorderColor = m_CaptionBorderColor
End Property
Public Property Let CaptionBorderColor(ByVal New_CaptionBorderColor As OLE_COLOR)
m_CaptionBorderColor = New_CaptionBorderColor
PropertyChanged "CaptionBorderColor"
Refresh
End Property
Public Property Get CaptionShadowColor() As OLE_COLOR
CaptionShadowColor = m_CaptionShadowColor
End Property
Public Property Let CaptionShadowColor(ByVal New_CaptionShadowColor As OLE_COLOR)
m_CaptionShadowColor = New_CaptionShadowColor
PropertyChanged "CaptionShadowColor"
Refresh
End Property
Public Property Get CaptionBorder() As Boolean
CaptionBorder = m_CaptionBorder
End Property
Public Property Let CaptionBorder(ByVal New_CaptionBorder As Boolean)
m_CaptionBorder = New_CaptionBorder
PropertyChanged "CaptionBorder"
Refresh
End Property
Public Property Get Caption3DWidth() As Byte
Caption3DWidth = m_Caption3DWidth
End Property
Public Property Let Caption3DWidth(ByVal New_Caption3DWidth As Byte)
m_Caption3DWidth = New_Caption3DWidth
PropertyChanged "Caption3DWidth"
Refresh
End Property
Public Property Get Caption3DTop() As Boolean
Caption3DTop = m_Caption3DTop
End Property
Public Property Let Caption3DTop(ByVal New_Caption3DTop As Boolean)
m_Caption3DTop = New_Caption3DTop
PropertyChanged "Caption3DappTop"
Refresh
End Property
Public Property Get Caption3DBottom() As Boolean
Caption3DBottom = m_Caption3DBottom
End Property
Public Property Let Caption3DBottom(ByVal New_Caption3DBottom As Boolean)
m_Caption3DBottom = New_Caption3DBottom
PropertyChanged "Caption3DappBottom"
Refresh
End Property
Public Property Get Caption3DLeft() As Boolean
Caption3DLeft = m_Caption3DLeft
End Property
Public Property Let Caption3DLeft(ByVal New_Caption3DLeft As Boolean)
m_Caption3DLeft = New_Caption3DLeft
PropertyChanged "Caption3DappLeft"
Refresh
End Property
Public Property Get Caption3DRight() As Boolean
Caption3DRight = m_Caption3DRight
End Property
Public Property Let Caption3DRight(ByVal New_Caption3DRight As Boolean)
m_Caption3DRight = New_Caption3DRight
PropertyChanged "Caption3DappRight"
Refresh
End Property
Public Property Get ShowClose() As Boolean
ShowClose = m_ShowClose
End Property
Public Property Let ShowClose(ByVal New_ShowClose As Boolean)
m_ShowClose = New_ShowClose
PropertyChanged "ShowClose"
Call SetTBX_
End Property
Public Property Get ShowMinimized() As Boolean
ShowMinimized = m_ShowMinimized
End Property
Public Property Let ShowMinimized(ByVal New_ShowMinimized As Boolean)
m_ShowMinimized = New_ShowMinimized
PropertyChanged "ShowMinimized"
Call SetTBX_
End Property
Public Property Get ShowMaximized() As Boolean
ShowMaximized = m_ShowMaximized
End Property
Public Property Let ShowMaximized(ByVal New_ShowMaximized As Boolean)
m_ShowMaximized = New_ShowMaximized
PropertyChanged "ShowMaximized"
Call SetTBX_
End Property
Public Property Get ShowCloseEnabled() As Boolean
ShowCloseEnabled = m_ShowCloseEnabled
End Property
Public Property Let ShowCloseEnabled(ByVal New_ShowCloseEnabled As Boolean)
m_ShowCloseEnabled = New_ShowCloseEnabled
PropertyChanged "ShowCloseEnabled"
Call SetTBX_
End Property
Public Property Get ShowMinimizedEnabled() As Boolean
ShowMinimizedEnabled = m_ShowMinimizedEnabled
End Property
Public Property Let ShowMinimizedEnabled(ByVal New_ShowMinimizedEnabled As Boolean)
m_ShowMinimizedEnabled = New_ShowMinimizedEnabled
PropertyChanged "ShowMinimizedEnabled"
Call SetTBX_
End Property
Public Property Get ShowMaximizedEnabled() As Boolean
ShowMaximizedEnabled = m_ShowMaximizedEnabled
End Property
Public Property Let ShowMaximizedEnabled(ByVal New_ShowMaximizedEnabled As Boolean)
m_ShowMaximizedEnabled = New_ShowMaximizedEnabled
PropertyChanged "ShowMaximizedEnabled"
Call SetTBX_
End Property
Public Property Get Font() As Font
Set Font = UserControl.FonerControl.Foontrol.Foontrol.FoCoontrol.FooRefresh
End Property
amily As zedEnabled"
Call SetiSerControLOR
Capti
m_Caption3DLeft = New_Caption3abled"
Call SetiSerControLORedEnabled
End Property
Pperty
Public Property Let ShowClose(Bd
PropertyChBack() As OLE_C
nt = ed
End Property
Pperty
Public abledteft = New_Caption3abled"
Call Se1bc abled Let CaptionBorder
P1+onBorder = New_CaptionBoroperty
amir
P1+onBorder = New_CaptionBoroperty
amir
P1+ Property Let CaptiononBod
PropertyChanged "ShowCloseEnabled"
Call SetTBX_
End Property
Public Property Get ShowM Propc Propppppppppppppppppppppppppppppppppppp PropertyC "Caption3DappBottom"
Refresb 270
Index = 12
Left
nabled = m_ShowMSf.ty
a= 12
Left
c Property Lelic Property Let ShowMaximizedEnabled(ByVal New_ShowMax0MaximCloseuTety Let ShowimCloseuTety Let ShowimCloseuTety Let ShowimCloseuTety et Captionopelnabled(ByVal New_ShowMax0MaximCloseuTety Let ShowimCloseuTety Let ShowimCloseuTety Let ShowimCloseuTety et CaonBod
PropertyChanged "ShowCloseEnabled"I7cpmQex CltA" (ByiMOdr CaptiaMaximized As Booleanoleanoleanoleano End
'False2OdYuty Let ShotiudptiaMaPt ShowCloseEnabowClosOC