| 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_cwvoc_Source
 | 
|---|
| 33 | #define SOM_Module_cwvoc_Source
 | 
|---|
| 34 | #endif
 | 
|---|
| 35 | #define CWVOC_Class_Source
 | 
|---|
| 36 | #define M_CWVOC_Class_Source
 | 
|---|
| 37 | 
 | 
|---|
| 38 | #include <os2.h>
 | 
|---|
| 39 | #include "helpid.h"
 | 
|---|
| 40 | #include "cwvoc.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 cwvocM_wpclsQueryInstanceType(M_CWVOC *somSelf)
 | 
|---|
| 52 |  */
 | 
|---|
| 53 | 
 | 
|---|
| 54 | /*
 | 
|---|
| 55 |  * The prototype for cwvocM_wpclsQueryInstanceType was replaced by the following prototype:
 | 
|---|
| 56 |  */
 | 
|---|
| 57 | SOM_Scope PSZ  SOMLINK cwvocM_wpclsQueryInstanceType(M_MMVOC *somSelf)
 | 
|---|
| 58 | {
 | 
|---|
| 59 |     /* M_CWVOCData *somThis = M_CWVOCGetData(somSelf); */
 | 
|---|
| 60 |     M_MMVOCMethodDebug("M_MMVOC","cwvocM_wpclsQueryInstanceType");
 | 
|---|
| 61 | 
 | 
|---|
| 62 |     return TYPE_VOC;
 | 
|---|
| 63 |     //    return "VOC";
 | 
|---|
| 64 | }
 | 
|---|
| 65 | 
 | 
|---|
| 66 | 
 | 
|---|
| 67 | /*
 | 
|---|
| 68 |  * SOM_Scope PSZ  SOMLINK cwvocM_wpclsQueryInstanceFilter(M_CWVOC *somSelf)
 | 
|---|
| 69 |  */
 | 
|---|
| 70 | 
 | 
|---|
| 71 | /*
 | 
|---|
| 72 |  * The prototype for cwvocM_wpclsQueryInstanceFilter was replaced by the following prototype:
 | 
|---|
| 73 |  */
 | 
|---|
| 74 | SOM_Scope PSZ  SOMLINK cwvocM_wpclsQueryInstanceFilter(M_MMVOC *somSelf)
 | 
|---|
| 75 | {
 | 
|---|
| 76 |     /* M_CWVOCData *somThis = M_CWVOCGetData(somSelf); */
 | 
|---|
| 77 |     M_MMVOCMethodDebug("M_MMVOC","cwvocM_wpclsQueryInstanceFilter");
 | 
|---|
| 78 | 
 | 
|---|
| 79 |     return "*.VOC";
 | 
|---|
| 80 | }
 | 
|---|
| 81 | 
 | 
|---|
| 82 | 
 | 
|---|
| 83 | /*
 | 
|---|
| 84 |  * SOM_Scope BOOL  SOMLINK cwvocM_wpclsQueryDefaultHelp(M_CWVOC *somSelf, 
 | 
|---|
| 85 |  *                                                      PULONG pHelpPanelId, 
 | 
|---|
| 86 |  *                                                      PSZ pszHelpLibrary)
 | 
|---|
| 87 |  */
 | 
|---|
| 88 | 
 | 
|---|
| 89 | /*
 | 
|---|
| 90 |  * The prototype for cwvocM_wpclsQueryDefaultHelp was replaced by the following prototype:
 | 
|---|
| 91 |  */
 | 
|---|
| 92 | SOM_Scope BOOL  SOMLINK cwvocM_wpclsQueryDefaultHelp(M_MMVOC *somSelf, 
 | 
|---|
| 93 |                                                      PULONG pHelpPanelId, 
 | 
|---|
| 94 |                                                      PSZ pszHelpLibrary)
 | 
|---|
| 95 | {
 | 
|---|
| 96 |     /* M_CWVOCData *somThis = M_CWVOCGetData(somSelf); */
 | 
|---|
| 97 |     M_MMVOCMethodDebug("M_MMVOC","cwvocM_wpclsQueryDefaultHelp");
 | 
|---|
| 98 | 
 | 
|---|
| 99 | 
 | 
|---|
| 100 |     if(pHelpPanelId)
 | 
|---|
| 101 |       *pHelpPanelId=VOCFILE_HELP_PANEL;
 | 
|---|
| 102 |     if(pszHelpLibrary)
 | 
|---|
| 103 |       strncpy(pszHelpLibrary, chrHelpLibrary, CCHMAXPATH);
 | 
|---|
| 104 |     return TRUE; 
 | 
|---|
| 105 | }
 | 
|---|
| 106 | 
 | 
|---|
| 107 | 
 | 
|---|
| 108 | /*
 | 
|---|
| 109 |  * SOM_Scope PSZ  SOMLINK cwvocM_wpclsQueryTitle(M_CWVOC *somSelf)
 | 
|---|
| 110 |  */
 | 
|---|
| 111 | 
 | 
|---|
| 112 | /*
 | 
|---|
| 113 |  * The prototype for cwvocM_wpclsQueryTitle was replaced by the following prototype:
 | 
|---|
| 114 |  */
 | 
|---|
| 115 | SOM_Scope PSZ  SOMLINK cwvocM_wpclsQueryTitle(M_MMVOC *somSelf)
 | 
|---|
| 116 | {
 | 
|---|
| 117 |   static char chrTitle[20]={0};
 | 
|---|
| 118 |     /* M_CWVOCData *somThis = M_CWVOCGetData(somSelf); */
 | 
|---|
| 119 |     M_MMVOCMethodDebug("M_MMVOC","cwvocM_wpclsQueryTitle");
 | 
|---|
| 120 | 
 | 
|---|
| 121 |     if(chrTitle[0]==0)
 | 
|---|
| 122 |       if(!getMessage(chrTitle, IDSTR_VOCTITLE, sizeof(chrTitle), queryResModuleHandle(), HWND_DESKTOP))
 | 
|---|
| 123 |         strcpy(chrTitle, CLSTITLE_VOC);
 | 
|---|
| 124 | 
 | 
|---|
| 125 |     return chrTitle;
 | 
|---|
| 126 | }
 | 
|---|
| 127 | 
 | 
|---|
| 128 | 
 | 
|---|
| 129 | /*
 | 
|---|
| 130 |  * SOM_Scope ULONG  SOMLINK cwvocM_wpclsQueryIconData(M_CWVOC *somSelf, 
 | 
|---|
| 131 |  *                                                    PICONINFO pIconInfo)
 | 
|---|
| 132 |  */
 | 
|---|
| 133 | 
 | 
|---|
| 134 | /*
 | 
|---|
| 135 |  * The prototype for cwvocM_wpclsQueryIconData was replaced by the following prototype:
 | 
|---|
| 136 |  */
 | 
|---|
| 137 | SOM_Scope ULONG  SOMLINK cwvocM_wpclsQueryIconData(M_MMVOC *somSelf, 
 | 
|---|
| 138 |                                                    PICONINFO pIconInfo)
 | 
|---|
| 139 | {
 | 
|---|
| 140 |   HMODULE hmod;
 | 
|---|
| 141 |     /* M_CWVOCData *somThis = M_CWVOCGetData(somSelf); */
 | 
|---|
| 142 |     M_MMVOCMethodDebug("M_MMVOC","cwvocM_wpclsQueryIconData");
 | 
|---|
| 143 | 
 | 
|---|
| 144 |     hmod=queryModuleHandle();
 | 
|---|
| 145 |     if(!hmod)
 | 
|---|
| 146 |       return M_MMVOC_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 | 
 | 
|---|