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 (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 | * This file was generated by the SOM Compiler and Emitter Framework.
|
---|
30 | * Generated using:
|
---|
31 | * SOM Emitter emitctm: 2.42
|
---|
32 | */
|
---|
33 |
|
---|
34 | #ifndef SOM_Module_cwaif_Source
|
---|
35 | #define SOM_Module_cwaif_Source
|
---|
36 | #endif
|
---|
37 | #define CWAIF_Class_Source
|
---|
38 | #define M_CWAIF_Class_Source
|
---|
39 |
|
---|
40 | #include <os2.h>
|
---|
41 | #include "helpid.h"
|
---|
42 | #include "cwaif.ih"
|
---|
43 | #include "cwaudioinc.h"
|
---|
44 |
|
---|
45 | extern char chrHelpLibrary[CCHMAXPATH];
|
---|
46 |
|
---|
47 | HMODULE queryModuleHandle(void);
|
---|
48 | HMODULE queryResModuleHandle(void);
|
---|
49 | BOOL getMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd);
|
---|
50 |
|
---|
51 |
|
---|
52 | /*
|
---|
53 | * SOM_Scope PSZ SOMLINK cwaifM_wpclsQueryInstanceType(M_CWAIF *somSelf)
|
---|
54 | */
|
---|
55 |
|
---|
56 | /*
|
---|
57 | * The prototype for cwaifM_wpclsQueryInstanceType was replaced by the following prototype:
|
---|
58 | */
|
---|
59 | SOM_Scope PSZ SOMLINK cwaifM_wpclsQueryInstanceType(M_MMAIF *somSelf)
|
---|
60 | {
|
---|
61 | /* M_CWAIFData *somThis = M_CWAIFGetData(somSelf); */
|
---|
62 | M_MMAIFMethodDebug("M_MMAIF","cwaifM_wpclsQueryInstanceType");
|
---|
63 |
|
---|
64 | return TYPE_AIF;
|
---|
65 | // return "AIF";
|
---|
66 | }
|
---|
67 |
|
---|
68 |
|
---|
69 | /*
|
---|
70 | * SOM_Scope PSZ SOMLINK cwaifM_wpclsQueryInstanceFilter(M_CWAIF *somSelf)
|
---|
71 | */
|
---|
72 |
|
---|
73 | /*
|
---|
74 | * The prototype for cwaifM_wpclsQueryInstanceFilter was replaced by the following prototype:
|
---|
75 | */
|
---|
76 | SOM_Scope PSZ SOMLINK cwaifM_wpclsQueryInstanceFilter(M_MMAIF *somSelf)
|
---|
77 | {
|
---|
78 | /* M_CWAIFData *somThis = M_CWAIFGetData(somSelf); */
|
---|
79 | M_MMAIFMethodDebug("M_MMAIF","cwaifM_wpclsQueryInstanceFilter");
|
---|
80 |
|
---|
81 | return "*.AIF";
|
---|
82 | }
|
---|
83 |
|
---|
84 |
|
---|
85 | /*
|
---|
86 | * SOM_Scope BOOL SOMLINK cwaifM_wpclsQueryDefaultHelp(M_CWAIF *somSelf,
|
---|
87 | * PULONG pHelpPanelId,
|
---|
88 | * PSZ pszHelpLibrary)
|
---|
89 | */
|
---|
90 |
|
---|
91 | /*
|
---|
92 | * The prototype for cwaifM_wpclsQueryDefaultHelp was replaced by the following prototype:
|
---|
93 | */
|
---|
94 | SOM_Scope BOOL SOMLINK cwaifM_wpclsQueryDefaultHelp(M_MMAIF *somSelf,
|
---|
95 | PULONG pHelpPanelId,
|
---|
96 | PSZ pszHelpLibrary)
|
---|
97 | {
|
---|
98 | /* M_CWAIFData *somThis = M_CWAIFGetData(somSelf); */
|
---|
99 | M_MMAIFMethodDebug("M_MMAIF","cwaifM_wpclsQueryDefaultHelp");
|
---|
100 |
|
---|
101 | if(pHelpPanelId)
|
---|
102 | *pHelpPanelId=AIFFILE_HELP_PANEL;
|
---|
103 | if(pszHelpLibrary)
|
---|
104 | strncpy(pszHelpLibrary, chrHelpLibrary, CCHMAXPATH);
|
---|
105 | return TRUE;
|
---|
106 |
|
---|
107 | /* return (M_CWAIF_parent_M_CWAudio_wpclsQueryDefaultHelp(somSelf,
|
---|
108 | pHelpPanelId,
|
---|
109 | pszHelpLibrary));*/
|
---|
110 | }
|
---|
111 |
|
---|
112 |
|
---|
113 | /*
|
---|
114 | * SOM_Scope PSZ SOMLINK cwaifM_wpclsQueryTitle(M_CWAIF *somSelf)
|
---|
115 | */
|
---|
116 |
|
---|
117 | /*
|
---|
118 | * The prototype for cwaifM_wpclsQueryTitle was replaced by the following prototype:
|
---|
119 | */
|
---|
120 | SOM_Scope PSZ SOMLINK cwaifM_wpclsQueryTitle(M_MMAIF *somSelf)
|
---|
121 | {
|
---|
122 | static char chrTitle[20]={0};
|
---|
123 | /* M_CWAIFData *somThis = M_CWAIFGetData(somSelf); */
|
---|
124 | M_MMAIFMethodDebug("M_MMAIF","cwaifM_wpclsQueryTitle");
|
---|
125 | if(chrTitle[0]==0)
|
---|
126 | if(!getMessage(chrTitle, IDSTR_AIFTITLE, sizeof(chrTitle), queryResModuleHandle(), HWND_DESKTOP))
|
---|
127 | strcpy(chrTitle, CLSTITLE_AIF);
|
---|
128 |
|
---|
129 | return chrTitle;
|
---|
130 | }
|
---|
131 |
|
---|
132 |
|
---|
133 | /*
|
---|
134 | * SOM_Scope ULONG SOMLINK cwaifM_wpclsQueryIconData(M_CWAIF *somSelf,
|
---|
135 | * PICONINFO pIconInfo)
|
---|
136 | */
|
---|
137 |
|
---|
138 | /*
|
---|
139 | * The prototype for cwaifM_wpclsQueryIconData was replaced by the following prototype:
|
---|
140 | */
|
---|
141 | SOM_Scope ULONG SOMLINK cwaifM_wpclsQueryIconData(M_MMAIF *somSelf,
|
---|
142 | PICONINFO pIconInfo)
|
---|
143 | {
|
---|
144 | HMODULE hmod;
|
---|
145 | /* M_CWAIFData *somThis = M_CWAIFGetData(somSelf); */
|
---|
146 | M_MMAIFMethodDebug("M_MMAIF","cwaifM_wpclsQueryIconData");
|
---|
147 |
|
---|
148 | hmod=queryModuleHandle();
|
---|
149 | if(!hmod)
|
---|
150 | return M_MMAIF_parent_M_MMAudio_wpclsQueryIconData(somSelf, pIconInfo);
|
---|
151 |
|
---|
152 | if (pIconInfo) {
|
---|
153 | pIconInfo->fFormat = ICON_RESOURCE;
|
---|
154 | pIconInfo->hmod = hmod;
|
---|
155 | pIconInfo->resid = ID_ICONVOCFILE;
|
---|
156 | } /* endif */
|
---|
157 |
|
---|
158 | return ( sizeof(ICONINFO) );
|
---|
159 |
|
---|
160 | }
|
---|
161 |
|
---|