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

Last change on this file was 50, checked in by gyoung, 3 years ago

Change int to LONG because sc did like the int.

File size: 4.7 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// Module Header
30//
31// Module Name: CWImage
32//
33// OS/2 Presentation Manager Workplace class definitions
34//
35//
36
37#ifndef cwimage_idl
38#define cwimage_idl
39
40#include <wpimage.idl>
41#include <somcls.idl>
42
43
44interface M_MMImage;
45
46interface MMImage : WPImageFile
47
48{
49 /*
50 * New instance methods
51 *
52 */
53 ULONG cwmmAddImageInformationPage(in HWND hwndNotebook);
54 HBITMAP cwmmQuerySmallBitmapHandle(in ULONG ulSize, in PMINIRECORDCORE pmrcToRefresh , in HWND hwndCnr);
55 void cwmmFreeBitmaps();
56 void cwmmFreeSmallBitmap();
57 ULONG cwmmQueryImageInfo(out char* chrString, in ULONG ulSize, in LONG iWhich);
58 void cwmmRequestBmpDeletion(in ULONG ulFlags);
59#ifdef __SOMIDL__
60 implementation {
61
62 releaseorder: cwmmAddImageInformationPage,
63 cwmmQuerySmallBitmapHandle,
64 cwmmFreeBitmaps, cwmmFreeSmallBitmap,
65 cwmmQueryImageInfo, cwmmRequestBmpDeletion;
66
67/*wpQueryBitmapHandle, wpQueryBitmapInfoHeader,
68 wpQueryBitmapData, wpSetBitmapData, wpReadImageFile, wpWriteImageFile;
69*/
70 externalstem = cwimage;
71 local;
72 externalprefix = cwimg_;
73 majorversion = 1;
74 minorversion = 2;
75 filestem = cwimage;
76 metaclass = M_MMImage;
77 callstyle = oidl;
78 dllname = "cwmm.dll";
79
80 passthru C_h_after = ""
81 "#include \"mmres.h\""
82 "";
83
84 /*
85 * Internal instance variables
86 *
87 */
88
89 HBITMAP hBitmap; /* Full size bitmap */
90 HBITMAP hBitmapSmall; /* (Lighttable)Icon size bitmap */
91 ULONG ulSizeSmallBitmap;
92 PBYTE pBmpInfoHeader2;
93 char chrIOProcName[64];
94 BOOL bNoIOProcAvailable;
95 BOOL bUseNewClsFeatures; /* Should we use the new features for this object? */
96 ULONG ulFileSize; /* used to check if image size changed so rereading of data is done */
97 ULONG ulWidth;
98 ULONG ulHeight;
99 ULONG ulDepth;
100
101 wpQueryBitmapHandle : override;
102 wpQueryBitmapInfoHeader : override;
103 wpQueryBitmapData : override;
104 wpSetBitmapData : override;
105 wpReadImageFile : override;
106 wpWriteImageFile : override;
107 wpUnInitData : override;
108 wpQueryDefaultView : override;
109 /* wpInitData: override; Not used. Default is instance var initializing to zero and that's what we need. */
110 wpModifyPopupMenu : override;
111 wpMenuItemSelected : override;
112 wpOpen : override;
113 wpAddSettingsPages : override;
114 wpQueryDetailsData : override;
115 wpRestoreState : override;
116 wpSetup : override;
117 wpObjectReady : override;
118 wpSaveState : override;
119/* wpFormatDragItem : override;*/
120 wpUnlockObject : override;
121
122 };
123#endif /* __SOMIDL__ */
124};
125
126interface M_MMImage : M_WPImageFile
127{
128
129#ifdef __SOMIDL__
130 implementation {
131
132 externalstem = cwimage;
133 local;
134 externalprefix = cwimgM_;
135 majorversion = 1;
136 minorversion = 2;
137 filestem = cwimage;
138 callstyle = oidl;
139 dllname = "cwmm.dll";
140
141
142 wpclsInitData : override;
143 wpclsQueryDefaultView : override;
144 wpclsCreateDefaultTemplates : override;
145 wpclsQueryStyle: override;
146 wpclsQueryTitle: override;
147 wpclsQueryIconData: override;
148/* wpclsQueryDefaultHelp: override;*/
149 wpclsQueryDetailsInfo : override;
150 wpclsQueryInstanceFilter : override;
151
152 };
153#endif /* __SOMIDL__ */
154};
155
156#endif /* cwimage_idl */
157
158
Note: See TracBrowser for help on using the repository browser.