00001 #ifndef __GUIDefines__
00002 #define __GUIDefines__
00003
00022 #include <Basics/CCountedObject.hpp>
00023
00027 #ifdef WIN32
00028
00029
00030 #ifndef CS_DROPSHADOW
00031 #define CS_DROPSHADOW 0x00020000
00032 #endif
00033
00034 #ifndef WS_EX_LAYERED
00035 #define WS_EX_LAYERED 0x80000
00036 #endif
00037
00038 #ifndef WS_EX_NOACTIVATE
00039 #define WS_EX_NOACTIVATE 0x08000000L
00040 #endif
00041
00042 #ifndef LWA_COLORKEY
00043 #define LWA_COLORKEY 1
00044 #endif
00045
00046 #ifndef LWA_ALPHA
00047 #define LWA_ALPHA 2
00048 #endif
00049
00050 #ifndef GET_WHEEL_DELTA_WPARAM
00051 #define GET_WHEEL_DELTA_WPARAM(wparam) ((short)HIWORD (wparam))
00052 #endif
00053
00054 #ifndef WHEEL_DELTA
00055 #define WHEEL_DELTA 120
00056 #endif
00057
00058 #ifndef IDC_TEXT
00059 #define IDC_TEXT 1000
00060 #endif
00061
00062 #ifndef GET_X_LPARAM
00063 #define GET_X_LPARAM(lParam) ((int)(short)LOWORD(lParam))
00064 #endif
00065
00066 #ifndef GET_Y_LPARAM
00067 #define GET_Y_LPARAM(lParam) ((int)(short)HIWORD(lParam))
00068 #endif
00069
00070
00071
00072
00073
00074 typedef DWORD (WINAPI *SETLAYERATTRIBUTE)(HWND, DWORD, BYTE, DWORD);
00075
00076
00077 typedef BOOL (WINAPI *ALPHABLEND)(HDC, int, int, int, int, HDC, int, int, int, int, BLENDFUNCTION);
00078
00079
00080
00081
00082 #pragma warning (disable : 4311) // Truncation from CToolTip * to LONG
00083 #pragma warning (disable : 4312) // Conversion from LONG to CToolTip * of greater size
00084 #pragma warning (disable : 4244) // Conversion from 'WPARAM' to 'int', possible loss of data
00085 #pragma warning (disable : 4244) // conversion from LONG_PTR to LONG possilbe truncation of data
00086 #pragma warning (disable : 4204) // vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
00087 #pragma warning (disable : 4326) // return type of 'main' should be 'int or void' instead of 'AEffect *'
00088 #pragma warning (disable : 4017) // DESCRIPTION statement not supported for the target platform; ignored
00089
00090 #else
00091
00092
00093 #endif
00094
00098 #endif // End of GUIDefines.h