Title    : DLGACCEL Example

Overview : Handling accelerator keys and PreProcessMsg in a modeless
           dialog box.

Keywords : Accelerator keys IsDialogMessage PreProcessMsg dialog

Author   : George Cross, Borland C++ Developer Support

Date     : June 16 1996

Compiler : Borland C++ 5.0, but is valid for OWL 2.x and above

  This application displays a dialog an beeps if the user presses
  Escape or Enter.  The Enter key is overridden using the virtual
  PreProcessMsg function.  The Escape key is overridden using the
  Accelerator resource.  You may choose to use either technique
  for any key.

  Another method you can use is contained in the sample GETDLG.ZIP
  available on BBS and Compuserve and perhaps the FTP site. 

  For modal dialog boxes, you can't assign accelerators, and you can't
  get at the main message loop (see Win API help on IsDialogMessage -
  it is only for modeless dialog boxes).  If you like, you can
  emulate a modal dialog box with a modeless one.  Borland has a TI
  and sample code doing this, "Catching Accelerators in a modal
  dialog in OWL 2.x and above."

