source: trunk/classes/idl/idl_image/cwbmp.idl

Last change on this file was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 3.5 KB
Line 
1/*
2 * (C) Chris Wohlgemuth 2002-2003
3 *
4 */
5/*
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; see the file COPYING. If not, write to
18 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20/*
21 * If you need another license for your project/product (commercial,
22 * noncommercial, whatever) contact me at
23 *
24 * http://www.os2world.com/cdwriting
25 * http://www.geocities.com/SiliconValley/Sector/5785/
26 *
27 */
28
29/*
30 * CWBmp.idl:
31 */
32
33#include <wpbitmap.idl>
34
35/*
36 CLASS:
37*/
38
39interface M_MMBitmap;
40
41interface MMBitmap : WPBitmap
42{
43
44 /*
45 * New instance methods
46 *
47 */
48
49 ULONG cwmmAddImageInformationPage(in HWND hwndNotebook);
50 HBITMAP cwmmQuerySmallBitmapHandle(in ULONG ulSize);
51 void cwmmFreeBitmaps();
52 void cwmmFreeSmallBitmap();
53 PBYTE cwmmQueryBitmapInfoHeader();
54 ULONG cwmmQueryImageInfo(out char* chrString, in ULONG ulSize, in int iWhich);
55
56#ifdef __SOMIDL__
57 implementation {
58 releaseorder: cwmmAddImageInformationPage,
59 cwmmQuerySmallBitmapHandle,
60 cwmmFreeBitmaps, cwmmFreeSmallBitmap, cwmmQueryBitmapInfoHeader,
61 cwmmQueryImageInfo;
62
63 /*
64 * Class Modifiers:
65 *
66 */
67
68 externalprefix = cwbmp_;
69 externalstem = cwbmp;
70 majorversion = 1;
71 minorversion = 2;
72 filestem = cwbmp; //# specifies the filestem for sc-generated files
73 metaclass = M_MMBitmap;
74 dllname = "cwimage.dll";
75 callstyle = oidl;
76
77
78 /*
79 * Internal instance variables
80 *
81 */
82 HBITMAP hBitmapSmall; /* (Lighttable)Icon size bitmap */
83 ULONG ulSizeSmallBitmap;
84 PBYTE pBmpInfoHeader2;
85 char chrIOProcName[64];
86 BOOL bNoIOProcAvailable;
87 /*
88 * methods overridden
89 *
90 */
91 wpModifyPopupMenu : override;
92 wpMenuItemSelected : override;
93 wpOpen : override;
94 wpAddSettingsPages : override;
95 wpUnInitData: override;
96 wpInitData: override;
97 wpQueryDetailsData : override;
98#ifdef __PRIVATE__
99
100#endif
101
102 }; // implementation
103#endif /* __SOMIDL__ */
104};
105
106
107interface M_MMBitmap : M_WPBitmap
108{
109
110 /*
111 * New class methods
112 *
113 */
114
115
116#ifdef __SOMIDL__
117 implementation {
118
119
120 /*
121 * Class Modifiers:
122 *
123 */
124
125 externalprefix = cwbmpM_;
126 externalstem = cwbmpM;
127 functionprefix = cwbmpM_;
128 majorversion = 1;
129 minorversion = 2;
130 filestem = cwbmp; //# specifies the filestem for sc-generated files
131 dllname = "cwimage.dll";
132 callstyle = oidl;
133
134 /*
135 * Internal class variables
136 *
137 */
138
139 /*
140 * methods overridden
141 *
142 */
143 wpclsCreateDefaultTemplates :override;
144 wpclsQueryDefaultView : override;
145 wpclsQueryIconData : override;
146 wpclsQueryDetailsInfo : override;
147 wpclsInitData : override;
148 };
149
150#endif /* __SOMIDL__ */
151
152};
153
154
155
156
Note: See TracBrowser for help on using the repository browser.