📄 dlghistogram.h
字号:
#if !defined(AFX_DLGHISTOGRAM_H__B123ADD1_A5C7_4AD6_B481_362746BBD5A6__INCLUDED_)
#define AFX_DLGHISTOGRAM_H__B123ADD1_A5C7_4AD6_B481_362746BBD5A6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgHistogram.h : header file
//
#include "dibapi.h"
#include "imports\btnst.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgHistogram dialog
class CDlgHistogram : public CDialog
{
private:
CButtonST m_btOK;
protected:
const HDIB m_hDIB;
int m_iHistogram[256];
int m_iRed[256];
int m_iGreen[256];
int m_iBlue[256];
int m_iColors;
int m_iPixels;
double m_dMean;
double m_dStdDev;
int m_iMin;
int m_iMax;
double m_dShang;
CRect m_rcHist;
BYTE m_iStart;
BYTE m_iEnd;
// Construction
public:
CDlgHistogram(HDIB hDIB, CWnd* pParent = NULL);
// Dialog Data
//{{AFX_DATA(CDlgHistogram)
enum { IDD = IDD_HISTOGRAM };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgHistogram)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void DrawHistogram(CDC *pDC);
// Generated message map functions
//{{AFX_MSG(CDlgHistogram)
afx_msg void OnPaint();
virtual BOOL OnInitDialog();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CDlgHistogram(CWnd* pParent = NULL); // standard constructor
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGHISTOGRAM_H__B123ADD1_A5C7_4AD6_B481_362746BBD5A6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -