IRainButtonDraw Interface

  This interface allows you, the developer, to customize some or all of RainbowButton's visual appearance. This works in a manner similar to the CustomDraw features of the Windows Common Controls API.
  To implement the IRainButtonDraw interface, you type the following code into the top of your form or class module:

Implements IRainButtonDraw

  To start receiving notifications through the interface, use the SetCallbackSink method of the RainbowButton control (the following code assumes that you will type this code into the object module that implements the interface):

RainButton1.SetCallbackSink Me

  From that point on, all of the events that are listed as methods of IRainButtonDraw will be called on your object.

Note: There is a "custom draw" sample project included with the RainbowButton control.

DrawItem

This interface contains only a single method - DrawItem. Its definition is as follows:

DrawItem(RainCtrl As RainButton, ByVal hDC As Long, _
ByVal nDrawStep As ButtonPreDrawSteps, _
ByVal nWidth As Long, ByVal nHeight As Long, _
ByVal bMouseDown As Boolean, ByVal bHasFocus As Boolean, _
bDoDefaultDrawing As Boolean

Parameters