Pocket PC & smartphone text message Icons can be easily changed (by boring customers)

Source: Internet
Author: User
Tags transparent color microsoft website

As more and more mobile phones support Windows Mobile, do you want to make your mobile phone stand out? If you are interested, let's start with the most commonly used text message and let us change the face of the System text message.

First, the SMS receiving program is a plug-in under the system's tmail application. Generally, it is called tmail to manage the following plug-ins through two key values, and one part is related to the Account type, the key value is located under [HKEY_LOCAL_MACHINE/software/Microsoft/inbox/svc]. It usually manages the Account type information, which is generally related to the message transmission protocol. We do not care about this here. The key value is located under [HKEY_CURRENT_USER/software/Microsoft/inbox/msgtypes/IPM]. It describes the information related to the Message type, for example, if you use a DLL to edit or play a message of this type, it also contains information about the message icon that we are concerned about. Below I will take the system SMS as an example, it explains how to replace the default icon of the system with our own icon. First, we declare that not all Rom supports this function, this function is only supported by the newer wm5.0 device. I am trying the 320x240 SP horizontal screen simulator released by Microsoft. If you are interested, please try the next one.

First, we will focus on the key [HKEY_CURRENT_USER/software/Microsoft/inbox/msgtypes/IPM/smstext]. Here we will describe the information related to SMS. The following is a brief introduction:

"DLL" = "htmlnote. dll" // indicates form DLL. The so-called form DLL refers to the library used to edit and play the SMS. It should supportFormfactoryexCall the API.

"Name" = "SMS" // name, as the name suggests

"Glyphinfo" = HEX :/

, 02 ,/

, 00 // icon Information

"Glyphdll" = "htmlnote. dll" // specifies the library where the icon is located. This key value is usually not found in the device. By default, it is the library pointed to by the DLL.

 

Have you seen two 65 in glyphinfo? In fact, it represents the resource ID of the icon, and 0x65 is exactly 101.

The message icon file is an 8-Bit Bitmap File consisting of a certain format. What format does it follow? Don't worry. Isn't the default icon file in htmlnote. dll, And the ID is 101? Read it and check it out. The result is as follows:


It is easy to see that it is a list of icons arranged in a certain width and height, and each block in a certain pixel unit represents a corresponding icon of the type. For different resolutions, the block size is different. The following lists three common sizes:

  • 16x16 (96 DPI)

  • 22x22 (131 DPI)

  • 32x32 (192 DPI)

Now it is easy to see that you need to do the following to personalize the SMS icon:

1. Generally, the system icons are not all replaced, so you can cut out the system icons first and change them to your own icons at the specified position.

2. Create a DLL project, add the bitmap file that you have completed, use the glyphinfo key value to determine the resource ID, compile and output it to the/Windows directory.

3. create the string type key value "glyphdll" under [HKEY_CURRENT_USER/software/Microsoft/inbox/msgtypes/IPM/smstext]. Set the value to the name of the compiled library, for example, "myicon. DLL"

4. Restart the tmail program and check the effect. Is it successful?

 

This is after replacement:


 

I used to fail to upload images in csdn. Check whether the image can be uploaded successfully this time.

I have tried many devices for glyphdll, but only a few devices above aku2 are supported. If you cannot try it out, don't worry. First, try the simulator to see if you have done it, maybe the device does not support it at all, so it will be useless. The latest SP horizontal screen simulator will be downloaded on the Microsoft website. Currently, it is not clear about the transparent color settings. The default color of the system is RGB (255,). I still don't know how to change it. I will write it here today. Thank you!

 

Bored customer (blog.csdn.net/yzx0023)

2006-8-19

Yzx0023@gmail.com

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.