DlgImageScissor.h
上传用户:gzboli
上传日期:2013-04-10
资源大小:471k
文件大小:2k
- #if !defined(AFX_DLGIMAGESCISSOR_H__D476B95D_BCB2_41DE_A8E5_E39AD723E4ED__INCLUDED_)
- #define AFX_DLGIMAGESCISSOR_H__D476B95D_BCB2_41DE_A8E5_E39AD723E4ED__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DlgImageScissor.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CDlgImageScissor dialog
- #include "dibapi.h"
- #include "importsbtnst.h"
- //class CButtonST;
- class CDlgImageScissor : public CDialog
- {
- private:
- CButtonST m_btOK;
- CButtonST m_btCancel;
- // CPalette *m_pPalette;
- private:
- long m_iWidth;
- long m_iHeight;
- const HDIB m_hDIB;
- long m_iCorX;
- long m_iCorY;
- short m_iCorner;
- CPoint m_ptTracing;
- // Construction
- public:
- CDlgImageScissor(HDIB hDIB, CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CDlgImageScissor)
- enum { IDD = IDD_SCISSOR };
- UINT m_iZoom;
- long m_ibrX;
- long m_ibrY;
- long m_itlX;
- long m_itlY;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDlgImageScissor)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void DrawCorner();
- void DrawAll();
- // Generated message map functions
- //{{AFX_MSG(CDlgImageScissor)
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg void OnKillfocusEditZoom();
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- afx_msg void OnEditsSetFocus(UINT uID);
- afx_msg void OnEditsKillFocus(UINT uID);
- afx_msg void OnEditsMouseUp(UINT uID);
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DLGIMAGESCISSOR_H__D476B95D_BCB2_41DE_A8E5_E39AD723E4ED__INCLUDED_)