// YLGL.h : main header file for the YLGL application
//

#if !defined(AFX_YLGL_H__88616122_4218_48A0_9752_26D0146598CB__INCLUDED_)
#define AFX_YLGL_H__88616122_4218_48A0_9752_26D0146598CB__INCLUDED_

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

#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "MainFrm.h"
#include "MainFrimDlg2.h"
#include "resource.h"       // main symbols
#include "SPBox.h"
#include "./helper/ffsco.h"
#include "refreshtable.h"
#include "BtnST.h"
#include "IsGrowthTx.h"
#include "SearchFilter.h"

extern void GongToLong(CString &date);
extern void LongToGong(CString &date);
extern BOOL CheckBadWords2(CString str,BOOL bMsg=0);
extern CString GetModifyTime(CString path);
extern void SetComboHei(CComboBox *pCombo, int hei);

extern BOOL LoadLia(CString path, BYTE **pData, BYTE **pDataBegin, Image **pBk, HWND hwnd);
//extern CString GetDateTime(Image *image);
extern DEVMODE g_dm;

extern CRect g_rc;
extern CMainFrame *g_pMainWnd;
extern MainFrimDlg2 *g_pMainWnd2;

extern BOOL CALLBACK EnumChildProc(HWND hwnd,LPARAM lParam);
extern void GetSavePath(CString &path);

extern float GetPointScale();
extern float GetPointScale2();
extern void WriteLog(CString str);
extern CString GetLogStr(CString str);
extern void ListToXLS(CListCtrl *pList, CString savepath, int mode);

class CYLGLApp : public CWinApp
{	
	ULONG_PTR           gdiplusToken;
public:
	CYLGLApp();

public:
	virtual BOOL InitInstance();
	virtual int  ExitInstance();
	virtual int  DoMessageBox(LPCTSTR lpszPrompt, UINT nType, UINT nIDPrompt);

	BOOL IsShareFolderExist(char *szServerName);

	afx_msg void OnAppAbout();
	DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_YLGL_H__88616122_4218_48A0_9752_26D0146598CB__INCLUDED_)