home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / dlgcbr32 / modeless.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.8 KB  |  67 lines

  1. // Modeless.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14.  
  15. /*****************************************************************************
  16.   Purpose:
  17.     Interface for CModelessDialog, a reusable class for creating modeless
  18.     dialogs.
  19.  
  20.   Functions:
  21.     CModelessDialog::CModelessDialog()      -- constructor
  22.     CModelessDialog::~CModelessDialog()     -- destructor
  23.     CModelessDialog::OnCancel()             -- WM_COMMAND IDCANCEL handler
  24.     CModelessDialog::OnOK()                 -- WM_COMMAND IDOK handler
  25.     CModelessDialog::PostNcDestroy()        -- called after WM_NCDESTROY
  26.  
  27.   Development Team:
  28.     Mary Kirtland
  29.   Ported to 32-bit by:
  30.     Mike Hedley
  31.   Created by Microsoft Product Support Services, Premier ISV Support
  32.   Copyright (c) 1998 Microsoft Corporation. All rights reserved.
  33. \****************************************************************************/
  34.  
  35. #ifndef __MODELESS_H__
  36. #define __MODELESS_H__
  37.  
  38. class CModelessDialog : public CDialog
  39. {
  40.     DECLARE_DYNAMIC(CModelessDialog)
  41.  
  42. // Construction
  43. public:
  44.     CModelessDialog();
  45.  
  46. // Overrides
  47.     // ClassWizard generated virtual function overrides
  48.     //{{AFX_VIRTUAL(CModelessDialog)
  49.     public:
  50.     virtual void OnCancel();
  51.     virtual void OnOK();
  52.     virtual void PostNcDestroy();
  53.     //}}AFX_VIRTUAL
  54.  
  55. // Implementation
  56. public:
  57.     virtual ~CModelessDialog();
  58.  
  59. protected:
  60.     // Generated message map functions
  61.     //{{AFX_MSG(CModelessDialog)
  62.     //}}AFX_MSG
  63.     DECLARE_MESSAGE_MAP()
  64. };
  65.  
  66. #endif //__MODELESS_H__
  67.