-
Notifications
You must be signed in to change notification settings - Fork 5
/
SrImageCtrl.h
72 lines (50 loc) · 1.73 KB
/
SrImageCtrl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*===========================================================================
*
* File: Obimagectrl.H
* Author: Dave Humphrey ([email protected])
* Created On: October 5, 2006
*
* Description
*
*=========================================================================*/
#ifndef __OBIMAGECTRL_H
#define __OBIMAGECTRL_H
class CSrImageCtrl : public CWnd {
/*---------- Begin Protected Class Members ---------------------*/
protected:
CBitmap m_Bitmap; /* The bitmap image to draw */
bool m_IsInitialized;
bool m_ZoomToFit;
bool m_KeepAspect;
bool m_ZoomLarger;
bool m_ZoomSmaller;
int m_ImageWidth;
int m_ImageHeight;
/*---------- Begin Protected Class Methods ---------------------*/
protected:
/*---------- Begin Public Class Methods ------------------------*/
public:
CSrImageCtrl();
virtual ~CSrImageCtrl();
/* Called after the frame window is created */
void OnInitialUpdate (void);
bool Load (const TCHAR* pFilename);
bool Load (FILE* pFile, const long FileSize, const long Offset);
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSrImageCtrl)
//}}AFX_VIRTUAL
// Generated message map functions
protected:
//{{AFX_MSG(CSrImageCtrl)
afx_msg void OnPaint();
afx_msg void OnHScroll (UINT SBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll (UINT SBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP();
};
//{{AFX_INSERT_LOCATION}}
//}}AFX_INSERT_LOCATION
#endif
/*===========================================================================
* End of File Obimagectrl.H
*=========================================================================*/