// GigaCam.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols
#include "GigaCam_i.h"

// CGigaCamApp:
// See GigaCam.cpp for the implementation of this class
//

class CLogFile
{
public:
	DWORD num;
	CStdioFile file;
	void Write(DWORD);
};

class CGigaCamApp : public CWinApp
{
public:
	CGigaCamApp();

// Overrides
	public:
	virtual BOOL InitInstance();

// Implementation

	DECLARE_MESSAGE_MAP()
	BOOL ExitInstance(void);

private:

	HDRAWDIB m_hdd;
	bool m_bHS;

public:
	BOOL m_bAdjustMode;
	int m_iTestMode;
	int m_iTestPattern;
	int m_iWFMInterval;
	WPARAM m_hWindowVB;
	bool m_bAutoAdjustGain;

	CLogFile m_Log;

	HDRAWDIB GetHDD(){ return m_hdd; };
	bool UseHS(){ return m_bHS; };

protected:

	void DetectHS();

	BOOL LogStart();
	void LogEnd();
};

extern CGigaCamApp theApp;