RSS Reader Plug-in for Internet Explorer

RSS Reader Plug-in for Internet Explorer

PrafullaT
Rate me:
 
5.00/5 (12 votes)
17 Jul 2007CPOL4 min read
This is a toolbar for the Internet Explorer which shows information from RSS taken from the Internet.
Is your email address OK? You are signed up for our newsletters or notifications but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click here to have a confirmation email sent so we can start sending you newsletters again.

Introduction

The RSS reader plug-in for IE is an open source project.

About RSS

RSS stands for Really Simplified Syndication which is the standard XML format used for syndication. Many websites (such as CNN or other news websites for that matter) have different sections. But it is not always possible for the reader to visit and read the news in those sections, so what they do is publish the changes to that particular section in the form of XML. The XML format in which they publish this is standardized and that format is called as RSS. The advantage of all this stuff is that If I am interested in sports news from the world, I no longer have to go to the Sports section of some website, but I simply give the link of the RSS published by the concerned website (CNN, in our case) to my RSS reader (RSS Reader is a special software which has the capability to interpret and show the RSS in readable format). This is exactly what the toolbar that I have designed does.

About the RSS-Plugin for Internet Explorer

This plug-in is actually a toolbar for the Internet Explorer. It shows RSS news from the links which are given to it. The RSS links can be configured with the help of the configuration dialog box.

User Guide

    1. Selecting the toolbar in the Internet Explorer.

The toolbar you have installed will have to be made visible if it is not visible. To do so, please select the View->Toolbar menu. You can see the RSS Reader toolbar there, and select that toolbar as follows:

Selecting the toolbar from the Internet Explorer

    1. Viewing the news

Viewing the news is really very simple. You just have to click on the button that you have added (by default, there are five buttons which show the news from the CNN-IBN news channel). If the corresponding XML file is loaded, the news is visible as follows. The description about the item can be viewed in a balloon tool tip by simply moving the mouse over the corresponding menu item.

Screenshot - screen2.png

    1. Modifying the settings

The RSS Reader plug-in is fully customizable in terms of the buttons which are visible, and in terms of the link that it takes the data from. Clicking on the RSS Reader... button (the first button on the toolbar) will pop up the configuration dialog box as follows:

Setting dialog Box

About the Code

This project contains some interesting code fragments, which can be used as an example by everyone. This section describes such code fragments. (This section is for the beginners; if you are already a pro in Windows Programming, you can simply skip this section.)

    1. Creating toolbar buttons dynamically:

In this toolbar, buttons are created and removed dynamically by the Settings dialog box provided.

    1. Creating a cool looking owner drawn menu:

The window on which news is displayed (see the screenshot) is actually a menu. This menu is owner drawn.

    1. Creating "Hot-Spot" on a menu item:

See the last menu item. There are two entries, Next, Prev. Now, when the user clicks on the menu item, only one message is generated; which part of the menu item is clicked is identified by the cursor position. But the cursor position alone can not help. We cannot predict what the valid sections for the Next and Prev are, since we cannot tell where the menu will be shown. So, I have taken the handle of the menu itself and transformed the co-ordinates using the MapWindowPoints() Win32 API.

    1. C++ XML parsing:

I have used TinyXML for XML parsing. It is by far the best and the easiest XML parser available for C++.

    1. Inter-process communication:

The toolbar communicates with the RSS Fetcher process, and all the functions for fetching the RSS from the Internet is given to this process.

Requirements

I have used MS Visual Studio 2005, and you will also need WTL 8.0 to compile this project. WTL 8.0 is available free of cost on the Internet.

Acknowledgements

  • Erik Thompson - Creating desk-bands with an ATL Object Wizard.
  • AmHttpUtilities by Anders Molin.
  • TinyXML- This project is hosted on SourceForge.

Update

  • [7/5/2007]
    • Some memory leaks in RRPRssFetcher.exe removed, some still remains :-(
    • Problems with the Configuration Settings dialog box removed.
    • Now, RRPRssFetcher compiles successfully, all dependent files have been included in the source code [see this thread below].

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

posted @ 2022-12-13 13:56  小风风的博客  阅读(9)  评论(0编辑  收藏  举报