Windows Mobile 5.0 Today Screen Plugin

来源:互联网 发布:ao史密斯管培生 知乎 编辑:程序博客网 时间:2024/06/05 04:35
 发狂了两天,自己写的Plugin为什么显示不出来,原来在CreateWindow里设置的高度根本没用,需要在响应时WM_TODAYCUSTOM_QUERYREFRESHCACHE设置Item高度,不设的话就是0,当然就看不到了。

部署Plugin的步骤(参考:http://www.codeguru.com/cpp/w-p/ce/pocketpc/article.php/c9269__1/):

To Install

  • Place the component DLL in the desired folder
  • Add appropriate values to the Registry (see above)
  • Send a broadcast message to cause the OS to accept changes:
    SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0)

To Uninstall

  • Remove the key you created during Install (HKLM/SOFTWARE/Microsoft/Today/Items/YOURCOMPONENT)
  • Send a broadcast message to cause the OS to accept changes:
    SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
  • Wait to let the OS release your component DLL
  • Delete the DLL