vbAccelerator - Contents of code file: cItems.cls
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "cItems"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit
' cCommandBars is not a real object. It is a proxy
' onto the mCommandBars.m_colCommandBarItems collection,
' given that the owning control exists.
Private m_hWnd As Long
Friend Sub fInit(ByVal hWnd As Long)
m_hWnd = hWnd
End Sub
Public Property Get Count() As Long
Dim ctl As vbalCommandBar
If (ControlFromhWnd(m_hWnd, ctl)) Then
Count = ctl.BarCount()
End If
End Property
|
|