www.pudn.com > ScrollBitmapdemo.rar > ScrollBitmapDlg.h, change:2002-10-25,size:2722b

// ScrollBitmapDlg.h : header file 
#include "commondialog.h" 
#if !defined(AFX_SCROLLBITMAPDLG_H__182E617E_4374_4CD4_B7D0_F4B8A4E37BE4__INCLUDED_) 
#define AFX_SCROLLBITMAPDLG_H__182E617E_4374_4CD4_B7D0_F4B8A4E37BE4__INCLUDED_ 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ScrollBitmapDlg.h: Header File. 
// Written by Shibu K.V (shibukv@erdcitvm.org) 
// Sr.Research Associate 
// ASIC Hardware Design Group 
// Electronics Research & Development Centre of India 
// Trivandrum, Kerala, India. 
// Copyright (c) 2002 
// Warning: this code hasn't been subject to a heavy testing, so 
// use it on your own risk. The author accepts no liability for the  
// possible damage caused by this code. 
// Version 1.0  22 Oct 2002. 
// CScrollBitmapDlg dialog 
class CScrollBitmapDlg : public CDialog 
// Construction 
	CRect rectStaticClient; 
	SCROLLINFO horz,vert; 
	BOOL	flag, erase; 
	int sourcex, sourcey,offsetx,offsety; 
	CScrollBitmapDlg(CWnd* pParent = NULL);	// standard constructor 
	// Dialog Data 
	CStatic	m_st1; 
	CScrollBar	m_vbar; 
	CScrollBar	m_hbar; 
	CCommonDialog1	m_com; 
	// ClassWizard generated virtual function overrides 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
// Implementation 
	HICON m_hIcon; 
	CDC m_dcMem;            // Compatible Memory DC for dialog 
	HBITMAP m_hBmpOld;    // Handle of old bitmap to save 
	HBITMAP m_hBmpNew;    // Handle of new bitmap from file 
	BITMAP m_bmInfo;        // Bitmap Information structure 
	CPoint m_pt;            // Position for upper left corner of bitmap 
	CSize m_size;   
	// Generated message map functions 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnShow(); 
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	virtual void OnOK(); 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
#endif // !defined(AFX_SCROLLBITMAPDLG_H__182E617E_4374_4CD4_B7D0_F4B8A4E37BE4__INCLUDED_)