#if !defined(AFX_TEXTURELIBDIAG_H__1B275D1F_0C5E_11D3_A5F1_00902712C9AE__INCLUDED_)
#define AFX_TEXTURELIBDIAG_H__1B275D1F_0C5E_11D3_A5F1_00902712C9AE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TextureLibDiag.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CTextureLibDiag dialog
#define MAXTEXTURES 2048
#define PREVIEWSZE 32

class CTextureLibDiag : public CDialog
{
// Construction
public:
	BOOL OnIdle();
	void RefreshList();
	CTextureLibDiag(CWnd* pParent = NULL);   // standard constructor
	CImageList	ImgLst;
	CBitmap	UnLoadedBmp;
	CString ImageName[MAXTEXTURES];
	bool ImgLoaded[MAXTEXTURES];
	int	ImgTot;
	int AddImage(CString fname);
	int GetIndex(CString fname);
	bool LoadNextImage();
	// Dialog Data
	//{{AFX_DATA(CTextureLibDiag)
	enum { IDD = IDD_TLDIALOG };
	CListCtrl	m_TextureList;
	CString	m_TexturePath;
	CString	m_TSpace;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTextureLibDiag)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTextureLibDiag)
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnAdd();
	virtual BOOL OnInitDialog();
	afx_msg void OnBegindragTexturelist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnChangepath();
	afx_msg void OnDelete();
	afx_msg void OnAdd1bit();
	afx_msg void OnAddmipmask();
	afx_msg void OnUpdate();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TEXTURELIBDIAG_H__1B275D1F_0C5E_11D3_A5F1_00902712C9AE__INCLUDED_)
