/***********************************/
/* win_trans.h                     */
/*                                 */
/* header for windows transparency */
/*                                 */
/* loïc berthelot    janv 2004     */
/***********************************/


#ifndef _WIN_TRANS_H_
#define _WIN_TRANS_H_

#include <windows.h>
#include "objstr.h"
#include "x/scolplugin.h"

//
//$LB (16/12/2003) : usefull for transparent windows
//
#define WS_EX_LAYERED 0x80000 
#define LWA_COLORKEY 1 
#define LWA_ALPHA 2 
typedef DWORD (WINAPI *PSLWA)(HWND, DWORD, BYTE, DWORD);
typedef BOOL  (WINAPI *PGLWA)(HWND,	DWORD*, BYTE*, DWORD*);

#define WN_TRANS_COLOR LWA_COLORKEY
#define WN_TRANS_ALPHA LWA_ALPHA

//$LB (16/12/2003)
int InitWindowTransparency(PtrObjWindow W);

//$LB (16/12/2003) 
int _SETwindowTransparency (mmachine m);
//$LB (16/12/2003)
int _SIMULATEwindowTransparency (mmachine m);


#endif