- 1、本文档共19页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Windows Shell Programming Task Ba.ppt
Windows Shell Programming Task Bar Introduction Introduction Two display options: Auto Hide and Always On Top. 取得 Toolbar 的顯示狀態 use the ABM_GETSTATE message Registering an Application Desktop Toolbar 要接收 Task Bar 的訊息, 就必須先註冊 使用 ABM_NEW message 移除註冊使用 ABM_REMOVE 使用範例 自動設定 TaskBar 狀態 use the ABM_SETSTATE message TaskBar 的 Status Area 一般應用程式利用 Status Area 顯示目前的狀態 Adding, Modifying, and Deleting Icons in the Status Area Actions with status area icons To add an icon to the taskbars status area To modify an icons information To delete an icon from the status area To add an icon Add an Icon 完整範例 Modify an Icon’s Information delete an icon 全部合在一起 攔截 Mouse Clicked Callback function 的處理 定義我們自己的處理 End * * 重要參考資料: ms-help://MS.MSDNQTR.2004JAN.1033/shellcc/platform/shell/programmersguide/ shell_int/shell_int_programming/taskbar.htm Quick Launch Bar Start Menu ToolBar buttons Status area contains commands that can access programs, documents, and settings contains shortcuts to applications A single click on the applications icon in this area launches the application. To switch to a window, the user clicks its window button. Applications can put icons in the status area to indicate the status of an operation or to notify the user about an event Auto Hide Always On Top 1 2 void CRetiveveTheStateofTaskbarDlg::OnBnClickedOk(){ // Step 1: 建立 APPBARDATA 結構以包含 system appbar message APPBARDATA abd; abd.cbSize=sizeof(APPBARDATA); // Step 2: Send appbar message 給系統 (要求取出 task bar 的狀態) UINT uState = (UINT) SHAppBarMessage(ABM_GETSTATE, abd); switch(uState){ case ABS_ALWAYSONTOP: MessageBox(The taskbar is in the always-on-top state,\ Taskbar status); break; case ABS_AUTOHIDE: MessageBox(The taskbar is in the autohide state,Taskbar status); break; default: MessageBox(Error (invalid args?),Error); } } 取得目前 Task Bar 的顯示狀態
您可能关注的文档
- Longest Increasing Subsequences in Windows Based o…….ppt
- Macromedia Flash 5.ppt
- Macromedia Flash Design Application.ppt
- Managing Multiple Windows with OpenGL and GLUT.ppt
- Math Flash Fractions III.ppt
- Math Flash.ppt
- MBA运营管理-4工艺.ppt
- MCSE Guide to Microsoft Windows 7.ppt
- MCTS Guide to Microsoft Windows 7.ppt
- MCTS Guide to Microsoft Windows Vista.ppt
- 第17课 明朝的灭亡和清朝的建立 巩固练习 2024-2025学年下期初中历史统编版七年级下.docx
- 人教版(2019)必修三 Unit 1 Festivals and Celebrations Lis.pptx
- 人教版(2019)必修三 Unit 3 Diverse Cultures Reading for W.pptx
- 人教版(2019) 必修第一册 Unit 1 Teenage Life Reading and.pptx
- 人教版(2019)必修第一册Unit 2 Travelling Around Reading and.pptx
- 六年级单元作文复习.pptx
- 【作文写作法则】(初中语文)第10讲 常考应用文写作模板 学案.doc
- Unit 8 Once upon a Time 重点语法 专题练 2024-2025学.docx
- 人教版(2019)必修第一册Unit 3 Sports and fitness Reading fo.pptx
- 期末综合模拟试题 2024-2025学年下期初中道德与法治统编版八年级下册 (1).docx
最近下载
- 关于全面贯彻党的教育方针说明报告.docx VIP
- 贵州省建筑工程类初、中级专业技术职务任职资格“以考代评”考试大纲(2022年版).pdf
- 中国民航大学《概率论与数理统计》题库练习期末真题汇编及答案.pdf
- 关于开展中国特色社会主义和中国梦宣传教育活动实施方案.docx VIP
- YMO青少年数学思维27届五年级全国总决赛试卷.pdf VIP
- 社会工作法规与政策笔记(2016年自我整理复习重点).pdf VIP
- 11.21 峥嵘岁月 课件-2024-2025学年高中音乐人音版(2019) 必修 音乐鉴赏.pptx VIP
- SED比例调节阀操作说明.pdf VIP
- 2024凉山州专业技术人员继续教育公需科目-《经济思想学习纲要》学习辅导试题及满分答案.docx VIP
- 关于加强意识形态工作的实施意见.docx VIP
文档评论(0)