在pocket pc的today界面上的任务栏加入你的应用程序图标(Add taskbar to your application icon on the taskbar at the pocket PC today interface).doc
- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
在pocket pc的today界面上的任务栏加入你的应用程序图标(Add taskbar to your application icon on the taskbar at the pocket PC today interface)
在pocket pc的today界面上的任务栏加入你的应用程序图标(Add taskbar to your application icon on the taskbar at the pocket PC today interface)
Add taskbar to your application icon on the taskbar at the Pocket PC Today interface
Before, I saw a lot of programs with this feature, I think this function is very good. And very cool.
Just click on this icon on the Today interface and your application will pop out, which is really a good feature. Its equivalent to maximizing and minimizing on the desktop
I believe the solution to this problem on the desktop is easy, essentially a tray icon
Switch to the point
How to join? Check the.Net CF library, you will find that do not provide the corresponding class and function. But it doesnt matter if there are Windows API Windows programming experience, you will notice the following problems are relatively simple.
Looking for the Windows provided by API, youll find a structure NOTIFYICONDATA., lets see what this structure is for. The following information comes from MSDN:
The NOTIFYICONDATA structure contains information about system processing, taskbar status, and area information
This structure is:
Typedef, struct, _NOTIFYICONDATA {
DWORD cbSize; / / the size of the structure
HWND hWnd; / / the window handle in the taskbar icon related
UINT uID; / / sign the application definition of the taskbar icon.
UINT uFlags; / / tag contains valid data
UINT uCallbackMessage; / / sign callback message symbol
HICON hIcon; / / icon handle
WCHAR szTip[64]; //tips
} NOTIFYICONDATA, *PNOTIFYICONDATA;
When you look at the structure, you know what it means. Notice that this structure requires the handle of the form, the handle to the icon, and the flag of the event. With these 3 guys, we can do it
So, which function calls that structure? The answer is Shell_NotifyIcon, look at the definition of Shell_NotifyIcon (MSDN):
WINSHELLAPI, BOOL, WINAPI, Shell_NotifyIcon
DWORD dwMessage,
PNOTIFYICONDATA pnid
);
This method has 2 parameters. The former specifies the message value
文档评论(0)