File: testdib_2maindlg_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 (141 lines) | stat: -rw-r--r-- 7,260 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!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: maindlg.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>maindlg.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: testdib_2maindlg_8h-source.html,v 1.2 2004/09/15 15:26:32 uzadow Exp $</span>
00005 <span class="comment">|</span>
00006 <span class="comment">|      Copyright (c) 1996-2002 Ulrich von Zadow</span>
00007 <span class="comment">|</span>
00008 <span class="comment">--------------------------------------------------------------------</span>
00009 <span class="comment">*/</span>
00010 
00011 <span class="preprocessor">#include "plwinbmp.h"</span>
00012 <span class="preprocessor">#include "mtdibwnd.h"</span>
00013 <span class="preprocessor">#include "plpicdec.h"</span>
00014 <span class="preprocessor">#include "grarray.h"</span>
00015 
00016 <span class="keyword">class </span>CDibtestDlg : <span class="keyword">public</span> CDialog
00017 {
00018 <span class="comment">// Construction</span>
00019 <span class="keyword">public</span>:
00020   CDibtestDlg
00021     ( <span class="keywordtype">char</span> * pszDirName
00022     );
00023 
00024   ~CDibtestDlg
00025     ();
00026 
00027   <span class="keywordtype">void</span> DoWork
00028     ();
00029 
00030 <span class="comment">// Dialog Data</span>
00031   <span class="comment">//{{AFX_DATA(CDibtestDlg)</span>
00032   <span class="keyword">enum</span> { IDD = IDD_DIBTEST_DIALOG };
00033           <span class="comment">// NOTE: the ClassWizard will add data members here</span>
00034   <span class="comment">//}}AFX_DATA</span>
00035 
00036   <span class="comment">// ClassWizard generated virtual function overrides</span>
00037   <span class="comment">//{{AFX_VIRTUAL(CDibtestDlg)</span>
00038   <span class="keyword">protected</span>:
00039   <span class="keyword">virtual</span> <span class="keywordtype">void</span> DoDataExchange(CDataExchange* pDX);        <span class="comment">// DDX/DDV support</span>
00040   <span class="comment">//}}AFX_VIRTUAL</span>
00041 
00042 <span class="comment">// Implementation</span>
00043 <span class="keyword">protected</span>:
00044   HICON m_hIcon;
00045 
00046   <span class="comment">// Generated message map functions</span>
00047   <span class="comment">//{{AFX_MSG(CDibtestDlg)</span>
00048   <span class="keyword">virtual</span> BOOL OnInitDialog();
00049   afx_msg <span class="keywordtype">void</span> OnPaint();
00050   afx_msg HCURSOR OnQueryDragIcon();
00051   afx_msg <span class="keywordtype">int</span> OnCreate(LPCREATESTRUCT lpCreateStruct);
00052   <span class="comment">//}}AFX_MSG</span>
00053   DECLARE_MESSAGE_MAP()
00054 
00055 <span class="keyword">private</span>:
00056   <span class="keywordtype">void</span> loadDir
00057     ( <a class="code" href="classPLPicDecoder.html">PLPicDecoder</a> * pDecoder,
00058       CGrItemArray * pDIBArray,
00059       <span class="keyword">const</span> <span class="keywordtype">char</span> * pszDirName
00060     );
00061     <span class="comment">// Tries to load all files in a directory and its</span>
00062     <span class="comment">// subdirectories.</span>
00063 
00064   <span class="keywordtype">void</span> loadFile
00065     ( <a class="code" href="classPLPicDecoder.html">PLPicDecoder</a> * pDecoder,
00066       CGrItemArray * pDIBArray,
00067       <span class="keyword">const</span> <span class="keywordtype">char</span> * pszFName
00068     );
00069     <span class="comment">// Tries to load a file. Does error checking.</span>
00070 
00071   <span class="keywordtype">void</span> loadRes
00072     ( <a class="code" href="classPLPicDecoder.html">PLPicDecoder</a> * pDecoder,
00073       CGrItemArray * pDIBArray,
00074       <span class="keywordtype">int</span> ResourceID
00075     );
00076     <span class="comment">// Tries to load a resource. Does error checking.</span>
00077 
00078   <span class="keywordtype">void</span> createBkGrnd
00079     ( <a class="code" href="classPLPicDecoder.html">PLPicDecoder</a> * pDecoder
00080     );
00081 
00082   <span class="keywordtype">void</span> setAlphaChannel
00083     ( CGrItemArray * pDIBArray
00084     );
00085 
00086   <span class="keywordtype">void</span> update
00087     ( CGrItemArray * pDIBArray,
00088       CRect * pOldRect,
00089       CRect * pNewRect
00090     );
00091 
00092   <span class="keywordtype">void</span> testResource
00093     ();
00094 
00095   <a class="code" href="classPLWinBmp.html">PLWinBmp</a> * m_pBmp;
00096   <a class="code" href="classPLWinBmp.html">PLWinBmp</a> * m_pBigBmp;
00097 
00098   CMTDIBWnd * m_pDIBWnd;
00099 
00100   CString m_sDirName;
00101 
00102   <span class="keywordtype">int</span> m_x;
00103   <span class="keywordtype">int</span> m_y;
00104 
00105   CRITICAL_SECTION m_Critical;
00106 };
00107 <span class="comment">/*</span>
00108 <span class="comment">/--------------------------------------------------------------------</span>
00109 <span class="comment">|</span>
00110 <span class="comment">|      $Log: testdib_2maindlg_8h-source.html,v $
00110 <span class="comment">|      Revision 1.2  2004/09/15 15:26:32  uzadow
00110 <span class="comment">|      Linux compatibility changes, doc update.
00110 <span class="comment">|</span>
00111 <span class="comment">|      Revision 1.6  2004/06/19 17:04:22  uzadow</span>
00112 <span class="comment">|      Removed Lock(), Unlock(), PLDDrawBmp</span>
00113 <span class="comment">|</span>
00114 <span class="comment">|      Revision 1.5  2002/03/31 13:36:42  uzadow</span>
00115 <span class="comment">|      Updated copyright.</span>
00116 <span class="comment">|</span>
00117 <span class="comment">|      Revision 1.4  2001/09/16 19:03:23  uzadow</span>
00118 <span class="comment">|      Added global name prefix PL, changed most filenames.</span>
00119 <span class="comment">|</span>
00120 <span class="comment">|      Revision 1.3  2000/08/13 12:11:44  Administrator</span>
00121 <span class="comment">|      Added experimental DirectDraw-Support</span>
00122 <span class="comment">|</span>
00123 <span class="comment">|</span>
00124 <span class="comment">--------------------------------------------------------------------</span>
00125 <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>