Customizing the IME Toolbar (Windows Embedded CE 6.0)
1/6/2010
Japanese IME 3.1 enables you to customize specific areas of the IME toolbar. The following list shows the Windows Embedded CE classes that you can use for toolbar customization:
- CImeCUIToolBar
- CImeCUIToolBar::OnOffButton
- CImeCUIToolBar::ButtonArea
- CImeCUIToolBar::Button
The following list shows the files in which the source code for the IME toolbar is located:
- ce\ccuitoolbar.cpp -- Standard UI for a handheld PC-style shell.
- cexp\ccuitoolbar.cpp -- Skin sample resembling the shell in Windows.
The following illustration shows the layout of the IME toolbar:
You can customize the following areas on the IME toolbar:
Item | Description |
---|---|
Button Area |
This are displays the IME toolbar buttons. The following list shows the elements that determine the size of the button area:
The width of the button area equals the sum of the width of the visible buttons plus the spacing between buttons x (the number of buttons - 1) plus the left and right margins of the button area. The height of the button area equals the maximum height of the button plus the top and bottom margins of the button area. |
Gripper |
The gripper enables the user to move the IME toolbar by clicking and dragging. The gripper is located below the ON/OFF button. The size of the gripper is determined by the size of the ON/OFF button and the size of the button area. The width of the gripper is equal to the width of the ON/OFF button. The height of the gripper equals the height of the button area minus the height of the ON/OFF button. |
On/Off Button |
The ON/OFF button enables the user to turn the IME on and off. This button is located at the left of the button area. The ON/OFF button and the button area are top aligned. |
Toolbar background |
The background of the entire toolbar window. |
Toolbar buttons |
The toolbar buttons are located in the button area. Each button may have a different size. The height of the button area is the maximum height of the button plus the top and bottom margins of the button area. |
The following screenshot shows an example of a Japanese IME 3.1 toolbar:
The following table shows the methods of the CIMECUIToolBar class that can be used to modify specific areas of the IME toolbar:
Class | Description |
---|---|
Draws the background of the toolbar. If the borders are not specified by CImeCUIToolBar::GetWndStyle or CImeCUIToolBar::GetWndStyleEx, CImeCUIToolBar::PaintBackground may draw the borders. |
|
Draws the gripper. |
|
Specifies the size of the button. |
|
Specifies the spacing between buttons. |
|
Specifies the top, bottom, right, and left margins of the button area. |
|
Specifies the size of the ON/OFF button. |
|
Specifies the bounding rectangle of the ON/OFF button. |
|
Draws the borders, if required, and the background of the ON/OFF button. Turns the IME on and off. |
|
Draws the face of the ON/OFF button. |
|
Specifies the bounding rectangle of the button. |
|
Draws the borders, if required, and background of the button. |
|
Draws the face of the button. The face of the buttons is a 16 x 16 pixels icon, except for the KANA and CAPS buttons. |
|
Draws the face of the button. The face of the KANA and CAPS buttons is a bitmap. |
For more information, see Customizing the IME Toolbar Buttons.