Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

RSS Reader Plug-in for Internet Explorer

0.00/5 (No votes)
17 Jul 2007 1  
This is a toolbar for the Internet Explorer which shows information from RSS taken from the Internet.

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.
  2. 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

  3. Viewing the news
  4. 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

  5. Modifying the settings
  6. 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:
  2. In this toolbar, buttons are created and removed dynamically by the Settings dialog box provided.

  3. Creating a cool looking owner drawn menu:
  4. The window on which news is displayed (see the screenshot) is actually a menu. This menu is owner drawn.

  5. Creating "Hot-Spot" on a menu item:
  6. 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.

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

  9. Inter-process communication:
  10. 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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here