home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / basic / emed15 / samples / owl / confirm.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-06  |  1.5 KB  |  66 lines

  1. /*  Project emedit
  2.     Early Morning Software
  3.     Copyright ⌐ 1993. All Rights Reserved.
  4.  
  5.     SUBSYSTEM:    emedit.exe Application
  6.     FILE:         confirm.cpp
  7.     AUTHOR:       Ted Stockwell
  8.  
  9.  
  10.     OVERVIEW
  11.     ========
  12.     Source file for implementation of emeditConfirmDialog (TDialog).      
  13. */
  14.  
  15. #include <owl\owlpch.h>
  16. #pragma hdrstop
  17.  
  18. #include "confirm.h"
  19.  
  20.  
  21. //
  22. // Build a response table for all messages/commands handled
  23. // by the application.
  24. //
  25. DEFINE_RESPONSE_TABLE1(emeditConfirmDialog, TDialog)
  26. //{{emeditConfirmDialogRSP_TBL_BEGIN}}
  27.     EV_BN_CLICKED(IDC_ALLBUTTON, AllButtonClicked),
  28.     EV_BN_CLICKED(IDC_NOBUTTON, NoButtonClicked),
  29.     EV_BN_CLICKED(IDC_ONEBUTTON, OneButtonClicked),
  30.     EV_BN_CLICKED(IDC_YESBUTTON, YesButtonClicked),
  31. //{{emeditConfirmDialogRSP_TBL_END}}
  32. END_RESPONSE_TABLE;
  33.  
  34.  
  35. //{{emeditConfirmDialog Implementation}}
  36.  
  37.  
  38. emeditConfirmDialog::emeditConfirmDialog (TWindow* parent, TResId resId, TModule* module):
  39.     TDialog(parent, resId, module)
  40. {
  41.     // INSERT>> Your constructor code here.
  42.  
  43. }
  44.  
  45.  
  46. emeditConfirmDialog::~emeditConfirmDialog ()
  47. {
  48.     Destroy();
  49.  
  50.     // INSERT>> Your destructor code here.
  51.  
  52. }
  53.  
  54.  
  55. void emeditConfirmDialog::AllButtonClicked () { Destroy( IDC_ALLBUTTON ); }
  56.  
  57.  
  58. void emeditConfirmDialog::NoButtonClicked () { Destroy( IDC_NOBUTTON ); }
  59.  
  60.  
  61. void emeditConfirmDialog::OneButtonClicked () { Destroy( IDC_ONEBUTTON ); }
  62.  
  63.  
  64. void emeditConfirmDialog::YesButtonClicked () { Destroy( IDC_YESBUTTON ); }
  65.  
  66.