home *** CD-ROM | disk | FTP | other *** search
/ PC Administrator / spravce.iso / TaskModule / src / Mydialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-31  |  2.6 KB  |  62 lines

  1. // MyDialog.h: interface for the CMyDialog class.
  2. //
  3. /*
  4. Copyright 2001 Anish Mistry. All rights reserved.
  5.  
  6. Redistribution and use in source and binary forms, with or without modification,
  7. are permitted provided that the following conditions are met:
  8.  
  9.    1. Redistributions of source code must retain the above copyright notice, 
  10.    this list of conditions and the following disclaimer.
  11.    2. Redistributions in binary form must reproduce the above copyright notice,
  12.    this list of conditions and the following disclaimer in the documentation 
  13.    and/or other materials provided with the distribution.
  14.  
  15. THIS SOFTWARE IS PROVIDED BY ANISH MISTRY ``AS IS'' AND ANY EXPRESS OR IMPLIED 
  16. WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
  17. AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS 
  18. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
  19. OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  20. GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  21. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
  22. TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  23. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24.  
  25. The views and conclusions contained in the software and documentation are those
  26. of the authors and should not be interpreted as representing official policies,
  27. either expressed or implied, of Anish Mistry or AM Productions.
  28.  
  29. * Variation of the FreeBSD License. http://www.freebsd.org/copyright/freebsd-license.html
  30. */
  31. //////////////////////////////////////////////////////////////////////
  32.  
  33. #if !defined(AFX_MYDIALOG_H__0453164E_4B81_4472_8B0A_7CC3D26C831A__INCLUDED_)
  34. #define AFX_MYDIALOG_H__0453164E_4B81_4472_8B0A_7CC3D26C831A__INCLUDED_
  35.  
  36. #if _MSC_VER > 1000
  37. #pragma once
  38. #endif // _MSC_VER > 1000
  39.  
  40. #include "Thunk.h"
  41.  
  42. class CMyDialog  
  43. {
  44. protected:
  45.     virtual LRESULT DlgProc(HWND hDlg,UINT nMessage,WPARAM wParam,LPARAM lParam);    // this must be the first declared virtual function
  46.     ThunkData m_Thunk;
  47. public:
  48.     virtual HWND GetSafeHwnd();
  49.     bool EndDialog(unsigned long int nID);
  50.     virtual bool Init(HINSTANCE hInstance,HWND hParent,unsigned long nTemplateID,bool bDoModal = true);
  51.     CMyDialog();
  52.     virtual ~CMyDialog();
  53. protected:
  54.     virtual bool OnInitDialog(HWND hDlg);
  55.     virtual bool OnCommand(WPARAM wParam, LPARAM lParam);
  56.  
  57.     HWND m_hDlg;
  58.     HINSTANCE m_hInstance;
  59. };
  60.  
  61. #endif // !defined(AFX_MYDIALOG_H__0453164E_4B81_4472_8B0A_7CC3D26C831A__INCLUDED_)
  62.