// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__8F085AD6_94FE_11D3_BEF1_DCACE325AC16__INCLUDED_)
#define AFX_STDAFX_H__8F085AD6_94FE_11D3_BEF1_DCACE325AC16__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#ifndef WINVER
#define WINVER 0x0502
#endif

#if _MSC_VER >= 1400
#define _CRT_SECURE_NO_DEPRECATE
#endif

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxcview.h>
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <afxole.h>

#include <aplCryptManager.h>

#include <apl_gui.h>
#include <apl_api.h>
#include <AplGuiEx.h>
#include <aplValue.h>
//#include <map>

#include "psm.h"
#include "aplListView.h"
#include "aplTreeItem.h"
#include "psmdoc.h"
#include "NavigatorView.h"
#include "TabView.h"
#include "messages.h"
#include "dictionary.h"
#include "defence.h"
#include "aplNetStepData.h"

extern CString m_CurTabName;//мощная подпорка для закладок почты

//#define ENABLE_ASH_MO  // Активитует  обраюотку параметра /ash-mo включающего режим АСХ-МО

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


void StartBusy();
void StopBusy();

extern void gSetPsmResourceHandle();

#ifdef _UNICODE
	#define ID_NO_ACCESS_RIGHT  APL_T("Нет прав доступа")
#else
	#define ID_NO_ACCESS_RIGHT  ID_NO_ACCESS_RIGHT_RES
#endif

/*
typedef std::map<CString,CString> mssMap;
typedef mssMap::iterator mssMapIt;
typedef std::map<CString,CaplInstance*> msciMap;
typedef msciMap::iterator msciMapIt;

//если хочется вложить любое из выражений друг в друга - ставьте фигурные скобки
#define forr(it,ms) for((it)=(ms).begin();(it)!=(ms).end();++(it))
#define ifnend(it,ms,ke) if(((it)=(ms).find(ke))!=(ms).end())
#define ifend(it,ms,ke) if(((it)=(ms).find(ke))==(ms).end())
#define iffindinsertmap(it,ms,ke,pa) ifend(it,ms,ke)(it)=(ms).insert(std::make_pair((ke),(pa))).first;
#define iffindinsertreplacemap(it,ms,ke,pa) iffindinsertmap(it,ms,ke,pa)else(it)=(ms).insert(std::make_pair((ke),(pa))).first;
*/

/*
template <class T>
void mystdcopy (T& i1, const T& i2)
{
	i1.clear();
	std::copy(i2.begin(),i2.end(),std::inserter(i1,i1.begin()));
}
template <class T>
void mycstdcopy (T& i1,const T& i2)
{
	i1.clear();
	std::copy(i2.begin(),i2.end(),std::inserter(i1,i1.begin()));
}
*/
#endif // !defined(AFX_STDAFX_H__8F085AD6_94FE_11D3_BEF1_DCACE325AC16__INCLUDED_)
