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_cwau_Source
|
---|
33 | #define SOM_Module_cwau_Source
|
---|
34 | #endif
|
---|
35 | #define CWAU_Class_Source
|
---|
36 | #define M_CWAU_Class_Source
|
---|
37 |
|
---|
38 | #include <os2.h>
|
---|
39 | #include "helpid.h"
|
---|
40 | #include "cwau.ih"
|
---|
41 | #include "cwaudioinc.h"
|
---|
42 |
|
---|
43 | extern char chrHelpLibrary[CCHMAXPATH];
|
---|
44 |
|
---|
45 | HMODULE queryResModuleHandle(void);
|
---|
46 | HMODULE queryModuleHandle(void);
|
---|
47 | BOOL getMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd);
|
---|
48 |
|
---|
49 |
|
---|
50 | /*
|
---|
51 | * SOM_Scope PSZ SOMLINK cwauM_wpclsQueryInstanceType(M_CWAU *somSelf)
|
---|
52 | */
|
---|
53 |
|
---|
54 | /*
|
---|
55 | * The prototype for cwauM_wpclsQueryInstanceType was replaced by the following prototype:
|
---|
56 | */
|
---|
57 | SOM_Scope PSZ SOMLINK cwauM_wpclsQueryInstanceType(M_MMAU *somSelf)
|
---|
58 | {
|
---|
59 | /* M_CWAUData *somThis = M_CWAUGetData(somSelf); */
|
---|
60 | M_MMAUMethodDebug("M_MMAU","cwauM_wpclsQueryInstanceType");
|
---|
61 |
|
---|
62 | return TYPE_AU;
|
---|
63 | // return "AU";
|
---|
64 | }
|
---|
65 |
|
---|
66 |
|
---|
67 | /*
|
---|
68 | * SOM_Scope PSZ SOMLINK cwauM_wpclsQueryInstanceFilter(M_CWAU *somSelf)
|
---|
69 | */
|
---|
70 |
|
---|
71 | /*
|
---|
72 | * The prototype for cwauM_wpclsQueryInstanceFilter was replaced by the following prototype:
|
---|
73 | */
|
---|
74 | SOM_Scope PSZ SOMLINK cwauM_wpclsQueryInstanceFilter(M_MMAU *somSelf)
|
---|
75 | {
|
---|
76 | /* M_CWAUData *somThis = M_CWAUGetData(somSelf); */
|
---|
77 | M_MMAUMethodDebug("M_MMAU","cwauM_wpclsQueryInstanceFilter");
|
---|
78 |
|
---|
79 | return "*.AU";
|
---|
80 | }
|
---|
81 |
|
---|
82 |
|
---|
83 | /*
|
---|
84 | * SOM_Scope BOOL SOMLINK cwauM_wpclsQueryDefaultHelp(M_CWAU *somSelf,
|
---|
85 | * PULONG pHelpPanelId,
|
---|
86 | * PSZ pszHelpLibrary)
|
---|
87 | */
|
---|
88 |
|
---|
89 | /*
|
---|
90 | * The prototype for cwauM_wpclsQueryDefaultHelp was replaced by the following prototype:
|
---|
91 | */
|
---|
92 | SOM_Scope BOOL SOMLINK cwauM_wpclsQueryDefaultHelp(M_MMAU *somSelf,
|
---|
93 | PULONG pHelpPanelId,
|
---|
94 | PSZ pszHelpLibrary)
|
---|
95 | {
|
---|
96 | /* M_CWAUData *somThis = M_CWAUGetData(somSelf); */
|
---|
97 | M_MMAUMethodDebug("M_MMAU","cwauM_wpclsQueryDefaultHelp");
|
---|
98 |
|
---|
99 | if(pHelpPanelId)
|
---|
100 | *pHelpPanelId=AUFILE_HELP_PANEL;
|
---|
101 | if(pszHelpLibrary)
|
---|
102 | strncpy(pszHelpLibrary, chrHelpLibrary, CCHMAXPATH);
|
---|
103 | return TRUE;
|
---|
104 | }
|
---|
105 |
|
---|
106 |
|
---|
107 | /*
|
---|
108 | * SOM_Scope PSZ SOMLINK cwauM_wpclsQueryTitle(M_CWAU *somSelf)
|
---|
109 | */
|
---|
110 |
|
---|
111 | /*
|
---|
112 | * The prototype for cwauM_wpclsQueryTitle was replaced by the following prototype:
|
---|
113 | */
|
---|
114 | SOM_Scope PSZ SOMLINK cwauM_wpclsQueryTitle(M_MMAU *somSelf)
|
---|
115 | {
|
---|
116 | static char chrTitle[20]={0};
|
---|
117 | /* M_CWAUData *somThis = M_CWAUGetData(somSelf); */
|
---|
118 | M_MMAUMethodDebug("M_MMAU","cwauM_wpclsQueryTitle");
|
---|
119 |
|
---|
120 | if(chrTitle[0]==0)
|
---|
121 | if(!getMessage(chrTitle, IDSTR_AUTITLE, sizeof(chrTitle), queryResModuleHandle(), HWND_DESKTOP))
|
---|
122 | strcpy(chrTitle, CLSTITLE_AU);
|
---|
123 |
|
---|
124 | return chrTitle;
|
---|
125 | }
|
---|
126 |
|
---|
127 |
|
---|
128 | /*
|
---|
129 | * SOM_Scope ULONG SOMLINK cwauM_wpclsQueryIconData(M_CWAU *somSelf,
|
---|
130 | * PICONINFO pIconInfo)
|
---|
131 | */
|
---|
132 |
|
---|
133 | /*
|
---|
134 | * The prototype for cwauM_wpclsQueryIconData was replaced by the following prototype:
|
---|
135 | */
|
---|
136 | SOM_Scope ULONG SOMLINK cwauM_wpclsQueryIconData(M_MMAU *somSelf,
|
---|
137 | PICONINFO pIconInfo)
|
---|
138 | {
|
---|
139 | HMODULE hmod;
|
---|
140 | /* M_CWAUData *somThis = M_CWAUGetData(somSelf); */
|
---|
141 | M_MMAUMethodDebug("M_MMAU","cwauM_wpclsQueryIconData");
|
---|
142 |
|
---|
143 | hmod=queryModuleHandle();
|
---|
144 | if(!hmod)
|
---|
145 | return M_MMAU_parent_M_MMAudio_wpclsQueryIconData(somSelf, pIconInfo);
|
---|
146 |
|
---|
147 | if (pIconInfo) {
|
---|
148 | pIconInfo->fFormat = ICON_RESOURCE;
|
---|
149 | pIconInfo->hmod = hmod;
|
---|
150 | pIconInfo->resid = ID_ICONVOCFILE;
|
---|
151 | } /* endif */
|
---|
152 |
|
---|
153 | return ( sizeof(ICONINFO) );
|
---|
154 | }
|
---|
155 |
|
---|