This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

A soft key's label can be programmatically refreshed from the registry by posting a message.

Beginning with Windows Mobile 6.5.3, soft keys are replaced by touchable tiles on Windows Mobile Professional phones.

The following code example shows how to refresh the right soft key (SK2)'s label.

Copy Code
void GetHomeToRefreshSK2()
  HWND hwndHome = FindWindow(TEXT("DesktopExplorerWindow"), NULL);
  PostMessage(hwndHome, HM_RELOAD_BUTTON, VK_TSOFT2, 0);

This functionality can be used to update the soft key in response to an external event, such as plugging a camera into a Windows phone. To refresh the left soft key label, pass in the parameter VK_TSOFT1instead.

See Also

Other Resources

Soft Keys