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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paintlib: dibwnd.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a></div>
<h1>dibwnd.h</h1><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment">/----------------------------------------------------------------</span>
00003 <span class="comment">|</span>
00004 <span class="comment">| $Id: testdec_2dibwnd_8h-source.html,v 1.2 2004/09/15 15:26:32 uzadow Exp $</span>
00005 <span class="comment">| Window containing a bitmap.</span>
00006 <span class="comment">|</span>
00007 <span class="comment">| Child window containing a bitmap. Handles</span>
00008 <span class="comment">| scrolling and resize.</span>
00009 <span class="comment">|</span>
00010 <span class="comment">| Copyright (c) 1996-2002 Ulrich von Zadow</span>
00011 <span class="comment">|</span>
00012 <span class="comment">\----------------------------------------------------------------</span>
00013 <span class="comment">*/</span>
00014
00015 <span class="preprocessor">#ifndef INCL_DIBWND</span>
00016 <span class="preprocessor"></span><span class="preprocessor">#define INCL_DIBWND</span>
00017 <span class="preprocessor"></span>
00018 <span class="preprocessor">#include "plwinbmp.h"</span>
00019
00020 <span class="keyword">class </span>CDIBWnd : <span class="keyword">public</span> CWnd
00021 {
00022
00023 DECLARE_DYNAMIC (CDIBWnd);
00024 <span class="comment">// Construction</span>
00025 <span class="keyword">public</span>:
00026 CDIBWnd
00027 ( <a class="code" href="classPLWinBmp.html">PLWinBmp</a> * pBmp
00028 );
00029
00030 <span class="keyword">virtual</span> ~CDIBWnd
00031 ();
00032
00033 <span class="comment">// Implementation</span>
00034 <span class="keyword">public</span>:
00035 <span class="keyword">virtual</span> <span class="keywordtype">void</span> NewDIBNotify
00036 ();
00037 <span class="comment">// Call this whenever the bitmap is changed outside of the object.</span>
00038
00039 <span class="keyword">protected</span>:
00040 <span class="comment">// Overrides</span>
00041 <span class="comment">// ClassWizard generated virtual function overrides</span>
00042 <span class="comment">//{{AFX_VIRTUAL(CDIBWnd)</span>
00043 <span class="comment">//}}AFX_VIRTUAL</span>
00044
00045 <span class="comment">// Generated message map functions</span>
00046 <span class="comment">//{{AFX_MSG(CDIBWnd)</span>
00047 afx_msg <span class="keywordtype">int</span> OnCreate(LPCREATESTRUCT lpCreateStruct);
00048 afx_msg <span class="keywordtype">void</span> OnSize(UINT nType, <span class="keywordtype">int</span> cx, <span class="keywordtype">int</span> cy);
00049 afx_msg <span class="keywordtype">void</span> OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00050 afx_msg <span class="keywordtype">void</span> OnPaint();
00051 afx_msg <span class="keywordtype">void</span> OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00052 <span class="comment">//}}AFX_MSG</span>
00053 DECLARE_MESSAGE_MAP()
00054
00055 <span class="keyword">virtual</span> BOOL PreCreateWindow (CREATESTRUCT& cs);
00056
00057 <span class="keyword">protected</span>:
00058 <span class="keywordtype">void</span> initScrollBars
00059 ( <span class="keywordtype">int</span> cx,
00060 <span class="keywordtype">int</span> cy
00061 );
00062
00063 <a class="code" href="classPLWinBmp.html">PLWinBmp</a> * m_pBmp;
00064 CSize m_Size;
00065 CSize m_BmpSize;
00066 CPoint m_BmpPos;
00067 <span class="keywordtype">bool</span> m_bScrolling;
00068
00069 <span class="keyword">private</span>:
00070 <span class="keywordtype">void</span> initScrollBar
00071 ( <span class="keywordtype">int</span> ID,
00072 <span class="keywordtype">int</span> Page,
00073 <span class="keywordtype">int</span> Range,
00074 <span class="keywordtype">int</span> Pos
00075 );
00076
00077 <span class="keywordtype">int</span> handleScroll
00078 ( <span class="keywordtype">int</span> ID,
00079 UINT nSBCode,
00080 UINT nPos,
00081 <span class="keywordtype">int</span> Page,
00082 <span class="keywordtype">int</span> Range,
00083 <span class="keywordtype">int</span> Pos
00084 );
00085
00086 };
00087
00088 <span class="preprocessor">#endif</span>
00089 <span class="preprocessor"></span><span class="comment">/*</span>
00090 <span class="comment">/--------------------------------------------------------------------</span>
00091 <span class="comment">|</span>
00092 <span class="comment">| $Log: testdec_2dibwnd_8h-source.html,v $
00092 <span class="comment">| Revision 1.2 2004/09/15 15:26:32 uzadow
00092 <span class="comment">| Linux compatibility changes, doc update.
00092 <span class="comment">|</span>
00093 <span class="comment">| Revision 1.4 2002/03/31 13:36:42 uzadow</span>
00094 <span class="comment">| Updated copyright.</span>
00095 <span class="comment">|</span>
00096 <span class="comment">| Revision 1.3 2001/09/16 19:03:23 uzadow</span>
00097 <span class="comment">| Added global name prefix PL, changed most filenames.</span>
00098 <span class="comment">|</span>
00099 <span class="comment">|</span>
00100 <span class="comment">--------------------------------------------------------------------</span>
00101 <span class="comment">*/</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:40 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.2 </small></address>
</body>
</html>
|