Images in Static Controls

4/8/2010

Windows Mobile automatically scales bitmaps in static controls on high-DPI displays, unless the bitmap is equal to or larger than the control that contains it, in which case Windows Mobile assumes that the bitmap was authored for high-DPI. This means that for static controls to work correctly you probably will not need to make any special changes.

To override this automatic scaling, use the SS_REALSIZEIMAGE style in the static control. This will prevent your images from being scaled. Conversely, if you want to scale an image and Windows Mobile does not do it for you, you can still scale it manually using STM_SETIMAGE before you set it into the static control.

See Also

Concepts

Developing DPI Aware Applications
High DPI Display