win-xp-sp2-20040325
[openafs.git] / src / WINNT / win9xpanel / MyFrame.h
1 /* Copyright 2000, International Business Machines Corporation and others.
2         All Rights Reserved.
3  
4         This software has been released under the terms of the IBM Public
5         License.  For details, see the LICENSE file in the top-level source
6         directory or online at http://www.openafs.org/dl/license10.html
7 */
8 // MyFrame.h : header file
9 //
10
11 /////////////////////////////////////////////////////////////////////////////
12 // CMyFrame frame
13 #ifndef _MYFRAME_H_
14 #define _MYFRAME_H_
15
16 #if _MSC_VER > 1000
17 #pragma once
18 #endif // _MSC_VER > 1000
19
20 #ifndef __AFXWIN_H__
21         #error include 'stdafx.h' before including this file for PCH
22 #endif
23
24 #include "resource.h"       // main symbols
25 #define LOGSHOWWINDOW 1
26 #define LOGSHOWPRINT 2
27 #define ONPARMCLOSE 0
28 #define ONPARMDISCONNECT 1
29 #define ONPARMCONNECT 2
30
31 class CProgBarDlg;
32 class CDatalog;
33
34 ///////////////////// CMyThread stuff //////////////////////////
35
36 class CMyUIThread: public CWinThread {
37         DECLARE_DYNCREATE(CMyUIThread)
38         CMyUIThread();           // protected constructor used by dynamic creation
39 protected:
40         CDatalog *m_pLog;
41         CFile m_cPrint;
42         CFileException m_cPrintException;
43 // Attributes
44 public:
45         static HANDLE m_hEventThreadKilled;
46
47         void operator delete(void* p);
48
49 // Operations
50 public:
51
52 // Overrides
53         // ClassWizard generated virtual function overrides
54         //{{AFX_VIRTUAL(CMyUIThread)
55         public:
56         virtual BOOL InitInstance();
57         virtual int ExitInstance();
58         //}}AFX_VIRTUAL
59
60 // Implementation
61 protected:
62         virtual ~CMyUIThread();
63
64         // Generated message map functions
65         //{{AFX_MSG(CMyUIThread)
66                 // NOTE - the ClassWizard will add and remove member functions here.
67         //}}AFX_MSG
68         afx_msg void OnParm( UINT, LONG ); 
69         afx_msg void OnConnect( UINT, LONG ); 
70         afx_msg void OnLog( UINT, LONG ); 
71         DECLARE_MESSAGE_MAP()
72 };
73 //{{AFX_INSERT_LOCATION}}
74 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
75
76 #endif