Private Type BITMAP ' The BITMAP structure defines the type, width, height, color format, and bit values of a bitmap.
bmType As Long ' Specifies the bitmap type. This member must be zero.
bmWidth As Long ' Specifies the width, in pixels, of the bitmap. The width must be greater than zero.
bmHeight As Long ' Specifies the height, in pixels, of the bitmap. The height must be greater than zero.
bmWidthBytes As Long ' Specifies the number of bytes in each scan line. This value must be divisible by 2,
' because the system assumes that the bit values of a bitmap form an array that is word aligned.
bmPlanes As Integer ' Specifies the count of color planes.
bmBitsPixel As Integer ' Specifies the number of bits required to indicate the color of a pixel.
bmBits As Long ' Pointer to the location of the bit values for the bitmap. The bmBits member must be a long pointer
' to an array of character (1-byte) values.
End Type
' The GetObject function retrieves information for the specified graphics object.
Private Declare Function GetObjectAPI Lib "gdi32" Alias "GetObjectA" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
' The PostMessage function places (posts) a message in the message queue associated with the thread that created the specified window and then returns without waiting for the thread to process the message.
' Messages in a message queue are retrieved by calls to the GetMessage or PeekMessage function.
Private Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const resOffsetButtonUp = 101 ' Button Up
Private Const resOffsetButtonDn = 105 ' Button Down
Private Const resOffsetButtonUpFocus = 109 ' Button Up Focus
Private Const resOffsetButtonDnFocus = 113 ' Button Down Focus
Private Const resMaskButtonUp = 120
Private Const resMaskButtonDn = 121
Public Enum SelectionConstant
cb_A ' Button A
cb_B ' Button B
cb_C ' Button C
cb_D ' Button D
cb_E
End Enum
Private Type cbProperties
cbSelection As SelectionConstant
cbPress As Boolean
End Type
Dim IsFocus As Boolean
Dim MyProp As cbProperties
Dim bW As Integer, bH As Integer
Event Click()
Public Property Get Selection() As SelectionConstant
Selection = MyProp.cbSelection
End Property
Public Property Let Selection(cbSelection As SelectionConstant)