1 // ************************************************************************************** 2 // File: LeashMessageBox.h 3 // By: Arthur David Leather 4 // Created: 12/02/98 5 // Copyright @1998 Massachusetts Institute of Technology - All rights reserved. 6 // Description: H file for LeashMessageBox.cpp. Contains variables and functions 7 // for the Leash Special Message Dialog Box 8 // 9 // History: 10 // 11 // MM/DD/YY Inits Description of Change 12 // 12/02/98 ADL Original 13 // ************************************************************************************** 14 15 16 #if !defined(AFX_LEASHMESSAGEBOX_H__865865B6_56F6_11D2_945F_0000861B8A3C__INCLUDED_) 17 #define AFX_LEASHMESSAGEBOX_H__865865B6_56F6_11D2_945F_0000861B8A3C__INCLUDED_ 18 19 #if _MSC_VER > 1000 20 #pragma once 21 #endif // _MSC_VER > 1000 22 // LeashMessageBox.h : header file 23 // 24 25 ///////////////////////////////////////////////////////////////////////////// 26 // CLeashMessageBox dialog 27 28 #include "windows.h" 29 30 class CLeashMessageBox : public CDialog 31 { 32 private: 33 static DWORD m_dwTime; 34 static void CALLBACK MessageBoxTimer(HWND hwnd, UINT uiMsg, UINT_PTR idEvent, DWORD dwTime); 35 36 // Construction 37 public: 38 CLeashMessageBox(CWnd* pParent = NULL, const CString msgText = "Place your message here!!!", 39 DWORD dwTime = 0); 40 ~CLeashMessageBox(); 41 42 // Dialog Data 43 //{{AFX_DATA(CLeashMessageBox) 44 enum { IDD = IDD_MESSAGE_BOX }; 45 CString m_messageText; 46 //}}AFX_DATA 47 48 49 // Overrides 50 // ClassWizard generated virtual function overrides 51 //{{AFX_VIRTUAL(CLeashMessageBox) 52 protected: 53 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 54 //}}AFX_VIRTUAL 55 56 // Implementation 57 protected: 58 59 // Generated message map functions 60 //{{AFX_MSG(CLeashMessageBox) 61 virtual BOOL OnInitDialog(); 62 virtual void OnOK(); 63 //}}AFX_MSG 64 DECLARE_MESSAGE_MAP() 65 }; 66 67 //{{AFX_INSERT_LOCATION}} 68 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 69 70 #endif // !defined(AFX_LEASHMESSAGEBOX_H__865865B6_56F6_11D2_945F_0000861B8A3C__INCLUDED_) 71