📄 intensitydlg.h
字号:
#if !defined(AFX_INTENSITYDLG_H__296CE333_0492_40D7_9497_7B77918BAEAD__INCLUDED_)
#define AFX_INTENSITYDLG_H__296CE333_0492_40D7_9497_7B77918BAEAD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// IntensityDLG.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CIntensityDlg dialog
class CIntensityDlg : public CDialog
{
// Construction
public:
CIntensityDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
public:
// 当前鼠标拖动状态,0表示未拖动,1表示正在拖动下限,2表示正在拖动上限。
int m_iIsDraging;
CRect m_MouseRect; //相应鼠标时间的矩形区域
LONG m_lHeight; // DIB的高度
LONG m_lWidth; // DIB的宽度
char * m_lpDIBBits; // 指向当前DIB象素的指针
LONG m_lCount[256]; // 各个灰度值的计数
//{{AFX_DATA(CIntensityDlg)
enum { IDD = IDD_DLG_INTENSITY };
int m_iLowGray;
int m_iUpGray;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CIntensityDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CIntensityDlg)
afx_msg void OnPaint();
afx_msg void OnKillfocusEditLowgray();
afx_msg void OnKillfocusEditUpgray();
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
virtual BOOL OnInitDialog();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_INTENSITYDLG_H__296CE333_0492_40D7_9497_7B77918BAEAD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -