Replacing the Urlmon User Interface

The Platform Builder Resource Editors allow you to make simple changes to the text strings in Windows CE dialog and message boxes and to create new dialog boxes. However, there may be situations where you need to change not only the content of a system message, but the action taken in response to a message. The replaceable user interface component of Urlmon allows you to write code to intercept the single Urlmon Zones alert dialog box and handle it appropriately for a particular user scenario. You do this by modifying and recompiling a dynamic link library file, urlmonui.lib. The source code for the urlmonui library is located in the %_WINCEROOT%\Public\IE\Oak\Urlmonui folder.

Your custom error-handling code is implemented through a callback function, IsDialogBoxHandled. When a Zones Alert is signaled, Urlmon calls this function with a handle to the parent window for the Alert. If the function returns ERROR_CALL_NOT_IMPLEMENTED, Urlmon proceeds with its own dialog box.

See Also

Resources and Resource Editors | URL Moniker Services Overview

 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.