简体   繁体   中英

Images in Windows Mobile 6.5.3-style menus

In Windows Mobile 6.5.3, the bottom menus come in two styles - new, touch-friendly style with rounded black buttons, and old style. In my experience, to enable the new style, the menu has to have only one or two items, and both should be text (I_IMAGENONE); if you place an image button there, the menu reverts to old style.

However, the Pocket IE in WinMo 6.5.3 has a new style menu with images - back button for example. Question - how do they do that? I could not find any relevant samples.

Native code, C++, Win32 API. Please no managed/CLR examples.

According to CE Remote Spy it is a 64x64 Button class object with the style 0x5000000B = BS_OWNERDRAW | WS_VISIBLE | WS_CHILD.

It is the child of a 484x76 Worker object with the style 0x40800000

It does not appear to be the child of any menu. I think they just created a Button and stuck it where they wanted on the Worker window. It looks pretty because it's owner draw.

This example demonstrates the use of the BS_OWNERDRAW style: http://msdn.microsoft.com/en-us/library/aa454895.aspx

-PaulH

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM