## Pen for OS/2 Device Driver Reference

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

### Video Mode Changes

The pen device driver can request to be informed of video mode and session changes. The ability to report these events is identified with the READ_ ENABLE request. See Pen Device Driver IDC Interface. By default, events are not reported to the device driver. If events are desired, the STYLE_ NOTIFY_VMCHANGE style bit must be reset and returned by way of READ_ENABLE.

Events are reported to the pen device driver with the VIDEO_MODE_CHANGE IDC request. This is a global call to the device driver, not to a specific logical device. If the visible portion of the LCD changes for different video modes, the device driver must modify the extents to reflect the new dimensions and inform Pen for OS/2 with the capabilities update Pen for OS/ 2 Device Driver Service (UPDATE_CAPS).