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 | /*
|
---|
28 | * This file was generated by the SOM Compiler and Emitter Framework.
|
---|
29 | * Generated using:
|
---|
30 | * SOM Emitter emitctm: 2.42
|
---|
31 | */
|
---|
32 |
|
---|
33 | #ifndef SOM_Module_cwfli_Source
|
---|
34 | #define SOM_Module_cwfli_Source
|
---|
35 | #endif
|
---|
36 | #define CWFLI_Class_Source
|
---|
37 | #define M_CWFLI_Class_Source
|
---|
38 |
|
---|
39 | #include <os2.h>
|
---|
40 | #include "helpid.h"
|
---|
41 | #include "cwfli.ih"
|
---|
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 cwfliM_wpclsQueryTitle(M_CWFLI *somSelf)
|
---|
52 | */
|
---|
53 |
|
---|
54 | /*
|
---|
55 | * The prototype for cwfliM_wpclsQueryTitle was replaced by the following prototype:
|
---|
56 | */
|
---|
57 | SOM_Scope PSZ SOMLINK cwfliM_wpclsQueryTitle(M_MMFLI *somSelf)
|
---|
58 | {
|
---|
59 | static char chrTitle[20]={0};
|
---|
60 | /* M_CWFLIData *somThis = M_CWFLIGetData(somSelf); */
|
---|
61 | M_MMFLIMethodDebug("M_MMFLI","cwfliM_wpclsQueryTitle");
|
---|
62 |
|
---|
63 | if(chrTitle[0]==0)
|
---|
64 | if(!getMessage(chrTitle, IDSTR_FLITITLE, sizeof(chrTitle), queryResModuleHandle(), HWND_DESKTOP))
|
---|
65 | strcpy(chrTitle,"FLIVideo.FLI");
|
---|
66 | return chrTitle;
|
---|
67 | }
|
---|
68 |
|
---|
69 |
|
---|
70 | /*
|
---|
71 | * SOM_Scope PSZ SOMLINK cwfliM_wpclsQueryInstanceType(M_CWFLI *somSelf)
|
---|
72 | */
|
---|
73 |
|
---|
74 | /*
|
---|
75 | * The prototype for cwfliM_wpclsQueryInstanceType was replaced by the following prototype:
|
---|
76 | */
|
---|
77 | SOM_Scope PSZ SOMLINK cwfliM_wpclsQueryInstanceType(M_MMFLI *somSelf)
|
---|
78 | {
|
---|
79 | /* M_CWFLIData *somThis = M_CWFLIGetData(somSelf); */
|
---|
80 | M_MMFLIMethodDebug("M_MMFLI","cwfliM_wpclsQueryInstanceType");
|
---|
81 |
|
---|
82 | return "FLC/FLI";
|
---|
83 | }
|
---|
84 |
|
---|
85 |
|
---|
86 | /*
|
---|
87 | * SOM_Scope PSZ SOMLINK cwfliM_wpclsQueryInstanceFilter(M_CWFLI *somSelf)
|
---|
88 | */
|
---|
89 |
|
---|
90 | /*
|
---|
91 | * The prototype for cwfliM_wpclsQueryInstanceFilter was replaced by the following prototype:
|
---|
92 | */
|
---|
93 | SOM_Scope PSZ SOMLINK cwfliM_wpclsQueryInstanceFilter(M_MMFLI *somSelf)
|
---|
94 | {
|
---|
95 | /* M_CWFLIData *somThis = M_CWFLIGetData(somSelf); */
|
---|
96 | M_MMFLIMethodDebug("M_MMFLI","cwfliM_wpclsQueryInstanceFilter");
|
---|
97 |
|
---|
98 | return "*.FLI,*.FLC"; /* FLI: MM-Config, to be removed!! */
|
---|
99 | }
|
---|
100 |
|
---|
101 |
|
---|
102 | /*
|
---|
103 | * SOM_Scope ULONG SOMLINK cwfliM_wpclsQueryIconData(M_CWFLI *somSelf,
|
---|
104 | * PICONINFO pIconInfo)
|
---|
105 | */
|
---|
106 |
|
---|
107 | /*
|
---|
108 | * The prototype for cwfliM_wpclsQueryIconData was replaced by the following prototype:
|
---|
109 | */
|
---|
110 | SOM_Scope ULONG SOMLINK cwfliM_wpclsQueryIconData(M_MMFLI *somSelf,
|
---|
111 | PICONINFO pIconInfo)
|
---|
112 | {
|
---|
113 | HMODULE hmod;
|
---|
114 | /* M_CWFLIData *somThis = M_CWFLIGetData(somSelf); */
|
---|
115 | M_MMFLIMethodDebug("M_MMFLI","cwfliM_wpclsQueryIconData");
|
---|
116 |
|
---|
117 | hmod=queryModuleHandle();
|
---|
118 | if(!hmod)
|
---|
119 | return M_MMFLI_parent_M_MMVideo_wpclsQueryIconData(somSelf, pIconInfo);
|
---|
120 |
|
---|
121 | if (pIconInfo) {
|
---|
122 | pIconInfo->fFormat = ICON_RESOURCE;
|
---|
123 | pIconInfo->hmod = hmod;
|
---|
124 | pIconInfo->resid = ID_ICONMOVFILE;
|
---|
125 | } /* endif */
|
---|
126 |
|
---|
127 | return ( sizeof(ICONINFO) );
|
---|
128 | }
|
---|
129 |
|
---|
130 |
|
---|
131 |
|
---|
132 | /*
|
---|
133 | * SOM_Scope BOOL SOMLINK cwfliM_wpclsQueryDefaultHelp(M_CWFLI *somSelf,
|
---|
134 | * PULONG pHelpPanelId,
|
---|
135 | * PSZ pszHelpLibrary)
|
---|
136 | */
|
---|
137 |
|
---|
138 | /*
|
---|
139 | * The prototype for cwfliM_wpclsQueryDefaultHelp was replaced by the following prototype:
|
---|
140 | */
|
---|
141 | SOM_Scope BOOL SOMLINK cwfliM_wpclsQueryDefaultHelp(M_MMFLI *somSelf,
|
---|
142 | PULONG pHelpPanelId,
|
---|
143 | PSZ pszHelpLibrary)
|
---|
144 | {
|
---|
145 | /* M_CWFLIData *somThis = M_CWFLIGetData(somSelf); */
|
---|
146 | M_MMFLIMethodDebug("M_MMFLI","cwfliM_wpclsQueryDefaultHelp");
|
---|
147 |
|
---|
148 | if(pHelpPanelId)
|
---|
149 | *pHelpPanelId=FLIFILE_HELP_PANEL;
|
---|
150 | if(pszHelpLibrary)
|
---|
151 | strncpy(pszHelpLibrary, chrHelpLibrary, CCHMAXPATH);
|
---|
152 | return TRUE;
|
---|
153 | }
|
---|
154 |
|
---|