다음을 통해 공유


Positioning Message Boxes (Windows CE 5.0)

Send Feedback

By default, Windows CE centers all message boxes on the available desktop. You can override this default behavior by specifying a rectangle that indicates the area of the screen, in screen coordinates, where Windows CE is to center the message box. The rectangle appears in the registry under the key HKEY_LOCAL_MACHINE\System\GWE\DlgCtr.

The rectangle, defined in the RECT structure, appears in the registry file as shown in the following example.

[HKEY_LOCAL_MACHINE\SYSTEM\GWE]
    "DlgCtr"=hex:00,00,00,00,00,00,00,00,f0,00,00,00,78,00,00,00

Windows CE reads this value from the registry once during initialization and uses the same value until the target device is reset. If the registry value is deleted, the default behavior is restored.

See Also

Customizing Dialog Boxes and Message Boxes

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.