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