Modifying the Pen Driver User Interface

The pen driver user interface is displayed as part of the installation process when Pen Services for Windows 95 is installed. After that, the interface is available to the user through the Pen icon in the Windows 95 Control Panel. When the user double-clicks on the Pen icon, the Pen Properties property sheet is displayed with several tabs. Click on the General tab and then click on the Pen Options button and the Pen Driver Configuration Dialog generated by PENUI.DLL will be displayed.

The version of PENUI.DLL supplied with the sample pen driver generates a dialog with three parts:

If your pen driver needs the user to specify more information about the hardware than the three items above, then you will have to change the source code and produce a PENUI.DLL that displays a different dialog. For example, if your tablet does not have support for stylus pressure sensitivity, then you will probably want to eliminate the check box in the dialog that prompts the user to check the Pressure option. Or, if your tablet does support pressure sensitivity, you may want to change the prompt from "Pressure" to a more self-descriptive prompt such as "Pressure sensitivity" or "Pressure sensitivity support."

You may also want to change the items in the Model drop down list, so it includes the name of your digitizer and does not present the names of digitizers that are incompatible with yours.

This section gives more information about the source code in the DDK \PEN\SAMPLES\PENUI directory so it will be easier for you to make these changes.