File: DibCtl_8h-source.html

package info (click to toggle)
paintlib 2.6.2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,900 kB
  • ctags: 3,875
  • sloc: cpp: 25,209; sh: 10,600; ansic: 1,891; makefile: 119
file content (123 lines) | stat: -rw-r--r-- 7,695 bytes parent folder | download | duplicates (2)
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
118
119
120
121
122
123
<!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: DibCtl.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&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a></div>
<h1>DibCtl.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: DibCtl_8h-source.html,v 1.2 2004/09/15 15:26:23 uzadow Exp $</span>
00005 <span class="comment">|</span>
00006 <span class="comment">\--------------------------------------------------------------------</span>
00007 <span class="comment">*/</span><span class="comment"></span>
00008 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
00009 <span class="comment"></span><span class="comment">// Copyright (C) 1998 by Jorge Lodos</span>
00010 <span class="comment">// All rights reserved</span>
00011 <span class="comment">//</span>
00012 <span class="comment">// Distribute and use freely, except:</span>
00013 <span class="comment">// 1. Don't alter or remove this notice.</span>
00014 <span class="comment">// 2. Mark the changes you made</span>
00015 <span class="comment">//</span>
00016 <span class="comment">// Send bug reports, bug fixes, enhancements, requests, etc. to:</span>
00017 <span class="comment">//    lodos@cigb.edu.cu</span><span class="comment"></span>
00018 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
00019 <span class="comment"></span>
00020 <span class="comment">//  adapted to paintlib by bdelmee@skynet.be, 1998</span>
00021 
00022 <span class="preprocessor">#ifndef INCL_DIBCTL</span>
00023 <span class="preprocessor"></span><span class="preprocessor">#define INCL_DIBCTL</span>
00024 <span class="preprocessor"></span>
00025 <span class="preprocessor">#if _MSC_VER &gt;= 1000</span>
00026 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
00027 <span class="preprocessor"></span><span class="preprocessor">#endif // _MSC_VER &gt;= 1000</span>
00028 <span class="preprocessor"></span>
00029 <span class="preprocessor">#include "WinBmpEx.h"</span>
00030 <span class="comment"></span>
00031 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
00032 <span class="comment"></span><span class="comment">// CDIBStatic window</span>
00033 
00034 <span class="keyword">class </span>CDIBStatic : <span class="keyword">public</span> CStatic
00035 {
00036     <span class="comment">// Construction</span>
00037 <span class="keyword">public</span>:
00038     CDIBStatic() : m_bHasFile(false)
00039         {} ;
00040     <span class="keyword">virtual</span> ~CDIBStatic()
00041         {} ;
00042 
00043     <span class="comment">// Attributes</span>
00044 <span class="keyword">private</span>:
00045     PLWinBmpEx  m_DIB;
00046     <span class="keywordtype">bool</span>        m_bHasFile;
00047 
00048     <span class="comment">// Operations</span>
00049 <span class="keyword">public</span>:
00050     <span class="keywordtype">bool</span> IsValidDib()<span class="keyword"> const</span>
00051 <span class="keyword">    </span>{
00052         <span class="keywordflow">return</span> m_bHasFile;
00053     }
00054     <span class="keywordtype">bool</span> LoadDib(LPCTSTR lpszFileName);
00055     <span class="keywordtype">void</span> UpdateDib();
00056     <span class="keywordtype">void</span> RemoveDib();
00057 
00058     <span class="keywordtype">bool</span> DoRealizePalette(<span class="keywordtype">bool</span> bForceBackGround);
00059 
00060     <span class="comment">// Overrides</span>
00061     <span class="comment">// ClassWizard generated virtual function overrides</span>
00062     <span class="comment">//{{AFX_VIRTUAL(CDIBStatic)</span>
00063     <span class="comment">//}}AFX_VIRTUAL</span>
00064 
00065 <span class="keyword">protected</span>:
00066     <span class="keywordtype">void</span> ClearDib();
00067     <span class="keywordtype">void</span> PaintDib(<span class="keywordtype">bool</span> bDibValid);
00068 
00069     <span class="comment">// Generated message map functions</span>
00070 <span class="keyword">protected</span>:
00071     <span class="comment">//{{AFX_MSG(CDIBStatic)</span>
00072     afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
00073     afx_msg BOOL OnQueryNewPalette();
00074     afx_msg <span class="keywordtype">void</span> OnPaletteChanged(CWnd* pFocusWnd);
00075     <span class="comment">//}}AFX_MSG</span>
00076 
00077     DECLARE_MESSAGE_MAP()
00078 };
00079 <span class="comment"></span>
00080 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
00081 <span class="comment"></span>
00082 <span class="comment">//{{AFX_INSERT_LOCATION}}</span>
00083 <span class="comment">// Microsoft Developer Studio will insert additional declarations immediately before the previous line.</span>
00084 
00085 <span class="preprocessor">#endif // INCL_DIBCTL</span>
00086 <span class="preprocessor"></span><span class="comment">/*</span>
00087 <span class="comment">/--------------------------------------------------------------------</span>
00088 <span class="comment">|</span>
00089 <span class="comment">|      $Log: DibCtl_8h-source.html,v $
00089 <span class="comment">|      Revision 1.2  2004/09/15 15:26:23  uzadow
00089 <span class="comment">|      Linux compatibility changes, doc update.
00089 <span class="comment">|</span>
00090 <span class="comment">|      Revision 1.8  2002/08/04 20:08:01  uzadow</span>
00091 <span class="comment">|      Added PLBmpInfo class, ability to extract metainformation from images without loading the whole image and proper greyscale support.</span>
00092 <span class="comment">|</span>
00093 <span class="comment">|      Revision 1.7  2002/01/27 18:20:18  uzadow</span>
00094 <span class="comment">|      Updated copyright message; corrected pcx decoder bug.</span>
00095 <span class="comment">|</span>
00096 <span class="comment">|      Revision 1.6  2000/03/28 21:05:03  Ulrich von Zadow</span>
00097 <span class="comment">|      Added zoom capability.</span>
00098 <span class="comment">|</span>
00099 <span class="comment">|      Revision 1.5  2000/01/10 23:53:01  Ulrich von Zadow</span>
00100 <span class="comment">|      Changed formatting &amp; removed tabs.</span>
00101 <span class="comment">|</span>
00102 <span class="comment">|      Revision 1.4  1999/12/02 17:07:35  Ulrich von Zadow</span>
00103 <span class="comment">|      Changes by bdelmee.</span>
00104 <span class="comment">|</span>
00105 <span class="comment">|</span>
00106 <span class="comment">--------------------------------------------------------------------</span>
00107 <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>