www.pudn.com > ImgSeg.rar > DlgIntensity.h


#if !defined(AFX_DLGINTENSITY_H__E343E697_66B5_11D6_9386_00E04C395D54__INCLUDED_) 
#define AFX_DLGINTENSITY_H__E343E697_66B5_11D6_9386_00E04C395D54__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// DlgIntensity.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgIntensity dialog 
 
class CDlgIntensity : public CDialog 
{ 
// Construction 
public: 
	int m_iIsDraging;         //当前鼠标状态,0未拖动,1正在拖动下限,2正在拖动上限    
	CRect m_MouseRect;        //响应鼠标事件的矩形区域 
	LONG m_lHeight;           //位图高度 
	LONG m_lWidth;            //位图宽度 
	unsigned char* m_lpBits;           //指向当前位图象素的指针 
	LONG m_lGrayCount[256];   //各个灰度值计数 
	CDlgIntensity(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CDlgIntensity) 
	enum { IDD = IDD_DLG_INTENSTY }; 
	int		m_iLowGray; 
	int		m_iUpGray; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDlgIntensity) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CDlgIntensity) 
	afx_msg void OnOk(); 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnChangeLowgray(); 
	afx_msg void OnChangeUpgray(); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnPaint(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DLGINTENSITY_H__E343E697_66B5_11D6_9386_00E04C395D54__INCLUDED_)