#pragma once
#include <afxwin.h>

#define WM_HWS_PREVIEW_CLICK     (WM_APP + 101)
#define WM_HWS_PREVIEW_DBLCLICK  (WM_APP + 102)
#define WM_HWS_PREVIEW_RBUTTON   (WM_APP + 103)

class CPreviewPane : public CWnd
{
public:
    int m_index = 0;
    bool m_selected = false;
    bool m_active = false;
    bool CreatePane(CWnd* parent, int index);
protected:
    afx_msg void OnPaint();
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
    afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
    DECLARE_MESSAGE_MAP()
};
