📄 dlgintensity.h
字号:
#if !defined(AFX_DLGINTENSITY_H__EA361A01_0AF6_44C0_8631_9CCA75D9A40F__INCLUDED_)
#define AFX_DLGINTENSITY_H__EA361A01_0AF6_44C0_8631_9CCA75D9A40F__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_pHistTemp;
BOOL m_bIsGray256;
int m_nGrayValue;
BOOL m_bIsInRect;
int m_iIsDraging;
int *m_pnHistogram;
CRect m_MouseRect;
CDlgIntensity(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgIntensity)
enum { IDD = IDD_DLG_Intensity };
CSpinButtonCtrl m_ctrlUpGraySpin;
CSpinButtonCtrl m_ctrlLowGraySpin;
CSpinButtonCtrl m_ctrlCurrentGraySpin;
UINT m_nCurrentGray;
long m_nCurrentPixelsNum;
int m_iLowGray;
int m_iUpGray;
int m_nHistogramType;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgIntensity)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
private:
CButton& GrayTypeRedRadio(){return *(CButton*)GetDlgItem(IDC_RED_RADIO);}
CButton& GrayTypeGreenRadio(){return *(CButton*)GetDlgItem(IDC_GREEN_RADIO);}
CButton& GrayTypeBlueRadio(){return *(CButton*)GetDlgItem(IDC_BLUE_RADIO);}
protected:
CImageObject *pImageObject;
BOOL m_bRMouseDown;
int m_nPenType;
// Generated message map functions
//{{AFX_MSG(CDlgIntensity)
afx_msg void OnBlueRadio();
afx_msg void OnChangeEditCurGray();
afx_msg void OnChangeEDITLowGray();
afx_msg void OnChangeEDITUpGray();
afx_msg void OnGreenRadio();
afx_msg void OnRedRadio();
afx_msg void OnHistogramtype();
virtual BOOL OnInitDialog();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
virtual void OnOK();
afx_msg void OnPaint();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}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__EA361A01_0AF6_44C0_8631_9CCA75D9A40F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -