Mikes Bailey
mhbailey@mhtc.net

ADDFX
This DLL can be compiled as a 32-bit DLL, supporting the Win95 file i/o
calls.

Below are listed the functions which can be attached to key combinations or
added to a popup menu.  Probably the most useful is the directory shortcut
function that allows you to keep a list of shortcuts to directories in an
INI file.  An example ADDFX.INI is included.  See the code for more details.


1) Insert full name and timedate stamp.

A "FullName=" entry is looked for in a [InsertName] section in
the ADDFIX.INI file first.

void DLL MHB_InsertName (void) 


2) Insert initials and timedate stamp.

An "Initials=" entry is looked for in a [InsertName] section in
the ADDFIX.INI file first.

DLL MHB_InsertInitials (void)


3) Add a command to do a DOS Window Shell so a specific PIF file can be
called in order to resize the window correctly.

void DLL MHB_DosWindow (void)


4) To do makes.

void DLL MHB_DosMake ( void )


5) To drop bookmarks, overriding the CW bookmarks which always prompt whether
or not previous bookmarks should be overwritten.  Companion GoToBookmarks
have also been added.

void DLL MHB_DropBookMark1 (void)
void DLL MHB_DropBookMark2 (void)
void DLL MHB_DropBookMark3 (void)

void DLL MHB_GoToBookmark1 (void)
void DLL MHB_GoToBookmark2 (void)
void DLL MHB_GoToBookmark3 (void)


6) Displays information about the file in the title.  Full path, file size in
bytes and time/date stamp.  This originally had the line count.  Since
this is determined by seeking to the end of the file and back to the start,
it affected the undo buffer. Line count removed to a separate function because
this function has been put on a timer..

void DLL MHB_DisplayFileName (void)


7) Use to display current working directory.

void DLL MHB_CurDir (void)


8) Use to also get the number of lines in the file. NOT attached to a 
timer.  See function (6).

void DLL MHB_DisplayFileStats (void)


9) Dialog to display the current working directory and to select a file.

void DLL dir (LPSTR szWildCard)


10) Change directories.

void DLL cd (LPSTR szPath)


11) This provides shortcut directory changes.
The entries are saved in a ADDFX.INI file which resides in the CW
directory. The PIF file is a standard Windows PIF file that executes
COMMAND.COM in the current working directory, which is also set here.
The function needs to be attached to a keystroke either via the Key item
on the menu bar or to the [KmapAssign] secton in the CWRIGHT.INI file,
such as: KmapAssign='<F12>' 'MHB_ShellCmd'.
 
Note:  the ADDFX.INI file can be modified with an ASCII editor to 
setup the initial shortcuts.

void DLL MHB_DirChange (void)


12) Shortcut to a shell out path.  Uses the same INI
file as the MHB_DirChange function, ADDFX.INI, which is kept in the
Windows directory by default.  The PIF file is a standard Windows PIF
file that executes COMMAND.COM in the current working directory, which
is also set here.

The function needs to be attached to a keystroke either via the Key item
on the menu bar or to the [KmapAssign] secton in the CWRIGHT.INI file,
such as: KmapAssign='<F12>' 'MHB_ShellCmd'.

void DLL MHB_ShellCMD (void)


13) void DLL MHB_ExecWinApp (LPSTR szApp)


14) Add a direct connection to CVW using two entries in the ADDFX.INI
file for the command line and the working directory.

void DLL CVW (void)


15)  Intercede on the WriteBuffer() command to display the filename after
the write with additional information about the file.

void DLL MHB_WriteBuffer (void)


16) Display a clock.  Check to see if a string already exists on
the status line.  If so, put the clock update at the start
of the string and redisplay it.  More experimental than useful, particularly
with the advent of the Win95 clock on the taskbar.

void DLL MHB_DisplayClock (void)
