Using Internal GDI Methods

When you customize the user interface (UI), you usually need to call methods that are part of the graphics device interface (GDI). GDI methods are processed by a thunk that then calls an internal version of the same method. However, the architecture for creating a skin requires you to bypass the thunk, which you do by calling the internal versions of the GDI methods directly. Windows CE provides these internal versions in the three classes shown in the following table.

Class Description
Gdi Provides access to internal GDI functions that you can use when drawing controls.
GweBypassCoredllThunk_t Provides access to internal GDI functions that you can use when drawing controls.
StockObjectHandles Provides methods for retrieving handles to predefined stock objects.

See Also

Creating a Skin

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.