## Pen for OS/2 Device Driver Reference

[prev][next][parent][TOC]

### penclsQueryButtonData - Override Methods

Workplace classes that wish to have unique button bit maps and name text must override this method and fill out the appropriate fields within the array of PENEVENTDATA structures. In addition, the correct size of PENEVENTDATA structures must always be returned.

The pPenEventData buffer must contain one PENEVENTDATA structure for each button that is registered by the device driver. Also, the order in which these structures are placed in the buffer must match the order in which the buttons are registered by the device driver with the Pen for OS/2 system.