home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c016 / 3.ddi / CORFIRST.PAK / TDOCDLG.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-09  |  904 b   |  49 lines

  1. /*  Project firstapp
  2.     
  3.     Copyright ⌐ 1993. All Rights Reserved.
  4.  
  5.     SUBSYSTEM:    firstapp.exe Application
  6.     FILE:         tdocdlg.cpp
  7.     AUTHOR:       
  8.  
  9.  
  10.      OVERVIEW
  11.     ========
  12.     Source file for implementation of TDocDlg (TDialog).      
  13. */
  14.  
  15. #include <owl\owlpch.h>
  16. #pragma hdrstop
  17.  
  18. #include "tdocdlg.h"
  19.  
  20.  
  21. //{{TDocDlg Implementation}}
  22.  
  23.  
  24. TDocDlg::TDocDlg (TWindow* parent, TResId resId, TModule* module):
  25.     TDialog(parent, resId, module)
  26. {
  27.     // INSERT>> Your constructor code here.
  28.  
  29. }
  30.  
  31.  
  32. TDocDlg::~TDocDlg ()
  33. {
  34.     Destroy();
  35.  
  36.      // INSERT>> Your destructor code here.
  37.  
  38. }
  39.  
  40.  
  41. BOOL TDocDlg::PreProcessMsg (MSG& msg)
  42. {
  43.      if (msg.message == WM_KEYDOWN &&
  44.           (msg.wParam == VK_ESCAPE || msg.wParam == VK_RETURN))
  45.           return TRUE;      // ignore OK and CANCEL keys, rather than quit dialog
  46.      return TDialog::PreProcessMsg(msg);                 
  47. }
  48.  
  49.