jpgdlg.h

来自「模拟电子课程的教学演示程序」· C头文件 代码 · 共 81 行

H
81
字号
#if !defined(AFX_JPGDLG_H__F1B2AF17_37B3_46D9_9C6A_DD75D2A91478__INCLUDED_)
#define AFX_JPGDLG_H__F1B2AF17_37B3_46D9_9C6A_DD75D2A91478__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// JpgDlg.h : header file
//

#include "xshadebutton.h"
/////////////////////////////////////////////////////////////////////////////
// CJpgDlg dialog

class CJpgDlg : public CDialog
{
// Construction
public:
	void CalcSize();
	


	void SetJpgPath(CString file);
	CJpgDlg(CWnd* pParent = NULL);   // standard constructor


	void Draw();
// Dialog Data
	//{{AFX_DATA(CJpgDlg)
	enum { IDD = IDD_DIALOG_JPG };
	CxShadeButton	m_OK;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CJpgDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	CSize m_backSize,m_showSize;
	CBitmap m_bmpShow;
    CBitmap m_bmpBack;
	CString m_strJpgFile;

	CPoint m_ptOld;
	BOOL m_bCanMove;
	BOOL m_bMouseDown;
    BOOL m_xFlag,m_yFlag;
	int m_xSrc,m_ySrc;
	CRect m_rcDest;

	CRect m_rcShow;
    float m_fRate;
	// Generated message map functions
	//{{AFX_MSG(CJpgDlg)
	afx_msg void OnPaint();
	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);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	//}}AFX_MSG
	afx_msg void On50();
	afx_msg void On100();
	afx_msg void On150();
	afx_msg void On200();
	afx_msg void On250();
	afx_msg void On300();
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_JPGDLG_H__F1B2AF17_37B3_46D9_9C6A_DD75D2A91478__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?