| 1 |
|
|---|
| 2 | // Module Header
|
|---|
| 3 | //
|
|---|
| 4 | // Module Name: WPIMAGEFILE
|
|---|
| 5 | //
|
|---|
| 6 | // OS/2 Presentation Manager Workplace class definitions
|
|---|
| 7 | //
|
|---|
| 8 | //
|
|---|
| 9 |
|
|---|
| 10 | #ifndef wpimagefile_idl
|
|---|
| 11 | #define wpimagefile_idl
|
|---|
| 12 |
|
|---|
| 13 | #include <wpdataf.idl>
|
|---|
| 14 | #include <somcls.idl>
|
|---|
| 15 |
|
|---|
| 16 | typedef LHANDLE HPAL; /* hpal */
|
|---|
| 17 | typedef HPAL *PHPAL;
|
|---|
| 18 |
|
|---|
| 19 | interface M_WPImageFile;
|
|---|
| 20 |
|
|---|
| 21 | interface WPImageFile : WPDataFile
|
|---|
| 22 |
|
|---|
| 23 | {
|
|---|
| 24 | /*
|
|---|
| 25 | * New instance methods
|
|---|
| 26 | *
|
|---|
| 27 | */
|
|---|
| 28 |
|
|---|
| 29 | BOOL wpQueryBitmapHandle(inout HBITMAP phBitmap, inout HPAL phPalette,
|
|---|
| 30 | in ULONG ulWidth, in ULONG ulHeight, in ULONG ulFlags, in LONG lBackgroundColor,
|
|---|
| 31 | inout BOOL pbQuitEarly);
|
|---|
| 32 | PBYTE wpQueryBitmapInfoHeader();
|
|---|
| 33 | PBYTE wpQueryBitmapData(inout ULONG pulSize);
|
|---|
| 34 | BOOL wpSetBitmapData(in PBYTE pBitmapData, in ULONG ulSize);
|
|---|
| 35 | BOOL wpReadImageFile();
|
|---|
| 36 | BOOL wpWriteImageFile();
|
|---|
| 37 |
|
|---|
| 38 | #ifdef __SOMIDL__
|
|---|
| 39 | implementation {
|
|---|
| 40 |
|
|---|
| 41 | releaseorder: wpQueryBitmapHandle, wpQueryBitmapInfoHeader,
|
|---|
| 42 | wpQueryBitmapData, wpSetBitmapData, wpReadImageFile, wpWriteImageFile;
|
|---|
| 43 |
|
|---|
| 44 | externalstem = wpimagefile;
|
|---|
| 45 | local;
|
|---|
| 46 | externalprefix = wpimg_;
|
|---|
| 47 | majorversion = 1;
|
|---|
| 48 | minorversion = 2;
|
|---|
| 49 | filestem = wpimage;
|
|---|
| 50 | metaclass = M_WPImageFile;
|
|---|
| 51 | callstyle = oidl;
|
|---|
| 52 | dllname = "pmwp.dll";
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | /*
|
|---|
| 57 | Warp4:
|
|---|
| 58 | wpSetContentsFromHandle
|
|---|
| 59 | wpQueryHandleFromContents
|
|---|
| 60 |
|
|---|
| 61 | */
|
|---|
| 62 | wpUnInitData: override;
|
|---|
| 63 | };
|
|---|
| 64 | #endif /* __SOMIDL__ */
|
|---|
| 65 | };
|
|---|
| 66 |
|
|---|
| 67 | interface M_WPImageFile : M_WPDataFile
|
|---|
| 68 | {
|
|---|
| 69 |
|
|---|
| 70 | #ifdef __SOMIDL__
|
|---|
| 71 | implementation {
|
|---|
| 72 |
|
|---|
| 73 | externalstem = wpimagefile;
|
|---|
| 74 | local;
|
|---|
| 75 | externalprefix = wpimgM_;
|
|---|
| 76 | majorversion = 1;
|
|---|
| 77 | minorversion = 2;
|
|---|
| 78 | filestem = wpimage;
|
|---|
| 79 | callstyle = oidl;
|
|---|
| 80 | dllname = "pmwp.dll";
|
|---|
| 81 |
|
|---|
| 82 | wpclsQueryInstanceType: override;
|
|---|
| 83 | wpclsQueryStyle: override;
|
|---|
| 84 | wpclsQueryTitle: override;
|
|---|
| 85 | wpclsQueryDefaultHelp: override;
|
|---|
| 86 |
|
|---|
| 87 | };
|
|---|
| 88 | #endif /* __SOMIDL__ */
|
|---|
| 89 | };
|
|---|
| 90 |
|
|---|
| 91 | #endif /* wpimagefile_idl */
|
|---|