BUG: Windows CE GDI Emulation Bugs

ID: Q196277


The information in this article applies to:
  • Microsoft Windows CE versions 1.0, 2.0 for the Handheld PC


SYMPTOMS

When run under the Visual C++ Windows CE emulator, some of the GDI APIs behave differently than they do when running on an actual Windows CE device. The following list describes some of these inconsistencies:

  • The following Windows CE GDI functions, when passed an invalid handle, set the error state returned by GetLastError() to ERROR_SHARING_VIOLATION rather than the proper error state of ERROR_INVALID_HANDLE:
    SetBkMode()
    GetBkMode()
    SetBkColor()
    GetBkColor()
    CreateBitMap()


  • When you attempt to use CreateBitmap() to create bitmaps with 2, 4 or 8 bits per pixel, a monochrome bitmap is returned.


  • When you run in emulation, there is no support for 2 bits per pixel bitmaps.


  • The coordinates from the following functions are treated differently in emulation than they are when running on a Windows CE device:
    ClientToScreen();
    ScreenToClient();
    MoveWindow();


  • CreateDIBSection() cannot be used to create 2 bits per pixel bitmaps when running in emulation.



RESOLUTION

These bugs only affect Windows CE applications that are running under the emulator. If you need to test these functions in your application, you should test them on an actual Windows CE device.


STATUS

Microsoft has confirmed these to be bugs in the emulator for Windows CE.


REFERENCES

For more information on troubleshooting Windows CE Emulation problems, please see the following article in the Microsoft Knowledge Base:

Q175029 INFO: Troubleshooting Windows CE Emulation

Additional query words:

Keywords : kbGDI kbSDKPlatform kbWinCE100bug kbWinCE200bug
Version : WINDOWS:1.0,2.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 13, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.