source: branches/v2.9/classes/c/c_audio/cwiff.c

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: 4.4 KB
Line 
1/*
2 * (C) Chris Wohlgemuth 2002-2004
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 contact me at
22 *
23 * http://www.os2world.com/cdwriting
24 * http://www.geocities.com/SiliconValley/Sector/5785/
25 */
26/*
27 * This file was generated by the SOM Compiler and Emitter Framework.
28 * Generated using:
29 * SOM Emitter emitctm: 2.42
30 */
31
32#ifndef SOM_Module_cwiff_Source
33#define SOM_Module_cwiff_Source
34#endif
35#define CWIFF_Class_Source
36#define M_CWIFF_Class_Source
37
38#include <os2.h>
39#include "helpid.h"
40#include "cwiff.ih"
41#include "cwaudioinc.h"
42
43extern char chrHelpLibrary[CCHMAXPATH];
44
45HMODULE queryResModuleHandle(void);
46HMODULE queryModuleHandle(void);
47BOOL getMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd);
48
49
50/*
51 * The prototype for cwiffM_wpclsQueryInstanceType was replaced by the following prototype:
52 */
53SOM_Scope PSZ SOMLINK cwiffM_wpclsQueryInstanceType(M_MMIFF *somSelf)
54{
55 /* M_CWIFFData *somThis = M_CWIFFGetData(somSelf); */
56 M_MMIFFMethodDebug("M_MMIFF","cwiffM_wpclsQueryInstanceType");
57
58 return TYPE_IFF;
59}
60
61
62/*
63 * The prototype for cwiffM_wpclsQueryInstanceFilter was replaced by the following prototype:
64 */
65SOM_Scope PSZ SOMLINK cwiffM_wpclsQueryInstanceFilter(M_MMIFF *somSelf)
66{
67 /* M_CWIFFData *somThis = M_CWIFFGetData(somSelf); */
68 M_MMIFFMethodDebug("M_MMIFF","cwiffM_wpclsQueryInstanceFilter");
69
70 return "*.IFF";
71}
72
73
74/*
75 * SOM_Scope BOOL SOMLINK cwiffM_wpclsQueryDefaultHelp(M_CWIFF *somSelf,
76 * PULONG pHelpPanelId,
77 * PSZ pszHelpLibrary)
78 */
79
80/*
81 * The prototype for cwiffM_wpclsQueryDefaultHelp was replaced by the following prototype:
82 */
83SOM_Scope BOOL SOMLINK cwiffM_wpclsQueryDefaultHelp(M_MMIFF *somSelf,
84 PULONG pHelpPanelId,
85 PSZ pszHelpLibrary)
86{
87 /* M_CWIFFData *somThis = M_CWIFFGetData(somSelf); */
88 M_MMIFFMethodDebug("M_MMIFF","cwiffM_wpclsQueryDefaultHelp");
89
90
91 if(pHelpPanelId)
92 *pHelpPanelId=IFFFILE_HELP_PANEL;
93 if(pszHelpLibrary)
94 strncpy(pszHelpLibrary, chrHelpLibrary, CCHMAXPATH);
95 return TRUE;
96}
97
98
99/*
100 * SOM_Scope PSZ SOMLINK cwiffM_wpclsQueryTitle(M_CWIFF *somSelf)
101 */
102
103/*
104 * The prototype for cwiffM_wpclsQueryTitle was replaced by the following prototype:
105 */
106SOM_Scope PSZ SOMLINK cwiffM_wpclsQueryTitle(M_MMIFF *somSelf)
107{
108 static char chrTitle[20]={0};
109 /* M_CWIFFData *somThis = M_CWIFFGetData(somSelf); */
110 M_MMIFFMethodDebug("M_MMIFF","cwiffM_wpclsQueryTitle");
111
112 if(chrTitle[0]==0)
113 if(!getMessage(chrTitle, IDSTR_IFFTITLE, sizeof(chrTitle), queryResModuleHandle(), HWND_DESKTOP))
114 strcpy(chrTitle, CLSTITLE_IFF);
115
116 return chrTitle;
117}
118
119
120/*
121 * SOM_Scope ULONG SOMLINK cwiffM_wpclsQueryIconData(M_CWIFF *somSelf,
122 * PICONINFO pIconInfo)
123 */
124
125/*
126 * The prototype for cwiffM_wpclsQueryIconData was replaced by the following prototype:
127 */
128SOM_Scope ULONG SOMLINK cwiffM_wpclsQueryIconData(M_MMIFF *somSelf,
129 PICONINFO pIconInfo)
130{
131 HMODULE hmod;
132 /* M_CWIFFData *somThis = M_CWIFFGetData(somSelf); */
133 M_MMIFFMethodDebug("M_MMIFF","cwiffM_wpclsQueryIconData");
134
135 hmod=queryModuleHandle();
136 if(!hmod)
137 return M_MMIFF_parent_M_MMAudio_wpclsQueryIconData(somSelf, pIconInfo);
138
139 if (pIconInfo) {
140 pIconInfo->fFormat = ICON_RESOURCE;
141 pIconInfo->hmod = hmod;
142 pIconInfo->resid = ID_ICONVOCFILE;
143 } /* endif */
144
145 return ( sizeof(ICONINFO) );
146
147}
148
Note: See TracBrowser for help on using the repository browser.