[译]代码项目代码
By robot-v1.0
本文链接 https://www.kyfws.com/applications/the-code-project-ticker-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 3 分钟阅读 - 1371 个词 阅读量 0[译]代码项目代码
原文地址:https://www.codeproject.com/Articles/2498/The-Code-Project-Ticker
原文作者:Rama Krishna Vavilala
译文由本站 robot-v1.0 翻译
前言
A desk band ticker that scrolls the latest messages posted in the Lounge and other forums
桌面乐队排行榜,滚动显示在休息室和其他论坛中发布的最新消息
动机(Motivation)
我一直想与The Code Project保持同步.问题-我无法每隔5分钟启动IE来查看是否有任何新的有趣的线程,或者是否有更多消息发布到特定线程. (最初来自Colin Davies的)想法是,在这方面滚动浏览所有最新消息的台式乐队排行榜将是非常不错的.这样可以确保在发生任何动作时(如休息室的火焰战争)都不会丢失.(I always want to keep myself up to date with the latest happenings at The Code Project. The problem - I can’t afford to launch IE every 5 minutes to see if there are any new and interesting threads or whether there are more messages posted to a particular thread. The idea came (originally from Colin Davies) that a desk band ticker which scrolled through all the latest messages would be pretty good in this regard. This will ensure that none of the action (like a Lounge flame war) is missed when it happens.)
对于更改(从我这里进行更改),完全使用ATL/WTL 7用非托管C ++编写.因此,不需要.NET Framework运行时.甚至不需要最新的MFC/CRT dll.该代码利用了VC ++.NET中最新的属性扩展以及ATL7中的新类来访问Web服务.稍后,我将添加对基于主机.NET的加载项以及常规VBScript/JScript的支持.(For a change (form me) this is totally written in unmanaged C++ using ATL/WTL 7. So .NET framework runtime is not required. Even the latest MFC/CRT dlls are not required. The code makes use of the latest attributed extensions in VC++.NET and also of the new classes in ATL7 to access webservices. Later on I will add support to host .NET based addins and also normal VBScript/JScript.)
如何安装(How To Install)
-
解压缩(Unzip the)CPTicker_demo.zip(CPTicker_demo.zip)文件.这将提取一个文件,(file. This will extract one file,)CPTicker.dll(CPTicker.dll).(.)
-
注册(Register the)*CPTicker.dll(CPTicker.dll)*通过打电话(by calling)
regsvr32 CPTicker.dll
-
右键单击任务栏.这将显示一个菜单,如下图所示.从工具栏子菜单中选择"代码项目代码".这会将Code Project Ticker桌面乐队放在任务栏上.(Right click on the task bar. This will show a menu as shown in the image below. From the Toolbars sub menu select “The Code Project Ticker”. This will place The Code Project Ticker desk band on the task bar.)
-
显示最新消息,并定期从网站刷新.(The latest messages are shown and are periodically refreshed from the website.)
-
单击任何消息将启动IE并导航到消息线程视图.(Clicking on any message will launch IE and navigate to the message thread view.)
2002年6月30日更新(Update 6/30/2002)
感谢Shog的建议.(Thanks to Shog for his suggestions.)
- 如顶部屏幕截图所示,有一个新的设置对话框,允许用户配置颜色以及动画速度. (感谢Tim Smith的WTL颜色选择器控件).(There is a new settings dialog as shown in the top screen shot that allows users to configure colors as well as the animation speed. (Thanks to Tim Smith for his WTL color picker control).)要弹出对话框,请双击报价栏.(To bring up the dialog double click on the ticker band.)
- 修复了一些内存泄漏(Fixed some memory leaks)
待处理的工作(Pending Work)
- 支持其他站点,例如MSDN,SellsBrothers等.(Support for other sites like MSDN, SellsBrothers etc.)
- 菜单支持常见任务,例如张贴到休息室等(Menu support for common tasks like posting to the lounge etc.) 如有任何问题,请通知我,我们欢迎您照常提出建议.(Please inform me of any problems and as usual suggestions are welcome.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
VC7.1 VC8.0 VC7.0 WinXP Windows Win2K ATL WTL Visual-Studio Dev 新闻 翻译