www.pudn.com > Image_Manage.rar > DlgGrid.h
#if !defined(AFX_DLGGRID_H__D87856A3_57B2_4993_AACA_BCA225528B48__INCLUDED_)
#define AFX_DLGGRID_H__D87856A3_57B2_4993_AACA_BCA225528B48__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgGrid.h : header file
//
#define RT_WIDTH 40
/////////////////////////////////////////////////////////////////////////////
// CDlgGrid dialog
class CDlgGrid : public CDialog
{
// Construction
public:
void DrawGrid1(RECT rect);
void DrawGrid2(RECT rect);
void DrawGrid3(RECT rect);
void DrawGrid4(RECT rect);
void DrawGrid5(RECT rect);
void DrawGrid6(RECT rect);
void DrawGrid7(RECT rect);
void DrawGrid8(RECT rect);
void DrawGrid9(RECT rect);
void DrawGrid10(RECT rect);
void DrawGrid11(RECT rect);
void DrawGrid12(RECT rect);
void DrawGrid(RECT rect,int num);
void DrawGrids(RECT rtSrc, RECT rtDst);
CDlgGrid(CWnd* pParent = NULL); // standard constructor
int Oldx;
int Oldy;
BOOL bLButtonDown;
CRect rtSel;
CRect rcDest;
CRect rcDIB;
float dxy;
// 像素位数
int nBitCount;
// 获取DIB宽度
int cxDIB;
// 获取DIB高度
int cyDIB;
// 找到DIB图像象素起始位置
LPSTR lpDIBBits;
// Dialog Data
//{{AFX_DATA(CDlgGrid)
enum { IDD = IDD_DLG_Grid };
short m_pixels;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgGrid)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgGrid)
virtual void OnOK();
afx_msg void OnPaint();
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 BOOL OnInitDialog();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGGRID_H__D87856A3_57B2_4993_AACA_BCA225528B48__INCLUDED_)