Notepad Plugins

This part of the tutorial will be divided into several sub-sections as some of the material has not previously been covered. It is assumed that you are familiar with the applications and techniques presented in the previous sections of this tutorial, as any steps which are related to previous sections are not covered in detail. The objectives for adding plugin functionality are:

1) Add a 'Plugins' menu option which will hold the options for each plugin.
2) Enumerate all DLL files in a certian folder, then load them and run a predefined function in each.
3) Intercept WM_COMMAND messages and allow each plugin to process the message to determine if its option has been selected.
4) Allow plugins to specify if they want notepad to furthur process the WM_COMMAND message or not.

[~] Section A - Modify the menu bar via import functions.
[~] Section B - Calling the imported function at the right place.
[~] Section C - Writing the primary DLL.
[~] Section D - Writing a plugin DLL.


The binaries and source code can be downloaded here.

Copyright ©2006 craigheffner.com