Click here to Skip to main content
15,886,847 members
Articles / Programming Languages / C++

Project Line Counter Add-In v2.10 for VS.NET and VC6

Rate me:
Please Sign up or sign in to vote.
4.92/5 (38 votes)
29 Jun 2003 448.1K   5.3K   142  
Get statistics about your source code with a click of a button
<HTML>
<HEAD>
<Title>WndTabs Technology</Title>
<link rel="stylesheet" href="helpmain.css">
</HEAD>
<BODY>
<Object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
	<param name="Keyword" value="Technology">
	<param name="Keyword" value="Technology, WndTabs">
</OBJECT><H1>WndTabs Technology</H1>

<p>The Window Tabs Add-In (WndTabs) is another freeware add-in available from the WndTabs site
(<a href="http://www.wndtabs.com">http://www.wndtabs.com</a>).
The WndTabs source code is freely available and includes many useful classes
and utility modules.  Line Counter makes use of some of these classes and modules:
<br>
<ul>
	<li><b>Configuration Variables With Automatic Registry Persistence</b> -
		The <b><i>Config.cpp</i></b> module allows you to easily create configuration
		variables for your program.  The variables will be saved and retrieved
		from the registry using two simple commands: <b>GetConfiguration()</b>
		and <b>WriteConfiguration()</b>.<br>
		All you have to do is define your variables (which can be of either 
		integer or string types), in a file called <b><i>CfgVars.h</i></b>.  
		In this file use the <b>CFG_VAR</b> and <b>CFG_STR</b> macros to declare 
		your integer and string variables (respectively).  To access the 
		variables, simply #include <b><i>Config.h</i></b> in your source modules, 
		and thats it!.
	<br>
	<br>
	</li>
	
	<li><b>HTML Help Made Easy</b> - By using the HTML Help support
                    module (<b><i>HHSupp.cpp</i></b>), 
	    you can easily add HTML Help support to your application and its
		dialogs/property pages.  The support module will do the
		following for you:<br>
		<ul>
			<li>Try to load the HTML Help component dynamically.  Help won't be
			    provided if the load fails, but your application will keep on
				running without a problem.
			</li>
			
			<li>Allow you to make calls to HTML Help API.</li>
			
			<li>Easily create dialogs and property sheets with context sensitive
			    help (that little '?' on the title bar of the dialog).  You can
				either write a simple, text-only description for your dialog
				items, or use a full-blown HTML page.  Both are supported by
				<b><i>HTMLHelpBase</i></b>, and are as simple as adding one
				macro to your dialog class.
			</li>

			<li>Easily add help support to menu items and commands (for full MFC
				applications.</li>

		</ul>
		And more!<br>
		<br>
	<br>
	<br>
	</li>
	
			
	<li><b>Property Pages For Setting Program Configuration</b> - <b><i>AutoPropPage.cpp</i></b>
	    defines a base class for a property page that knows all about 
		configuration variables.  Just give it a list of these variables,
		and you have extensive support for the functionality of the "OK", "Apply",
		and "Cancel" buttons.<br>
		In fact, the simple needs of Line Counter require nothing more than
		simply subclassing from the provided base class.  More hidden power
		lies behind the CAutoPropPage methods <b>Changed()</b>, <b>ChangedAny()</b>,
		<b>OrigVal()</b>, and <b>PrevVal()</b> which can be seen in action
		in the WndTabs sources.
	</li>
</ul>
		  
Make sure to take a look at the WndTabs sources to see the features of the
functions described above in further depth and detail!.		    


</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

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


Written By
Experion
Canada Canada
You may know Oz from his WndTabs days. Oz has long since left client side development to work on web technologies and to consult in the R&D management field.

Comments and Discussions