SelTransparentColorDlg.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #if !defined(AFX_SELTRANSPARENTCOLORDLG_H__9A8C06A1_62C4_477B_A811_14D68184E4DB__INCLUDED_)
  2. #define AFX_SELTRANSPARENTCOLORDLG_H__9A8C06A1_62C4_477B_A811_14D68184E4DB__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SelTransparentColorDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CSelTransparentColorDlg dialog
  10. class CSelTransparentColorDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CSelTransparentColorDlg(CWnd* pParent = NULL); // standard constructor
  15. void SetBitmap(BYTE *pData,BYTE*palette,int nWidth,int nHeight);
  16. BYTE m_transparentColorIndex;
  17. // Dialog Data
  18. //{{AFX_DATA(CSelTransparentColorDlg)
  19. enum { IDD = IDD_DIALOG_SEL_TRANSPARENT_COLOR };
  20. // NOTE: the ClassWizard will add data members here
  21. //}}AFX_DATA
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CSelTransparentColorDlg)
  25. protected:
  26. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. protected:
  30. BYTE *m_pData;
  31. BYTE *m_palette;
  32. int m_nWidth;
  33. int m_nHeight;
  34. // Generated message map functions
  35. //{{AFX_MSG(CSelTransparentColorDlg)
  36. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  37. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  38. virtual void OnOK();
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. };
  42. //{{AFX_INSERT_LOCATION}}
  43. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  44. #endif // !defined(AFX_SELTRANSPARENTCOLORDLG_H__9A8C06A1_62C4_477B_A811_14D68184E4DB__INCLUDED_)