共用方式為


Images in Static Controls

Send Feedback

Windows Mobile Version 5.0 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 5.0 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 5.0 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

Developing DPI Aware Applications | High DPI Display

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.