StdAfx.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // stdafx.h : include file for standard system include files, or project
  2. // specific include files that are used frequently, but are changed infrequently
  3. //
  4. /////////////////////////////////////////////////////////////////////////////
  5. //
  6. // This file is part of ResizableLib
  7. // https://github.com/ppescher/resizablelib
  8. //
  9. // Copyright (C) 2000-2015 by Paolo Messina
  10. // mailto:ppescher@hotmail.com
  11. //
  12. // The contents of this file are subject to the Artistic License 2.0
  13. // http://opensource.org/licenses/Artistic-2.0
  14. //
  15. // If you find this code useful, credits would be nice!
  16. //
  17. /////////////////////////////////////////////////////////////////////////////
  18. #if !defined(AFX_RESIZABLESTDAFX_H__INCLUDED_)
  19. #define AFX_RESIZABLESTDAFX_H__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // Set max target Windows platform
  24. #define WINVER 0x0501
  25. #define _WIN32_WINNT 0x0501
  26. // Use target Common Controls version for compatibility
  27. // with CPropertyPageEx, CPropertySheetEx
  28. #define _WIN32_IE 0x0500
  29. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  30. #include <afxwin.h> // MFC core and standard components
  31. #include <afxext.h> // MFC extensions
  32. #include <afxcmn.h> // MFC support for Windows Common Controls
  33. #include <shlwapi.h> // DLL Version support
  34. #if _WIN32_WINNT >= 0x0501
  35. #include <uxtheme.h> // Windows XP Visual Style API support
  36. #endif
  37. #ifndef WS_EX_LAYOUTRTL
  38. #pragma message("Please update your Windows header files, get the latest SDK")
  39. #pragma message("WinUser.h is out of date!")
  40. #define WS_EX_LAYOUTRTL 0x00400000
  41. #endif
  42. #ifndef WC_BUTTON
  43. #pragma message("Please update your Windows header files, get the latest SDK")
  44. #pragma message("CommCtrl.h is out of date!")
  45. #define WC_BUTTON TEXT("Button")
  46. #define WC_STATIC TEXT("Static")
  47. #define WC_EDIT TEXT("Edit")
  48. #define WC_LISTBOX TEXT("ListBox")
  49. #define WC_COMBOBOX TEXT("ComboBox")
  50. #define WC_SCROLLBAR TEXT("ScrollBar")
  51. #endif
  52. #define RSZLIB_NO_XP_DOUBLE_BUFFER
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_RESIZABLESTDAFX_H__INCLUDED_)