source: branches/classes/c/c_audio/cwsndf.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.7 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_cwsndf_Source
33#define SOM_Module_cwsndf_Source
34#endif
35#define CWSNDF_Class_Source
36#define M_CWSNDF_Class_Source
37
38#include <os2.h>
39#include "helpid.h"
40#include "cwsndf.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 * SOM_Scope PSZ SOMLINK cwsndfM_wpclsQueryInstanceType(M_CWSNDF *somSelf)
52 */
53/*
54 * The prototype for cwsndfM_wpclsQueryInstanceType was replaced by the following prototype:
55 */
56SOM_Scope PSZ SOMLINK cwsndfM_wpclsQueryInstanceType(M_MMSNDF *somSelf)
57{
58 /* M_CWSNDFData *somThis = M_CWSNDFGetData(somSelf); */
59 M_MMSNDFMethodDebug("M_MMSNDF","cwsndfM_wpclsQueryInstanceType");
60
61 return TYPE_SNDF;
62 // return "SND";
63}
64
65
66/*
67 * SOM_Scope PSZ SOMLINK cwsndfM_wpclsQueryInstanceFilter(M_CWSNDF *somSelf)
68 */
69
70/*
71 * The prototype for cwsndfM_wpclsQueryInstanceFilter was replaced by the following prototype:
72 */
73SOM_Scope PSZ SOMLINK cwsndfM_wpclsQueryInstanceFilter(M_MMSNDF *somSelf)
74{
75 /* M_CWSNDFData *somThis = M_CWSNDFGetData(somSelf); */
76 M_MMSNDFMethodDebug("M_MMSNDF","cwsndfM_wpclsQueryInstanceFilter");
77
78 return "*.SND";
79}
80
81
82/*
83 * SOM_Scope BOOL SOMLINK cwsndfM_wpclsQueryDefaultHelp(M_CWSNDF *somSelf,
84 * PULONG pHelpPanelId,
85 * PSZ pszHelpLibrary)
86 */
87
88/*
89 * The prototype for cwsndfM_wpclsQueryDefaultHelp was replaced by the following prototype:
90 */
91SOM_Scope BOOL SOMLINK cwsndfM_wpclsQueryDefaultHelp(M_MMSNDF *somSelf,
92 PULONG pHelpPanelId,
93 PSZ pszHelpLibrary)
94{
95 /* M_CWSNDFData *somThis = M_CWSNDFGetData(somSelf); */
96 M_MMSNDFMethodDebug("M_MMSNDF","cwsndfM_wpclsQueryDefaultHelp");
97
98
99 if(pHelpPanelId)
100 *pHelpPanelId=SNDFFILE_HELP_PANEL;
101 if(pszHelpLibrary)
102 strncpy(pszHelpLibrary, chrHelpLibrary, CCHMAXPATH);
103 return TRUE;
104}
105
106
107/*
108 * SOM_Scope PSZ SOMLINK cwsndfM_wpclsQueryTitle(M_CWSNDF *somSelf)
109 */
110
111/*
112 * The prototype for cwsndfM_wpclsQueryTitle was replaced by the following prototype:
113 */
114SOM_Scope PSZ SOMLINK cwsndfM_wpclsQueryTitle(M_MMSNDF *somSelf)
115{
116 static char chrTitle[20]={0};
117 /* M_CWSNDFData *somThis = M_CWSNDFGetData(somSelf); */
118 M_MMSNDFMethodDebug("M_MMSNDF","cwsndfM_wpclsQueryTitle");
119
120 if(chrTitle[0]==0)
121 if(!getMessage(chrTitle, IDSTR_SNDFTITLE, sizeof(chrTitle), queryResModuleHandle(), HWND_DESKTOP))
122 strcpy(chrTitle, CLSTITLE_SNDF);
123
124 return chrTitle;
125}
126
127
128/*
129 * SOM_Scope ULONG SOMLINK cwsndfM_wpclsQueryIconData(M_CWSNDF *somSelf,
130 * PICONINFO pIconInfo)
131 */
132
133/*
134 * The prototype for cwsndfM_wpclsQueryIconData was replaced by the following prototype:
135 */
136SOM_Scope ULONG SOMLINK cwsndfM_wpclsQueryIconData(M_MMSNDF *somSelf,
137 PICONINFO pIconInfo)
138{
139 HMODULE hmod;
140
141 /* M_CWSNDFData *somThis = M_CWSNDFGetData(somSelf); */
142 M_MMSNDFMethodDebug("M_MMSNDF","cwsndfM_wpclsQueryIconData");
143
144 hmod=queryModuleHandle();
145 if(!hmod)
146 return M_MMSNDF_parent_M_MMAudio_wpclsQueryIconData(somSelf, pIconInfo);
147
148 if (pIconInfo) {
149 pIconInfo->fFormat = ICON_RESOURCE;
150 pIconInfo->hmod = hmod;
151 pIconInfo->resid = ID_ICONVOCFILE;
152 } /* endif */
153
154 return ( sizeof(ICONINFO) );
155}
156
Note: See TracBrowser for help on using the repository browser.