38 lines
759 B
C++
38 lines
759 B
C++
#pragma once
|
|
#include "singleton.h"
|
|
#include "resource.h"
|
|
|
|
#ifdef EARTHWORM_EXPORT
|
|
#define DLLIMPEXP __declspec(dllexport)
|
|
#else
|
|
#define DLLIMPEXP __declspec(dllimport)
|
|
#endif
|
|
|
|
|
|
class DLLIMPEXP CSLTDlg : public CDialog
|
|
{
|
|
DECLARE_DYNAMIC(CSLTDlg)
|
|
|
|
public:
|
|
CSLTDlg(CWnd* pParent = NULL);
|
|
virtual ~CSLTDlg();
|
|
|
|
enum { IDD = IDD_DLG_SLT };
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
virtual BOOL OnInitDialog();
|
|
DECLARE_MESSAGE_MAP()
|
|
afx_msg void OnPaint();
|
|
afx_msg LONG_PTR onAcadKeepFocus(UINT_PTR, LONG_PTR);
|
|
void refresh(CWnd *pParent);
|
|
public:
|
|
void setPicture(LPCTSTR pszPath, CWnd *pParent);
|
|
bool isSamePicture(LPCTSTR pszPath);
|
|
private:
|
|
CString m_sPicturePath;
|
|
HBITMAP m_hBitmap;
|
|
};
|
|
|
|
typedef Singleton<CSLTDlg> g_PictrueDlg;
|