home *** CD-ROM | disk | FTP | other *** search
- WinExit Archive
-
-
-
- List of files:
- --------------
-
- readme. 1st - this file.
- winexit.exe - ready to run binary, compiled with Borland
- C++ v3.1 for small model, Windows 3.1, VGA,
- and 386 (or higher) processor. If you wish to
- run it on a 286, you'll have to recompile it.
- Note: the program *will not* run under v3.0 of
- Windows.
- winexit.c - C source
- winexit.h - header file
- winexit.def - module definition file
- winexit.rc - resource file
- winexit.ver - version stamp
- winexit1.bmp - bitmap (used in About Box)
- winexit2.bmp - bitmap (About pushbutton - unpressed, unfocused)
- winexit3.bmp - bitmap (About pushbutton - pressed, focused)
- winexit4.bmp - bitmap (About pushbutton - unpressed, focused)
- winexit1.ico - icon
- winexit2.ico - icon
- winexit.prj - project file
- makefile - makefile for BC++ v3.1
-
-
-
- Usage:
- ------
-
- This program provides an easy way to get out of Windows. It can be run
- either from the Program Manager or it can be started and minimized so
- that its icon shows up in the icon area. It can be placed in a
- convenient group in the Program Manager or it can be placed in the
- StartUp group so that it shows up in the main icon area. If it is put
- in the StartUp group it should probably be run minimized.
-
-
- Description:
- ------------
-
- Although there is a number of freely available Windows programs (with
- source code) on the Net, judging from the recent activity on the
- comp.os.ms-windos.programmer.misc, there still appears to be a slight
- confusion about how does one write Windows programs which have modeless
- dialog as their main window. Petzold's HexCalc is an example of such a
- program.
-
- This program was written as an exercise in Windows programming. However,
- please do *NOT* judge my programming abilities on acount of that program
- alone (I DO need an odd programming job every now and then to survive
- :-).
-
- As I wanted to use Borland Custom Control Library for the writing of the
- program, the (lack of) documentation about how to do it didn't make it
- any easier.
-
- So, here is an example of a program which uses a modeless dialog,
- designed with Resource Workshop using BorDlg class for dialog windows,
- as the application's main window. It closely follows Petzold's HexCalc,
- as it uses a WndProc rather than DlgProc for processing messages from
- controls. It also uses a number of specific BWCC features, such as
- coupling of bitmaps to various controls. Look for custom About button,
- and bitmap in the About box. The program accepts a debug switch ("-d" or
- "/d"), which just throws out a BWCCMessageBox, instead of exiting
- windows. it also checks for other instances of itself, and if it finds
- one (either iconized, or full window) it brings it up to the top of the
- window stack. The program also modifies the system menu adding two
- options: QuickExit, which skips the last "Are you sure?" message box;
- and AlawaysOnTop, which keeps the window/icon always as the topmost
- window. When minimized, the program adds third option to the system menu
- - Exit Windows straight from the icon's menu - depending on the current
- radiobuttons setting. The program saves the state of those tri options
- into a private .INI file (WinExit.Ini), and checks these options on the
- startup. The program also does a limited keyboard processing - space &
- enter are substitutes for OK, escape for cancel, and arrow keys move
- radio buttons.
-
-
- Legal stuff:
- ------------
-
- General permission is hereby granted to copy this program freely
- provided no charge is made for its distribution and provided that
- the copyright notice remains in place.
-
- However:
- --------
-
- If you do get an urge to make a donation (cash - for instance,
- although I also collect checks, source code, etc :-) to a poor
- postgrad student, please feel free to do so.
-
-
- Acknowledgements:
- -----------------
- Thanks to Bruce C. Wright and his EXIT utility which served
- as a template for this exercise in Windows programming.
-
-
-
- Contacts:
- --------
-
- E-mail: nino@medphys.ucl.ac.uk
-
- S-mail: Nino Margetic
- Dept. of Medical Physics
- University College London
- 11-20 Capper St.
- London WC1E 6AJ
- U.K.
- +44 (0)71-738 1938 (phone)
-
- Copyright (c) 1993. Nino Margetic. All rights reserved.
-
-