]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - tools/src/tools/configtool/common/win32/stdafx.h
Initial revision
[karo-tx-redboot.git] / tools / src / tools / configtool / common / win32 / stdafx.h
1 //####COPYRIGHTBEGIN####
2 //                                                                          
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
5 //
6 // This program is part of the eCos host tools.
7 //
8 // This program is free software; you can redistribute it and/or modify it 
9 // under the terms of the GNU General Public License as published by the Free 
10 // Software Foundation; either version 2 of the License, or (at your option) 
11 // any later version.
12 // 
13 // This program is distributed in the hope that it will be useful, but WITHOUT 
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
15 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for 
16 // more details.
17 // 
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc., 
20 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 //
22 // ----------------------------------------------------------------------------
23 //                                                                          
24 //####COPYRIGHTEND####
25 // stdafx.h : include file for standard system include files,
26 //  or project specific include files that are used frequently, but
27 //      are changed infrequently
28 //
29 #ifndef _ECOS_STDAFX_H
30 #define _ECOS_STDAFX_H
31
32 #define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers
33
34 #include <afxwin.h>         // MFC core and standard components
35 #include <afxext.h>         // MFC extensions
36 #ifndef _AFX_NO_AFXCMN_SUPPORT
37 #include <afxcmn.h>                     // MFC support for Windows Common Controls
38 #endif // _AFX_NO_AFXCMN_SUPPORT
39 #include <windowsx.h> // for GET_X_LPARAM, GET_Y_LPARAM
40
41 #pragma warning (disable: 4290) // C++ Exception Specification ignored
42 #pragma warning (disable: 4786) // long debug symbols
43 #pragma warning (disable: 4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
44
45 #ifdef PLUGIN
46 typedef CMenu Menu;
47 #else
48 class BCMenu;
49 typedef BCMenu Menu;
50 #endif
51
52 enum BrowserType { Internal, AssociatedExternal, CustomExternal };
53 enum WhereType {InMacro, InName, InDesc, InCurrentValue, InDefaultValue};
54 enum RuleViewType {ViewFailing,ViewAll,ViewNone};
55 typedef __int64 ItemIntegerType;
56
57 // "Good practice" delete - sets argument to NULL
58 #define deleteZ(x)  {delete x;x=0;}
59 #define deleteZA(x) {delete [] x;x=0;}
60
61 #undef TRACE // previous definition in mfc\include\afx.h
62 #define TRACE ::__Trace
63 extern void __Trace (LPCTSTR pszFormat,...);
64
65
66 #endif