|
<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>
<b>NOTE:</b> WndTabs 2.50 uses the older version of the module (HTMLHelpBase) and will
be upgraded to use the new module in the next version.
<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.
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