Control Wizards contain five parts. The string to the left of the equals sign is a name that will uniquely identify your Wizard to Microsoft Access. It's never displayed in the UI. The second is the control type that the Wizard creates and / or modifies. The third parameter is that name that is displayed in the Choose Which Builder dialog box that comes up whenever more that one Wizard is registered for a particular control type. The fourth parameter is the name of the Access Basic function that is called to launch the Wizard. The last parameter is either w, or rw, meaning that the control Wizard is write-only, that is, it is only invoked when a new control is created. If this is set to rw then the Wizard will also be launched to edit an existing control. Users do this by selecting the control then choosing the Build...button from the shortcut menu.
[Control Wizards] MSListBoxWizard=ListBox, List Box Builder, LST_ENTRY,w
Control Wizards are called directly after a control is created. They are called with two-string parameters, the name of the new control and the name of its label. Control Wizards use this information to grab the handle of the control and directly modify its properties. Here's the function declaration for the Command Button Wizard entry function:
Function bwEntry (CtlName As String, LblName As String) As Integer
As mentioned in the "Object Wizards Section" above, the return value of the entry point function is ignored and is declared as an integer here only to save overhead.