Customizing Dialog Boxes and Message Boxes for Headless Systems (Windows Embedded CE 6.0)


Windows Embedded CE allows you to customize dialog boxes and message boxes for use on headless systems. You can change the dialog boxes and message boxes so that they do not display a UI, but function in ways that are more appropriate for headless systems. For example, a message that an application would typically display in a message box can be saved in a log file that you could view on another system at a later time. In this situation, you can direct applications that create message boxes to continue processing automatically by using the default button rather than by requesting that a user select a button in a UI.

To customize the message box and dialog box for a headless system

  1. Ensure that the Messagedialogboxthunk component is removed from the COREDLL_COMPONENTS environment variable.

  2. Ensure that your Cesysgen.bat file includes the Messagedialogboxcustomize component.

    The following example shows the line that the Cesysgen.bat file should contain to include the Messagedialogboxcustomize component.

  3. Modify the customizable code for message boxes and dialog boxes that is contained in the %_WINCEROOT%\Public\Common\Oak\Drivers\Messagedialogboxcustomize directory.

    This code allows you to create custom implementations of the MessageBox, DialogBoxIndirectParam, and CreateDialogIndirectParam functions.

See Also


Customizing Dialog Boxes and Message Boxes