//****************************************************************************
// Module: Chat2000.EXE
// File: Globals.h
//
//
// Copyright (c) Microsoft Corporation 1995-1997
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//****************************************************************************
#ifndef _GLOBALS_
#define _GLOBALS_
#define IDC_OCX_CHAT1000
//UI options
#define UI_OPT_SEND_BUTTON0x0001
#defineUI_OPT_WHISPER_BUTTON0x0002
#defineUI_OPT_PARTICIPANT_LISTBOX0x0004
#defineUI_OPT_RECEIVE_TEXTBOX0x0008
#defineUI_OPT_SEND_TEXTBOX0x0010
#defineUI_OPT_INFORM_JOIN0x0020
#defineUI_OPT_INFORM_LEAVE0x0040
#defineUI_OPT_INFORM_MEMCHG0x0080
#defineUI_OPT_INSERT_BLANK0x0100
#defineUI_OPT_DISPLAY_ERRORMESSAGES0x0200
#defineUI_OPT_ALLOW_RESIZING0x0400
#defineUI_OPT_SENSITIVE_URLS0x0800
#define UI_OPT_ALL0x0FFF
//Flags for EnterRoom
#define ENTER_FLAG_JOIN_CREATE0x0001
#defineENTER_FLAG_DO_NOT_EXPOSE0x0002
#defineENTER_FLAG_READ_ONLY0x0004
#defineENTER_FLAG_MIC_ONLY0x0008
#defineENTER_FLAG_AUTHENTICATED_ONLY0x0010
#defineENTER_FLAG_AUTHENTICATED_CAN_TALK0x0020
//Type for EnterRoom
#define ENTER_TYPE_ANY_USER0x0001
#defineENTER_TYPE_HOST_CAN_CHANGE_TOPIC0x0002
#defineENTER_TYPE_LOGGED_USERS_ONLY0x0004
#defineENTER_TYPE_DISABLE_WHISPERING0x0008
#defineENTER_TYPE_STRONG_HOST0x0010
#defineENTER_TYPE_SPECTATOR_DEFAULT0x0020
//States
#define STATE_DISCONNECTED0x0001
#defineSTATE_CONNECTING0x0002
#defineSTATE_CONNECTED0x0003
//Participant states
#define PARTICIPANT_STATE_HOST0x0001
#definePARTICIPANT_STATE_PARTICIPANT0x0002
#definePARTICIPANT_STATE_SPECTATOR0x0004
#definePARTICIPANT_STATE_NO_WISPER0x0008
#definePARTICIPANT_STATE_IGNORED0x0010
//metrix convertions macros
#define HIMETRIC_PER_INCH 2540
#define MAP_PIX_TO_LOGHIM(x,ppli) ( (HIMETRIC_PER_INCH*(x) + ((ppli)>>1)) / (ppli) )
#define MAP_LOGHIM_TO_PIX(x,ppli) ( ((ppli)*(x) + HIMETRIC_PER_INCH/2) / HIMETRIC_PER_INCH )
#endif _GLOBALS_