Changeset 74 for branches/v2.9_Lars
- Timestamp:
- Sep 30, 2023, 11:06:42 PM (23 months ago)
- Location:
- branches/v2.9_Lars
- Files:
-
- 61 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/v2.9_Lars/JPGPROC/source/jpegio.def
r2 r74 1 1 ;/* 2 ; * Copyright (c) Chris Wohlgemuth 2002 2 ; * Copyright (c) Chris Wohlgemuth 2002 3 3 ; * All rights reserved. 4 4 ; * … … 31 31 ; */ 32 32 LIBRARY JPEGIO INITINSTANCE TERMINSTANCE 33 DESCRIPTION '$@#(C) C. Wohlgemuth 2002:#@##1## 13.07.2002 15:17:00 My ;-) : :::0::@@ JPEG IO procedure V0.1.0' 33 DESCRIPTION '$@#(C) C. Wohlgemuth 2002:#@##1## 13.07.2002 15:17:00 My ;-) : :::0::@@ JPEG IO procedure V0.1.0' 34 34 DATA MULTIPLE NONSHARED 35 35 SEGMENTS 36 36 shardata CLASS 'DATA' SHARED 37 HEAPSIZE 038 BASE = 0x1B13000039 IMPORTS40 37 EXPORTS 41 IOProc_Entry @138 IOProc_Entry 42 39 -
branches/v2.9_Lars/JPGPROC/source/jpgfunc.c
r2 r74 1 1 /* 2 * Copyright (c) Chris Wohlgemuth 2002 2 * Copyright (c) Chris Wohlgemuth 2002 3 3 * All rights reserved. 4 4 * … … 35 35 /************************************************************************/ 36 36 37 #define INCL_32 * force 32 bit compile37 #define INCL_32 /* force 32 bit compile */ 38 38 #define INCL_GPIBITMAPS 39 39 #define INCL_DOSFILEMGR … … 42 42 #define INCL_WIN 43 43 #define INCL_GPI 44 #define INCL_PM /* force 32 bit compile */44 #define INCL_PM 45 45 46 46 /************************************************************************/ … … 62 62 * Caller assures that no two instances execute this code 63 63 * at the same time. 64 * 00) Change name to _DLL_InitTerm and use the linkage pragma.65 64 *************************************************************************************/ 66 65 /************************************************************************************* … … 71 70 HMODULE hModuleHandle; 72 71 73 #pragma linkage (_DLL_InitTerm, system) 74 //#pragma checkout (suspend) /* Prevent unreferenced parameter messages */ 75 ULONG _DLL_InitTerm (ULONG hModHandle, ULONG fTerm/*, BOOL FirstInstance*/) 72 73 ULONG APIENTRY _DLL_InitTerm(ULONG modhandle,ULONG flag); 74 int _CRT_init(void); 75 void _CRT_term(void); 76 77 ULONG APIENTRY _DLL_InitTerm (ULONG hModHandle, ULONG fTerm) 76 78 { 77 79 hModuleHandle = hModHandle; /* Remember for NLS lookup */ … … 80 82 return (0L); 81 83 } /* endif */ 84 else { 85 _CRT_term(); 86 } 82 87 83 88 return (1L); /* Success */ 84 89 } /* DLL_InitTerm */ 85 //#pragma checkout (resume)86 90 87 91 -
branches/v2.9_Lars/JPGPROC/source/makefile
r53 r74 1 1 #/* 2 # * Copyright (c) Chris Wohlgemuth 2002 2 # * Copyright (c) Chris Wohlgemuth 2002 3 3 # * All rights reserved. 4 4 # * … … 60 60 ################################# 61 61 MAPSYM=mapsym 62 LIBS= MMPM2.LIB U:/usr/lib/GBM/GBM.LIB62 LIBS= MMPM2.LIB D:/usr/lib/GBM/GBM.LIB 63 63 LDFLAGS = -Ge- /Gm+ -G4 /ss -Gl /O+ -Oc+ -Ol- /Q+ /B"/NOE" 64 64 … … 72 72 # Target Descriptions 73 73 ################################# 74 all: JPEGIO.DLL 75 #iotest.exe 74 all: JPEGIO.DLL 75 #iotest.exe 76 76 77 77 -
branches/v2.9_Lars/classes/c/c_audio/cwaudio.c
r60 r74 1 2 /* 3 * This file was generated by the SOM Compiler. 4 * Generated using: 5 * SOM incremental update: 2.47 6 */ 7 1 8 2 9 /* … … 666 673 * The prototype for cwaudio_cwmmSetTrackInfo was replaced by the following prototype: 667 674 */ 675 676 /* 677 * SOM_Scope BOOL SOMLINK cwaudio_cwmmSetTrackInfo(MMAudio *somSelf, 678 * char* chrString, 679 * ULONG ulValue, 680 * int iWhich) 681 */ 682 683 /* 684 * The prototype for cwaudio_cwmmSetTrackInfo was replaced by the following prototype: 685 */ 668 686 SOM_Scope BOOL SOMLINK cwaudio_cwmmSetTrackInfo(MMAudio *somSelf, 669 687 char* chrString, 670 688 ULONG ulValue, 671 intiWhich)689 ULONG iWhich) 672 690 { 673 691 ULONG ulError; … … 941 959 /* successful completion. */ 942 960 /*!!******************************************************/ 961 962 /* 963 * SOM_Scope ULONG SOMLINK cwaudio_cwmmQueryTrackInfo(MMAudio *somSelf, 964 * PSZ chrString, 965 * ULONG ulSize, 966 * int iWhich) 967 */ 968 969 /* 970 * The prototype for cwaudio_cwmmQueryTrackInfo was replaced by the following prototype: 971 */ 943 972 SOM_Scope ULONG SOMLINK cwaudio_cwmmQueryTrackInfo(MMAudio *somSelf, 944 973 PSZ chrString, 945 974 ULONG ulSize, 946 intiWhich)975 ULONG iWhich) 947 976 { 948 977 MMAudioData *somThis = MMAudioGetData(somSelf); -
branches/v2.9_Lars/classes/c/c_audio/cwcdtrack.c
r2 r74 1 2 /* 3 * This file was generated by the SOM Compiler. 4 * Generated using: 5 * SOM incremental update: 2.47 6 */ 7 1 8 2 9 /* … … 281 288 * The prototype for cwcdtrack_cwmmQueryTrackInfo was replaced by the following prototype: 282 289 */ 290 291 /* 292 * SOM_Scope ULONG SOMLINK cwcdtrack_cwmmQueryTrackInfo(MMCDTrack *somSelf, 293 * PSZ chrString, 294 * ULONG ulSize, 295 * int iWhich) 296 */ 297 298 /* 299 * The prototype for cwcdtrack_cwmmQueryTrackInfo was replaced by the following prototype: 300 */ 283 301 SOM_Scope ULONG SOMLINK cwcdtrack_cwmmQueryTrackInfo(MMCDTrack *somSelf, 284 302 PSZ chrString, 285 303 ULONG ulSize, 286 intiWhich)304 ULONG iWhich) 287 305 { 288 306 MMCDTrackData *somThis = MMCDTrackGetData(somSelf); -
branches/v2.9_Lars/classes/c/c_audio/cwmp3.c
r2 r74 1 2 /* 3 * This file was generated by the SOM Compiler. 4 * Generated using: 5 * SOM incremental update: 2.47 6 */ 7 8 1 9 /* 2 10 * (C) Chris Wohlgemuth 2002-2004 … … 847 855 * cwmmAddTrackNamePage : override; 848 856 */ 857 858 /* 859 * SOM_Scope ULONG SOMLINK cwmp3_cwmmQueryTrackInfo(MMMP3 *somSelf, 860 * PSZ chrString, 861 * ULONG ulSize, 862 * int iWhich) 863 */ 864 865 /* 866 * The prototype for cwmp3_cwmmQueryTrackInfo was replaced by the following prototype: 867 */ 849 868 SOM_Scope ULONG SOMLINK cwmp3_cwmmQueryTrackInfo(MMMP3 *somSelf, 850 869 PSZ chrString, 851 870 ULONG ulSize, 852 intiWhich)871 ULONG iWhich) 853 872 { 854 873 somId id; -
branches/v2.9_Lars/classes/c/c_audio/cwogg.c
r2 r74 1 2 /* 3 * This file was generated by the SOM Compiler. 4 * Generated using: 5 * SOM incremental update: 2.47 6 */ 7 8 1 9 /* 2 10 * (C) Chris Wohlgemuth 2002-2004 … … 88 96 * The prototype for cwogg_cwmmQueryTrackInfo was replaced by the following prototype: 89 97 */ 98 99 /* 100 * SOM_Scope ULONG SOMLINK cwogg_cwmmQueryTrackInfo(MMOGG *somSelf, 101 * PSZ chrString, 102 * ULONG ulSize, 103 * int iWhich) 104 */ 105 106 /* 107 * The prototype for cwogg_cwmmQueryTrackInfo was replaced by the following prototype: 108 */ 90 109 SOM_Scope ULONG SOMLINK cwogg_cwmmQueryTrackInfo(MMOGG *somSelf, 91 110 PSZ chrString, 92 111 ULONG ulSize, 93 intiWhich)112 ULONG iWhich) 94 113 { 95 114 /* MMOGGData *somThis = MMOGGGetData(somSelf); */ -
branches/v2.9_Lars/classes/c/c_common/except.c
r41 r74 459 459 460 460 return 'c'; 461 } 461 } 462 462 463 463 ULONG _System excHandler(PEXCEPTIONREPORTRECORD pERepRec, … … 515 515 { 516 516 ULONG rc = XCPT_CONTINUE_SEARCH; 517 517 518 518 if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND) 519 519 return (XCPT_CONTINUE_SEARCH); … … 522 522 if (pERepRec->fHandlerFlags & EH_NESTED_CALL) 523 523 return (XCPT_CONTINUE_SEARCH); 524 524 525 525 if ((pERepRec->ExceptionNum & XCPT_SEVERITY_CODE) == XCPT_FATAL_EXCEPTION) 526 526 { … … 655 655 } 656 656 #endif 657 657 658 658 fAlreadyTrapped = TRUE; 659 659 /* end John Currier's recursion prevention */ … … 1181 1181 } 1182 1182 1183 #include <exe.h>1184 1183 #include <newexe.h> 1185 1184 #define FOR_EXEHDR 1 /* avoid define conflicts between newexe.h and exe386.h */ … … 1835 1834 do { 1836 1835 read(fh,(void *)&FirstLine,sizeof(FirstLine)); 1837 1836 1838 1837 if (FirstLine.LineNum!=0) { 1839 1838 fprintf(hTrap,"Missing Line table information\n"); … … 1864 1863 } 1865 1864 break; 1866 1865 1867 1866 case 1: 1868 1867 lseek(fh, sizeof(struct linlist_rec), SEEK_CUR); 1869 1868 break; 1870 1869 1871 1870 case 2: 1872 1871 lseek(fh, sizeof(struct linsourcelist_rec), SEEK_CUR); 1873 1872 break; 1874 1873 1875 1874 case 3: 1876 1875 lseek(fh, sizeof(struct filenam_rec), SEEK_CUR); 1877 1876 break; 1878 1877 1879 1878 case 4: 1880 1879 lseek(fh, sizeof(struct pathtab_rec), SEEK_CUR); 1881 1880 break; 1882 1881 1883 1882 } 1884 1883 } -
branches/v2.9_Lars/classes/c/c_common/helper.c
r57 r74 19 19 /* 20 20 * If you need another license for your prject/product contact me at 21 * 21 * 22 22 * http://www.os2world.com/cdwriting 23 23 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 41 41 42 42 #ifndef BS_NOTEBOOKBUTTON 43 #define BS_NOTEBOOKBUTTON 8L /* Warp 4 notebook style */ 43 #define BS_NOTEBOOKBUTTON 8L /* Warp 4 notebook style */ 44 44 #endif 45 45 … … 66 66 67 67 68 memset(&pDetails, 0, sizeof(pDetails)); 68 memset(&pDetails, 0, sizeof(pDetails)); 69 69 pDetails.Length = sizeof(PROGDETAILS); 70 70 pDetails.progt.progc = PROG_DEFAULT; … … 81 81 } 82 82 pDetails.pszExecutable = wrapperExe; 83 83 84 84 pDetails.pszEnvironment = NULLHANDLE; 85 85 pDetails.swpInitial.fl = SWP_ACTIVATE|SWP_ZORDER; /* window positioning */ … … 92 92 // pDetails.swpInitial.ulReserved1 = 0; 93 93 // pDetails.swpInitial.ulReserved2 = 0; 94 94 95 95 /* Create an object window which will process the WM_APPTERMINATE message. While processing of this 96 96 message the view item (see below) will be removed from the inuse list thus removing the inuse emphasis. */ … … 150 150 if(!hModule) 151 151 { 152 152 153 153 if(queryModuleHandle()) 154 154 { … … 170 170 if(NO_ERROR!=DosScanEnv("LANG", &pszLang)) 171 171 break; 172 172 173 173 /* Skip leading spaces */ 174 174 chrPtr=pszLang; 175 175 while(*chrPtr==' ') 176 176 chrPtr++; 177 177 178 178 /* Check if value seems to be valid. The var must be something like xx_XX thus length is 5 */ 179 179 if(strlen(chrPtr)<5) 180 180 break; 181 182 /* Extract the first two chars */ 181 182 /* Extract the first two chars */ 183 183 sprintf(buf, RESDLLNAME, chrPtr[0], chrPtr[1]); 184 184 strcat(resDLLPath,buf); … … 187 187 // HlpWriteToTrapLog(resDLLPath); 188 188 // HlpWriteToTrapLog("\n"); 189 189 190 190 rc=DosLoadModule(buf,sizeof(buf), resDLLPath, &hModule); 191 191 if(rc==NO_ERROR) 192 192 break; 193 193 194 194 /* Insert message in Logfile */ 195 195 // writeLog("Ressource-DLL for the current countrycode not found. Trying to load default one (CDFLD001.DLL).\n"); 196 196 197 197 /* NLS DLL not found. Try to load default */ 198 198 found=strrchr(resDLLPath,'\\'); 199 199 if(!found) 200 200 break; 201 201 202 202 *found=0; 203 203 … … 206 206 // HlpWriteToTrapLog(resDLLPath); 207 207 // HlpWriteToTrapLog("\n"); 208 208 209 209 rc=DosLoadModule(buf,sizeof(buf), resDLLPath, &hModule); 210 210 if(rc!=NO_ERROR) { … … 215 215 //writeLog("Ressource DLL loaded.\n"); 216 216 } 217 217 218 218 break; 219 219 }while(TRUE); … … 242 242 ULONG ulObj, ulBufLen, ulOffset; 243 243 char thePath[CCHMAXPATH]; 244 244 245 245 if(DosQueryModFromEIP( &hModule, 246 246 &ulObj, … … 248 248 thePath, 249 249 &ulOffset, 250 ( PVOID)queryModuleHandle )!=NO_ERROR) {250 (ULONG)queryModuleHandle )!=NO_ERROR) { 251 251 SysWriteToTrapLog("Can't get module handle for CWMM class DLL!\n"); 252 252 hModule=0; … … 291 291 strncpy(classDLLPath,moduleName, sizeof(classDLLPath)); 292 292 classDLLPath[sizeof(classDLLPath)-1]=0; 293 293 294 294 /* Get install dir */ 295 295 strncpy(chrInstallDir,moduleName, sizeof(chrInstallDir)); … … 303 303 strncpy(classDLLPath,chrInstallDir, sizeof(classDLLPath)); 304 304 classDLLPath[sizeof(classDLLPath)-1]=0; 305 305 306 306 /* Get install dir */ 307 307 if((chrPtr=strrchr(chrInstallDir,'\\'))!=NULLHANDLE) … … 352 352 HENUM henum; 353 353 HWND hwnd; 354 354 355 355 /* Move the default notebook buttons */ 356 356 if((henum=WinBeginEnumWindows(hwndDlg))!=NULLHANDLE) { … … 396 396 { 397 397 snprintf(setup, sizeof(setup), "LOCATOR=%s;%s", chrUrl, "OPEN=DEFAULT"); 398 WinCreateObject("WPUrl","tempUrl", setup, tempDir, 398 WinCreateObject("WPUrl","tempUrl", setup, tempDir, 399 399 CO_UPDATEIFEXISTS); 400 400 /* WinDestroyObject(hObject); Don't use it, blocks PM */ … … 402 402 } 403 403 404 /* This function checks if the given file exists */ 404 /* This function checks if the given file exists */ 405 405 ULONG checkFileSize(char* chrFileName) 406 406 { … … 410 410 if(stat(chrFileName , &statBuf)==-1) 411 411 return 0; 412 412 413 413 return statBuf.st_size; 414 414 } -
branches/v2.9_Lars/classes/c/c_mm/mmfolder.c
r69 r74 17 17 * along with this program; see the file COPYING. If not, write to 18 18 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 19 */ 19 */ 20 20 /* 21 21 * If you need another license for your project/product (commercial, 22 22 * noncommercial, whatever) contact me at 23 * 23 * 24 24 * http://www.os2world.com/cdwriting 25 25 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 28 28 /* 29 29 * This file was generated by the SOM Compiler and Emitter Framework. 30 * Generated using: 30 * Generated using: 31 31 * SOM Emitter emitctm: 2.42 32 32 */ … … 77 77 somId mySomId; 78 78 static SOMClass * mWPFolderClass=NULLHANDLE; 79 79 80 80 if(!mWPFolderClass) { 81 81 if((mySomId=somIdFromString("WPFolder"))!=NULLHANDLE) { … … 107 107 somId mySomId; 108 108 static SOMClass *mWPImgClass=NULL; 109 109 110 110 if(!mWPImgClass) { 111 111 if((mySomId=somIdFromString("MMBitmap"))!=NULLHANDLE) { … … 117 117 } 118 118 119 MRESULT EXPENTRY mmFolderContainerProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 119 MRESULT EXPENTRY mmFolderContainerProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 120 120 { 121 121 HWND hwndStore; … … 136 136 137 137 if(pCnrInfo) { 138 // writeLog("flWindowAttr: 0x%x, Mask: 0x%x, cxTreeIndent: %d, cyLineSpacing: %d\n", 138 // writeLog("flWindowAttr: 0x%x, Mask: 0x%x, cxTreeIndent: %d, cyLineSpacing: %d\n", 139 139 // pCnrInfo->flWindowAttr, LONGFROMMP(mp2), pCnrInfo->cxTreeIndent, pCnrInfo->cyLineSpacing); 140 140 … … 147 147 somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER); 148 148 if(somIsObj(somSelf)) { 149 MMFolderData *somThis = MMFolderGetData(somSelf); 150 149 MMFolderData *somThis = MMFolderGetData(somSelf); 150 151 151 pCnrInfo->flWindowAttr&=~CA_DRAWICON; 152 152 pCnrInfo->flWindowAttr|=CA_DRAWBITMAP|CA_OWNERDRAW; 153 153 pCnrInfo->slBitmapOrIcon.cx=_ulCurrentSize; 154 154 pCnrInfo->slBitmapOrIcon.cy=_ulCurrentSize; 155 155 156 156 mp2=MPFROMLONG(LONGFROMMP(mp2)|CMA_SLBITMAPORICON|CMA_FLWINDOWATTR); 157 157 } … … 183 183 somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER); 184 184 if(somIsObj(somSelf)) { 185 MMFolderData *somThis = MMFolderGetData(somSelf); 185 MMFolderData *somThis = MMFolderGetData(somSelf); 186 186 if(_oldContainerProc) 187 187 return _oldContainerProc(hwnd, msg, mp1, mp2); 188 188 } 189 189 } 190 } 190 } 191 191 return WinDefWindowProc(hwnd, msg, mp1, mp2); 192 192 } … … 239 239 HPOINTER hptrTemplate; 240 240 HMODULE hmodTemplate; 241 241 242 242 if(!DosQueryModuleHandle("PMWP",&hmodTemplate)) 243 243 { 244 244 ULONG ulIconSize; 245 245 246 246 hptrTemplate=WinLoadPointer(HWND_DESKTOP, hmodTemplate, 20); 247 247 WinDrawPointer(hps, rcl->xLeft, rcl->yBottom, hptrTemplate, (flCnr & CV_MINI ? DP_MINI:DP_NORMAL)); … … 255 255 return DP_MINI; 256 256 } 257 257 258 258 return DP_NORMAL; 259 259 } 260 260 261 261 262 MRESULT EXPENTRY mmFolderFrameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 262 MRESULT EXPENTRY mmFolderFrameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 263 263 { 264 264 HWND hwndStore; … … 273 273 { 274 274 POWNERITEM pOwnerItem=(POWNERITEM)PVOIDFROMMP(mp2); 275 275 276 276 277 277 /* We only draw icons not text */ … … 299 299 POINTL pointl; 300 300 301 WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE); 301 WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE); 302 302 GpiSetPattern(pOwnerItem->hps,PATSYM_DIAG2); 303 303 pointl.x = rclTemp.xLeft; … … 307 307 pointl.y = rclTemp.yTop - 1; 308 308 GpiSetColor(pOwnerItem->hps, CLR_BLACK); 309 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1); 310 309 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1); 310 311 311 } 312 312 /* Check if record is in use */ … … 314 314 POINTL pointl; 315 315 316 WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE); 316 WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE); 317 317 GpiSetPattern(pOwnerItem->hps,PATSYM_DIAG1); 318 318 pointl.x = rclTemp.xLeft; … … 322 322 pointl.y = rclTemp.yTop - 1; 323 323 GpiSetColor(pOwnerItem->hps, CLR_BLACK); 324 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1); 324 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1); 325 325 } 326 326 /* or is it only selected? */ … … 330 330 else 331 331 WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE); 332 /* Emphasis drawn */ 332 /* Emphasis drawn */ 333 333 334 334 /********************************************/ … … 340 340 WPObject *wpObject; 341 341 ULONG ulIconSize=150;/* Default if query fails */ 342 342 343 343 wpObject=(WPObject*)OBJECT_FROM_PREC(mrc); // Get object 344 344 wpObject=somGetFileSystemObject(wpObject); // Get Filesystem object … … 356 356 SysWriteToTrapLog("Object is an image. (%s line: %d)\n", __FUNCTION__, __LINE__); 357 357 #endif 358 /* Get object pointer of lighttable folder */ 358 /* Get object pointer of lighttable folder */ 359 359 if((hwndStore=WinWindowFromID(hwnd, STOREWINDOWID))!=NULLHANDLE) 360 360 { 361 361 somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER); 362 362 if(somIsObj(somSelf)) { 363 MMFolderData *somThis = MMFolderGetData(somSelf); 363 MMFolderData *somThis = MMFolderGetData(somSelf); 364 364 ulIconSize=_ulCurrentSize; 365 365 } … … 423 423 /* And now draw the bitmap */ 424 424 #if 0 425 if(pBmpInfoHeader2->cclrUsed==2) { 425 if(pBmpInfoHeader2->cclrUsed==2) { 426 426 WinDrawBitmap(pOwnerItem->hps, hbm, NULL, (PPOINTL)&rcl,//pOwnerItem->rclItem, 427 427 CLR_WHITE, CLR_BLACK, DBM_STRETCH /*| DBM_IMAGEATTRS*/); … … 437 437 /* Done */ 438 438 if(_somIsA(wpObject, cwImageClass)) { 439 440 441 442 MMBitmap_cwmmFreeSmallBitmap((MMBitmap*)wpObject);439 MMImage_cwmmFreeSmallBitmap((MMImage *)wpObject); 440 } 441 else { 442 MMBitmap_cwmmFreeSmallBitmap((MMBitmap*)wpObject); 443 443 } 444 444 return (MRESULT) TRUE; … … 474 474 { 475 475 SOMClass* wpFolderClass=queryWpFolderClass(); 476 476 477 477 if(somIsObj(wpFolderClass)) { 478 if(_somIsA(wpObject, wpFolderClass)) { 478 if(_somIsA(wpObject, wpFolderClass)) { 479 479 /* It's a folder */ 480 480 HPOINTER hptr; 481 481 482 482 pOwnerItem->rclItem.xLeft=rcl.xLeft; 483 483 pOwnerItem->rclItem.yBottom=rcl.yBottom; 484 484 485 485 /* The following is only for Warp 4 but Warp 3 isn't supported anyway...*/ 486 486 hptr=_wpQueryIconN(wpObject,1); … … 489 489 return (MRESULT) TRUE; 490 490 } 491 491 492 492 } 493 493 }/* if(somIsObj(wpFolderClass)) */ 494 494 }/* if(pCnrDrawItemInfo->pRecord->flRecordAttr & CRA_INUSE) */ 495 495 496 496 if(WinDrawPointer(pOwnerItem->hps, rcl.xLeft, rcl.yBottom, mrc->hptrIcon, ulMiniOrNormal)) { 497 497 cwDraw2ColorBorder(pOwnerItem->hps, &rclTemp, CLR_BLACK, CLR_DARKGRAY); … … 508 508 /*************************/ 509 509 PCNRDRAWITEMINFO pCnrDrawItemInfo=(PCNRDRAWITEMINFO)pOwnerItem->hItem; 510 510 511 511 if(pCnrDrawItemInfo && pCnrDrawItemInfo->pFieldInfo->flData & CFA_BITMAPORICON) { 512 512 PMINIRECORDCORE mrc=(PMINIRECORDCORE)((PCNRDRAWITEMINFO)pOwnerItem->hItem)->pRecord; … … 517 517 HWND hwndCnr=WinWindowFromID(hwnd, FID_CLIENT); 518 518 RECTL rclTemp=pOwnerItem->rclItem; 519 519 520 520 wpObjToRefresh=(WPObject*)OBJECT_FROM_PREC(mrc);//Get object 521 521 wpObject=somGetFileSystemObject(wpObjToRefresh); 522 522 523 523 /* Draw Background */ 524 524 rclTemp.xLeft+=2; … … 526 526 rclTemp.yBottom+=2; 527 527 rclTemp.yTop-=2; 528 528 529 529 /* Check if record is selected and in use... */ 530 530 if((pCnrDrawItemInfo->pRecord->flRecordAttr & CRA_INUSE) 531 531 && (pCnrDrawItemInfo->pRecord->flRecordAttr & CRA_SELECTED)) { 532 532 POINTL pointl; 533 533 534 534 GpiSetPattern(pOwnerItem->hps,PATSYM_DIAG2); 535 535 pointl.x = rclTemp.xLeft; … … 539 539 pointl.y = rclTemp.yTop - 1; 540 540 GpiSetColor(pOwnerItem->hps, CLR_BLACK); 541 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1); 542 541 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1); 542 543 543 } 544 544 /* or only in use... */ 545 545 else if(pCnrDrawItemInfo->pRecord->flRecordAttr & CRA_INUSE) { 546 546 POINTL pointl; 547 547 548 548 GpiSetPattern(pOwnerItem->hps,PATSYM_DIAG1); 549 549 pointl.x = rclTemp.xLeft; … … 553 553 pointl.y = rclTemp.yTop - 1; 554 554 GpiSetColor(pOwnerItem->hps, CLR_BLACK); 555 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1); 555 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1); 556 556 } 557 557 /* or only selected. */ … … 564 564 SOMClass* cwBitmapClass=queryCWBitmapFileClass(); 565 565 SOMClass* cwImageClass=queryCWImageFileClass(); 566 566 567 567 if(somIsObj(cwImageClass)||somIsObj(cwBitmapClass)) { 568 568 HBITMAP hbm=NULLHANDLE; 569 569 PBITMAPINFOHEADER2 pBmpInfoHeader2; 570 570 571 571 /* Query object pointer */ 572 572 if((hwndStore=WinWindowFromID(hwnd, STOREWINDOWID))!=NULLHANDLE) … … 574 574 somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER); 575 575 if(somIsObj(somSelf)) { 576 MMFolderData *somThis = MMFolderGetData(somSelf); 576 MMFolderData *somThis = MMFolderGetData(somSelf); 577 577 ulIconSize=_ulCurrentSize; 578 578 } 579 579 } 580 /* Get the small bitmap from the object */ 580 /* Get the small bitmap from the object */ 581 581 if(_somIsA(wpObject, cwImageClass)) { 582 582 hbm=MMImage_cwmmQuerySmallBitmapHandle( (MMImage*) wpObject, ulIconSize, mrc, hwndCnr); … … 584 584 } 585 585 else if(_somIsA(wpObject, cwBitmapClass)) { 586 hbm=MMBitmap_cwmmQuerySmallBitmapHandle( (MM Image*) wpObject, ulIconSize);586 hbm=MMBitmap_cwmmQuerySmallBitmapHandle( (MMBitmap*) wpObject, ulIconSize); 587 587 pBmpInfoHeader2=(PBITMAPINFOHEADER2)_wpQueryBitmapInfoHeader((MMBitmap*)wpObject); 588 588 } … … 636 636 } 637 637 if(_somIsA(wpObject, cwImageClass)) { 638 639 640 641 642 }638 MMImage_cwmmFreeSmallBitmap((MMImage *)wpObject); 639 } 640 else { 641 MMBitmap_cwmmFreeSmallBitmap((MMBitmap*)wpObject); 642 } 643 643 return (MRESULT) TRUE; 644 644 }/* hbm */ … … 684 684 somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER); 685 685 if(somIsObj(somSelf)) { 686 MMFolderData *somThis = MMFolderGetData(somSelf); 686 MMFolderData *somThis = MMFolderGetData(somSelf); 687 687 switch(_usLastSelMenuItem) 688 688 { … … 701 701 /* insert separator */ 702 702 menuInsertMenuSeparator( HWNDFROMMP(mp2), NULLHANDLE, MIT_END); 703 703 704 704 /* Load the menu from the resource */ 705 705 hwndMenu=WinLoadMenu(hwnd,queryResModuleHandle(), ID_MENUICONSIZE); 706 706 707 707 /* Fill the MENUITEM structure */ 708 708 mi.iPosition=MIT_END; 709 709 mi.afStyle=MIS_TEXT|MIS_SUBMENU; 710 710 mi.id=ID_MENUICONSIZE; 711 mi.afAttribute=NULLHANDLE; 711 mi.afAttribute=NULLHANDLE; 712 712 mi.hwndSubMenu=hwndMenu; 713 713 mi.hItem=NULLHANDLE; … … 715 715 strcpy(text, "Icon ~size");; 716 716 menuInsertMenuItem(HWNDFROMMP(mp2), hwndMenu, MIT_END, ID_MENUICONSIZE, text); 717 717 718 718 /* check current menuitem */ 719 719 switch(_ulCurrentSize) … … 738 738 break; 739 739 default: 740 break; 740 break; 741 741 } 742 742 } … … 755 755 somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER); 756 756 if(somIsObj(somSelf)) { 757 MMFolderData *somThis = MMFolderGetData(somSelf); 757 MMFolderData *somThis = MMFolderGetData(somSelf); 758 758 _usLastSelMenuItem=SHORT1FROMMP(mp1); 759 759 } … … 768 768 somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER); 769 769 if(somIsObj(somSelf)) { 770 MMFolderData *somThis = MMFolderGetData(somSelf); 770 MMFolderData *somThis = MMFolderGetData(somSelf); 771 771 if(_oldFrameProc) 772 772 return _oldFrameProc(hwnd, msg, mp1, mp2); 773 773 } 774 774 } 775 775 776 776 return WinDefWindowProc(hwnd, msg, mp1, mp2); 777 777 } … … 781 781 */ 782 782 783 SOM_Scope HWND SOMLINK mmfldr_wpOpen(MMFolder *somSelf, HWND hwndCnr, 783 SOM_Scope HWND SOMLINK mmfldr_wpOpen(MMFolder *somSelf, HWND hwndCnr, 784 784 ULONG ulView, ULONG param) 785 785 { 786 786 HWND hwnd; 787 787 788 MMFolderData *somThis = MMFolderGetData(somSelf); 788 MMFolderData *somThis = MMFolderGetData(somSelf); 789 789 MMFolderMethodDebug("MMFolder","mmfldr_wpOpen"); 790 790 791 hwnd=(MMFolder_parent_WPFolder_wpOpen(somSelf, hwndCnr, 791 hwnd=(MMFolder_parent_WPFolder_wpOpen(somSelf, hwndCnr, 792 792 ulView, param)); 793 793 794 794 /* Only subclass folder frames, not settings notebooks */ 795 if(ulView!=OPEN_SETTINGS){ 795 if(ulView!=OPEN_SETTINGS){ 796 796 HWND hwndStore; 797 797 … … 799 799 hwnd, HWND_BOTTOM, STOREWINDOWID, NULLHANDLE, NULLHANDLE))!=NULLHANDLE) 800 800 { 801 HWND hwndContainer; 801 HWND hwndContainer; 802 802 803 803 WinSetWindowULong(hwndStore, QWL_USER, (ULONG)somSelf); 804 804 _oldFrameProc=WinSubclassWindow(hwnd, mmFolderFrameProc); 805 805 806 806 if(hwnd) 807 807 { 808 808 CNRINFO cnrInfo; 809 809 HWND hwndContainer=WinWindowFromID(hwnd,FID_CLIENT); 810 810 811 811 /* Change the containerflags */ 812 812 if(WinSendMsg(hwndContainer,CM_QUERYCNRINFO, MPFROMP(&cnrInfo), 813 813 MPFROMSHORT(sizeof(cnrInfo)))) 814 814 { 815 if(cnrInfo.flWindowAttr & CV_ICON) { 815 if(cnrInfo.flWindowAttr & CV_ICON) { 816 816 cnrInfo.slBitmapOrIcon.cx=_ulCurrentSize; 817 817 cnrInfo.slBitmapOrIcon.cy=_ulCurrentSize; … … 834 834 835 835 #if 0 836 SOM_Scope BOOL SOMLINK mmfldr_wpSetupOnce(MMFolder *somSelf, 836 SOM_Scope BOOL SOMLINK mmfldr_wpSetupOnce(MMFolder *somSelf, 837 837 PSZ pszSetupString) 838 838 { … … 859 859 #endif 860 860 861 SOM_Scope BOOL SOMLINK mmfldr_wpRestoreState(MMFolder *somSelf, 861 SOM_Scope BOOL SOMLINK mmfldr_wpRestoreState(MMFolder *somSelf, 862 862 ULONG ulReserved) 863 863 { … … 870 870 } 871 871 872 return (MMFolder_parent_WPFolder_wpRestoreState(somSelf, 872 return (MMFolder_parent_WPFolder_wpRestoreState(somSelf, 873 873 ulReserved)); 874 874 } 875 875 876 SOM_Scope BOOL SOMLINK mmfldr_wpRestoreData(MMFolder *somSelf, 877 PSZ pszClass, ULONG ulKey, 876 SOM_Scope BOOL SOMLINK mmfldr_wpRestoreData(MMFolder *somSelf, 877 PSZ pszClass, ULONG ulKey, 878 878 PBYTE pValue, PULONG pcbValue) 879 879 { … … 882 882 MMFolderMethodDebug("MMFolder","mmfldr_wpRestoreData"); 883 883 884 rc= (MMFolder_parent_WPFolder_wpRestoreData(somSelf, pszClass, 885 ulKey, pValue, 884 rc= (MMFolder_parent_WPFolder_wpRestoreData(somSelf, pszClass, 885 ulKey, pValue, 886 886 pcbValue)); 887 887 switch(ulKey) … … 919 919 MMFolderData *somThis = MMFolderGetData(somSelf); 920 920 MMFolderMethodDebug("MMFolder","mmfldr_wpSaveState"); 921 921 922 922 _wpSaveLong( somSelf, "MMFolder", KEY_ICONSIZE, _ulCurrentSize); 923 923 … … 926 926 927 927 928 SOM_Scope BOOL SOMLINK mmfldr_wpSaveData(MMFolder *somSelf, 929 PSZ pszClass, ULONG ulKey, 928 SOM_Scope BOOL SOMLINK mmfldr_wpSaveData(MMFolder *somSelf, 929 PSZ pszClass, ULONG ulKey, 930 930 PBYTE pValue, ULONG cbValue) 931 931 { … … 937 937 the address of the instance data containing grid spacing and view. So 938 938 we force the object to save the instance data and in wpSaveData we 939 finally get the right addresses to change the object view to gridded. 939 finally get the right addresses to change the object view to gridded. 940 940 This change is done in wpObjectReady() where we called wpSaveImmediate(). */ 941 941 … … 946 946 Check ID for NULL to prevent crash in stricmp(). 947 947 */ 948 psz=_wpQueryObjectID(somSelf); 948 psz=_wpQueryObjectID(somSelf); 949 949 // if(!stricmp(_wpQueryObjectID(somSelf), "<MMPM2_MMFOLDERTEMPLATE>")) 950 950 if(psz && !stricmp(psz, "<MMPM2_MMFOLDERTEMPLATE>")) … … 982 982 } 983 983 984 return (MMFolder_parent_WPFolder_wpSaveData(somSelf, pszClass, 985 ulKey, pValue, 984 return (MMFolder_parent_WPFolder_wpSaveData(somSelf, pszClass, 985 ulKey, pValue, 986 986 cbValue)); 987 987 } 988 988 989 SOM_Scope BOOL SOMLINK mmfldr_wpMenuItemSelected(MMFolder *somSelf, 990 HWND hwndFrame, 989 SOM_Scope BOOL SOMLINK mmfldr_wpMenuItemSelected(MMFolder *somSelf, 990 HWND hwndFrame, 991 991 ULONG ulMenuId) 992 992 { … … 1004 1004 char text[200]; 1005 1005 CNRINFO cnrInfo2=cnrInfo; 1006 1006 1007 1007 switch(ulMenuId) 1008 1008 { … … 1054 1054 } 1055 1055 1056 _wpSetup(somSelf, "MENUITEMSELECTED=716");/* Change to icon view */ 1056 _wpSetup(somSelf, "MENUITEMSELECTED=716");/* Change to icon view */ 1057 1057 _wpSetup(somSelf, "MENUITEMSELECTED=309");/* Arrange */ 1058 1058 … … 1062 1062 } 1063 1063 }/* if() */ 1064 return (MMFolder_parent_WPFolder_wpMenuItemSelected(somSelf, 1065 hwndFrame, 1064 return (MMFolder_parent_WPFolder_wpMenuItemSelected(somSelf, 1065 hwndFrame, 1066 1066 ulMenuId)); 1067 1067 } … … 1071 1071 *wpSetup:override; 1072 1072 */ 1073 SOM_Scope void SOMLINK mmfldr_wpObjectReady(MMFolder *somSelf, 1073 SOM_Scope void SOMLINK mmfldr_wpObjectReady(MMFolder *somSelf, 1074 1074 ULONG ulCode, WPObject* refObject) 1075 1075 { … … 1100 1100 1101 1101 /* If no ID result is NULL */ 1102 psz=_wpQueryObjectID(somSelf); 1102 psz=_wpQueryObjectID(somSelf); 1103 1103 if(psz && !stricmp(psz, "<MMPM2_MMFOLDERTEMPLATE>")) { 1104 1104 /* When the template is created wpRestoreData() isn't called so we don't have … … 1106 1106 we force the object to save the instance data and in wpSaveData we 1107 1107 finally get the right addresses to change the object view to gridded. */ 1108 1108 1109 1109 _wpSaveImmediate(somSelf); 1110 1110 /* Set default view to gridded */ 1111 1111 1112 1112 if(_pFldrLongArray!=NULLHANDLE) { 1113 1113 *_pFldrLongArray=0x80; … … 1120 1120 *(_pulGridSpacing--)=_ulCurrentSize+MMFLDR_SPACINGDELTA_Y; 1121 1121 } 1122 1122 1123 1123 } 1124 1124 break; … … 1137 1137 MMFolderMethodDebug("MMFolder","mmfldr_wpSetup"); 1138 1138 1139 bufferSize=sizeof(buffer); 1139 bufferSize=sizeof(buffer); 1140 1140 if(_wpScanSetupString(somSelf, pszSetupString, SETUP_MMTHUMBSIZE, buffer, &bufferSize)) 1141 1141 { … … 1180 1180 pViewItem=_wpFindViewItem(somSelf,VIEW_CONTENTS|VIEW_TREE|VIEW_DETAILS, pViewItem)) 1181 1181 { 1182 _wpMenuItemSelected(somSelf, 1183 pViewItem->handle, 1182 _wpMenuItemSelected(somSelf, 1183 pViewItem->handle, 1184 1184 ulMenuId); 1185 1185 } … … 1189 1189 1190 1190 1191 SOM_Scope BOOL SOMLINK mmfldrM_wpclsCreateDefaultTemplates(M_MMFolder *somSelf, 1191 SOM_Scope BOOL SOMLINK mmfldrM_wpclsCreateDefaultTemplates(M_MMFolder *somSelf, 1192 1192 WPObject* Folder) 1193 1193 { … … 1205 1205 wpFolder=_wpclsQueryFolder(somSelf, MMTEMPLATE_FOLDER_ID, FALSE); 1206 1206 _wpclsNew(somSelf, _wpclsQueryTitle(somSelf), chrSetup, wpFolder,FALSE); 1207 1207 1208 1208 return TRUE; 1209 1209 } … … 1224 1224 1225 1225 1226 SOM_Scope ULONG SOMLINK mmfldrM_wpclsQueryIconData(M_MMFolder *somSelf, 1226 SOM_Scope ULONG SOMLINK mmfldrM_wpclsQueryIconData(M_MMFolder *somSelf, 1227 1227 PICONINFO pIconInfo) 1228 1228 { … … 1246 1246 1247 1247 1248 SOM_Scope ULONG SOMLINK mmfldrM_wpclsQueryIconDataN(M_MMFolder *somSelf, 1249 ICONINFO* pIconInfo, 1248 SOM_Scope ULONG SOMLINK mmfldrM_wpclsQueryIconDataN(M_MMFolder *somSelf, 1249 ICONINFO* pIconInfo, 1250 1250 ULONG ulIconIndex) 1251 1251 { -
branches/v2.9_Lars/classes/create_cwmm_def.CMD
r2 r74 3 3 call SysLoadFuncs 4 4 5 deffile= ARG(1)5 deffile=strip(ARG(1)) 6 6 if ARG(1)="" then deffile="tst.def" 7 7 … … 39 39 def=def||'0d'x||'0a'x 40 40 41 def=def||"LIBRARY CWMM INIT GLOBAL"||'0d'x||'0a'x41 def=def||"LIBRARY CWMM INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x 42 42 def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth " 43 43 def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||" #@##1## "||DATE("E")||" "||TIME("N")||" My ;-) ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@CWMM-classes V"||theVersion||"'"||'0d'x||'0a'x -
branches/v2.9_Lars/classes/exports.DEF
r2 r74 1 1 PROTMODE 2 2 CODE PRELOAD DISCARDABLE 3 DATA SHARED LOADONCALL4 5 EXPORTS 3 DATA MULTIPLE NONSHARED 4 5 EXPORTS 6 6 ;Audio classes 7 M_MMAudioClassData @18 M_MMAudioCClassData @29 M_MMAudioNewClass @310 MMAudioClassData @411 MMAudioCClassData @512 MMAudioNewClass @613 14 M_MMMP3ClassData @715 M_MMMP3CClassData @816 M_MMMP3NewClass @917 MMMP3ClassData @1018 MMMP3CClassData @1119 MMMP3NewClass @1220 21 M_MMOGGClassData @1322 M_MMOGGCClassData @1423 M_MMOGGNewClass @1524 MMOGGClassData @1625 MMOGGCClassData @1726 MMOGGNewClass @1827 28 M_MMCDTrackClassData @1929 M_MMCDTrackCClassData @2030 M_MMCDTrackNewClass @2131 MMCDTrackClassData @2232 MMCDTrackCClassData @2333 MMCDTrackNewClass @2434 35 M_CWMMDiskClassData @2536 M_CWMMDiskCClassData @2637 M_CWMMDiskNewClass @2738 CWMMDiskClassData @2839 CWMMDiskCClassData @2940 CWMMDiskNewClass @3041 42 M_MMWAVClassData @3143 M_MMWAVCClassData @3244 M_MMWAVNewClass @3345 MMWAVClassData @3446 MMWAVCClassData @3547 MMWAVNewClass @3648 49 M_MMAIFClassData @3750 M_MMAIFCClassData @3851 M_MMAIFNewClass @3952 MMAIFClassData @4053 MMAIFCClassData @4154 MMAIFNewClass @4255 56 M_MMAUClassData @4357 M_MMAUCClassData @4458 M_MMAUNewClass @4559 MMAUClassData @4660 MMAUCClassData @4761 MMAUNewClass @4862 63 M_MM_AUClassData @4964 M_MM_AUCClassData @5065 M_MM_AUNewClass @5166 MM_AUClassData @5267 MM_AUCClassData @5368 MM_AUNewClass @5469 70 M_MMIFFClassData @5571 M_MMIFFCClassData @5672 M_MMIFFNewClass @5773 MMIFFClassData @5874 MMIFFCClassData @5975 MMIFFNewClass @6076 77 M_MMSNDFClassData @6178 M_MMSNDFCClassData @6279 M_MMSNDFNewClass @6380 MMSNDFClassData @6481 MMSNDFCClassData @6582 MMSNDFNewClass @6683 84 M_MMVOCClassData @6785 M_MMVOCCClassData @6886 M_MMVOCNewClass @6987 MMVOCClassData @7088 MMVOCCClassData @7189 MMVOCNewClass @7290 91 M_MMMIDIClassData @7392 M_MMMIDICClassData @7493 M_MMMIDINewClass @7594 MMMIDIClassData @7695 MMMIDICClassData @7796 MMMIDINewClass @787 M_MMAudioClassData 8 M_MMAudioCClassData 9 M_MMAudioNewClass 10 MMAudioClassData 11 MMAudioCClassData 12 MMAudioNewClass 13 14 M_MMMP3ClassData 15 M_MMMP3CClassData 16 M_MMMP3NewClass 17 MMMP3ClassData 18 MMMP3CClassData 19 MMMP3NewClass 20 21 M_MMOGGClassData 22 M_MMOGGCClassData 23 M_MMOGGNewClass 24 MMOGGClassData 25 MMOGGCClassData 26 MMOGGNewClass 27 28 M_MMCDTrackClassData 29 M_MMCDTrackCClassData 30 M_MMCDTrackNewClass 31 MMCDTrackClassData 32 MMCDTrackCClassData 33 MMCDTrackNewClass 34 35 M_CWMMDiskClassData 36 M_CWMMDiskCClassData 37 M_CWMMDiskNewClass 38 CWMMDiskClassData 39 CWMMDiskCClassData 40 CWMMDiskNewClass 41 42 M_MMWAVClassData 43 M_MMWAVCClassData 44 M_MMWAVNewClass 45 MMWAVClassData 46 MMWAVCClassData 47 MMWAVNewClass 48 49 M_MMAIFClassData 50 M_MMAIFCClassData 51 M_MMAIFNewClass 52 MMAIFClassData 53 MMAIFCClassData 54 MMAIFNewClass 55 56 M_MMAUClassData 57 M_MMAUCClassData 58 M_MMAUNewClass 59 MMAUClassData 60 MMAUCClassData 61 MMAUNewClass 62 63 M_MM_AUClassData 64 M_MM_AUCClassData 65 M_MM_AUNewClass 66 MM_AUClassData 67 MM_AUCClassData 68 MM_AUNewClass 69 70 M_MMIFFClassData 71 M_MMIFFCClassData 72 M_MMIFFNewClass 73 MMIFFClassData 74 MMIFFCClassData 75 MMIFFNewClass 76 77 M_MMSNDFClassData 78 M_MMSNDFCClassData 79 M_MMSNDFNewClass 80 MMSNDFClassData 81 MMSNDFCClassData 82 MMSNDFNewClass 83 84 M_MMVOCClassData 85 M_MMVOCCClassData 86 M_MMVOCNewClass 87 MMVOCClassData 88 MMVOCCClassData 89 MMVOCNewClass 90 91 M_MMMIDIClassData 92 M_MMMIDICClassData 93 M_MMMIDINewClass 94 MMMIDIClassData 95 MMMIDICClassData 96 MMMIDINewClass 97 97 98 98 ;Video classes 99 M_MMVideoClassData @79100 M_MMVideoCClassData @80101 M_MMVideoNewClass @81102 MMVideoClassData @82103 MMVideoCClassData @83104 MMVideoNewClass @84105 106 M_MMAVIClassData @85107 M_MMAVICClassData @86108 M_MMAVINewClass @87109 MMAVIClassData @88110 MMAVICClassData @89111 MMAVINewClass @90112 113 M_MMFLIClassData @91114 M_MMFLICClassData @92115 M_MMFLINewClass @93116 MMFLIClassData @94117 MMFLICClassData @95118 MMFLINewClass @96119 120 M_MMMOVClassData @97121 M_MMMOVCClassData @98122 M_MMMOVNewClass @99123 MMMOVClassData @100124 MMMOVCClassData @101125 MMMOVNewClass @102126 127 M_MMMPGClassData @103128 M_MMMPGCClassData @104129 M_MMMPGNewClass @105130 MMMPGClassData @106131 MMMPGCClassData @107132 MMMPGNewClass @10899 M_MMVideoClassData 100 M_MMVideoCClassData 101 M_MMVideoNewClass 102 MMVideoClassData 103 MMVideoCClassData 104 MMVideoNewClass 105 106 M_MMAVIClassData 107 M_MMAVICClassData 108 M_MMAVINewClass 109 MMAVIClassData 110 MMAVICClassData 111 MMAVINewClass 112 113 M_MMFLIClassData 114 M_MMFLICClassData 115 M_MMFLINewClass 116 MMFLIClassData 117 MMFLICClassData 118 MMFLINewClass 119 120 M_MMMOVClassData 121 M_MMMOVCClassData 122 M_MMMOVNewClass 123 MMMOVClassData 124 MMMOVCClassData 125 MMMOVNewClass 126 127 M_MMMPGClassData 128 M_MMMPGCClassData 129 M_MMMPGNewClass 130 MMMPGClassData 131 MMMPGCClassData 132 MMMPGNewClass 133 133 134 134 ;MM-Data file class 135 M_CWMMDataFileClassData @109136 M_CWMMDataFileCClassData @110137 M_CWMMDataFileNewClass @111138 CWMMDataFileClassData @112139 CWMMDataFileCClassData @113140 CWMMDataFileNewClass @114135 M_CWMMDataFileClassData 136 M_CWMMDataFileCClassData 137 M_CWMMDataFileNewClass 138 CWMMDataFileClassData 139 CWMMDataFileCClassData 140 CWMMDataFileNewClass 141 141 142 142 ;Image classes 143 M_MMImageClassData @115144 M_MMImageCClassData @116145 M_MMImageNewClass @117146 MMImageClassData @118147 MMImageCClassData @119148 MMImageNewClass @120149 150 M_MMAVCClassData @121151 M_MMAVCCClassData @122152 M_MMAVCNewClass @123153 MMAVCClassData @124154 MMAVCCClassData @125155 MMAVCNewClass @126156 157 M_MMDIBClassData @127158 M_MMDIBCClassData @128159 M_MMDIBNewClass @129160 MMDIBClassData @130161 MMDIBCClassData @131162 MMDIBNewClass @132163 164 M_MMGIFClassData @133165 M_MMGIFCClassData @134166 M_MMGIFNewClass @135167 MMGIFClassData @136168 MMGIFCClassData @137169 MMGIFNewClass @138170 171 M_MMJPGClassData @139172 M_MMJPGCClassData @140173 M_MMJPGNewClass @141174 MMJPGClassData @142175 MMJPGCClassData @143176 MMJPGNewClass @144177 178 M_MMPhotoCDClassData @145179 M_MMPhotoCDCClassData @146180 M_MMPhotoCDNewClass @147181 MMPhotoCDClassData @148182 MMPhotoCDCClassData @149183 MMPhotoCDNewClass @150184 185 M_MMPCXClassData @151186 M_MMPCXCClassData @152187 M_MMPCXNewClass @153188 MMPCXClassData @154189 MMPCXCClassData @155190 MMPCXNewClass @156191 192 M_MMTargaClassData @157193 M_MMTargaCClassData @158194 M_MMTargaNewClass @159195 MMTargaClassData @160196 MMTargaCClassData @161197 MMTargaNewClass @162198 199 M_MMTIFFClassData @163200 M_MMTIFFCClassData @164201 M_MMTIFFNewClass @165202 MMTIFFClassData @166203 MMTIFFCClassData @167204 MMTIFFNewClass @168205 206 M_MMMMotionClassData @169207 M_MMMMotionCClassData @170208 M_MMMMotionNewClass @171209 MMMMotionClassData @172210 MMMMotionCClassData @173211 MMMMotionNewClass @174212 213 M_MMBitmapClassData @175214 M_MMBitmapCClassData @176215 M_MMBitmapNewClass @177216 MMBitmapClassData @178217 MMBitmapCClassData @179218 MMBitmapNewClass @180143 M_MMImageClassData 144 M_MMImageCClassData 145 M_MMImageNewClass 146 MMImageClassData 147 MMImageCClassData 148 MMImageNewClass 149 150 M_MMAVCClassData 151 M_MMAVCCClassData 152 M_MMAVCNewClass 153 MMAVCClassData 154 MMAVCCClassData 155 MMAVCNewClass 156 157 M_MMDIBClassData 158 M_MMDIBCClassData 159 M_MMDIBNewClass 160 MMDIBClassData 161 MMDIBCClassData 162 MMDIBNewClass 163 164 M_MMGIFClassData 165 M_MMGIFCClassData 166 M_MMGIFNewClass 167 MMGIFClassData 168 MMGIFCClassData 169 MMGIFNewClass 170 171 M_MMJPGClassData 172 M_MMJPGCClassData 173 M_MMJPGNewClass 174 MMJPGClassData 175 MMJPGCClassData 176 MMJPGNewClass 177 178 M_MMPhotoCDClassData 179 M_MMPhotoCDCClassData 180 M_MMPhotoCDNewClass 181 MMPhotoCDClassData 182 MMPhotoCDCClassData 183 MMPhotoCDNewClass 184 185 M_MMPCXClassData 186 M_MMPCXCClassData 187 M_MMPCXNewClass 188 MMPCXClassData 189 MMPCXCClassData 190 MMPCXNewClass 191 192 M_MMTargaClassData 193 M_MMTargaCClassData 194 M_MMTargaNewClass 195 MMTargaClassData 196 MMTargaCClassData 197 MMTargaNewClass 198 199 M_MMTIFFClassData 200 M_MMTIFFCClassData 201 M_MMTIFFNewClass 202 MMTIFFClassData 203 MMTIFFCClassData 204 MMTIFFNewClass 205 206 M_MMMMotionClassData 207 M_MMMMotionCClassData 208 M_MMMMotionNewClass 209 MMMMotionClassData 210 MMMMotionCClassData 211 MMMMotionNewClass 212 213 M_MMBitmapClassData 214 M_MMBitmapCClassData 215 M_MMBitmapNewClass 216 MMBitmapClassData 217 MMBitmapCClassData 218 MMBitmapNewClass 219 219 220 220 ;Light table folder 221 M_MMFolderClassData @181222 M_MMFolderCClassData @182223 M_MMFolderNewClass @183224 MMFolderClassData @184225 MMFolderCClassData @185226 MMFolderNewClass @186221 M_MMFolderClassData 222 M_MMFolderCClassData 223 M_MMFolderNewClass 224 MMFolderClassData 225 MMFolderCClassData 226 MMFolderNewClass 227 227 228 228 ;Audio stream class 229 M_MMAudioStreamClassData @187230 M_MMAudioStreamCClassData @188231 M_MMAudioStreamNewClass @189232 MMAudioStreamClassData @190233 MMAudioStreamCClassData @191234 MMAudioStreamNewClass @192229 M_MMAudioStreamClassData 230 M_MMAudioStreamCClassData 231 M_MMAudioStreamNewClass 232 MMAudioStreamClassData 233 MMAudioStreamCClassData 234 MMAudioStreamNewClass 235 235 236 236 ;M3U playlist 237 M_MMM3UClassData @193238 M_MMM3UCClassData @194239 M_MMM3UNewClass @195240 MMM3UClassData @196241 MMM3UCClassData @197242 MMM3UNewClass @198237 M_MMM3UClassData 238 M_MMM3UCClassData 239 M_MMM3UNewClass 240 MMM3UClassData 241 MMM3UCClassData 242 MMM3UNewClass 243 243 244 244 ;MMPNG class 245 M_MMPNGClassData @199246 M_MMPNGCClassData @200247 M_MMPNGNewClass @201248 MMPNGClassData @202249 MMPNGCClassData @203250 MMPNGNewClass @204245 M_MMPNGClassData 246 M_MMPNGCClassData 247 M_MMPNGNewClass 248 MMPNGClassData 249 MMPNGCClassData 250 MMPNGNewClass 251 251 252 252 ;MMFLAC class 253 M_MMFLACClassData @205254 M_MMFLACCClassData @206255 M_MMFLACNewClass @207256 MMFLACClassData @208257 MMFLACCClassData @209258 MMFLACNewClass @210253 M_MMFLACClassData 254 M_MMFLACCClassData 255 M_MMFLACNewClass 256 MMFLACClassData 257 MMFLACCClassData 258 MMFLACNewClass 259 259 260 260 IMPORTS … … 266 266 WPImageFileNewClass=PMWP.493 267 267 268 269 ; M_MMWAVClassData @31270 ; M_MMWAVCClassData @32271 ; M_MMWAVNewClass @33272 ; MMWAVClassData @34273 ; MMWAVCClassData @35274 ; MMWAVNewClass @36275 276 277 268 ;IMPORTS 278 269 ; MMPARTS.M_MMAudioClassData -
branches/v2.9_Lars/classes/idl/idl_audio/cwaudio.idl
r2 r74 17 17 * along with this program; see the file COPYING. If not, write to 18 18 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 19 */ 19 */ 20 20 /* 21 21 * If you need another license for your project/product (commercial, 22 22 * noncommercial, whatever) contact me at 23 * 23 * 24 24 * http://www.os2world.com/cdwriting 25 25 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 35 35 #define SIZE_PLAYTIME 11 36 36 #define SIZE_SAMPLERATE 7 37 #define SIZE_BITRATE 7 37 #define SIZE_BITRATE 7 38 38 #define SIZE_CHANNELS 2 39 39 #define SIZE_BPS 4 … … 43 43 */ 44 44 45 interface M_MMAudio; 45 interface M_MMAudio; 46 46 47 47 … … 80 80 81 81 /* 82 * methods overridden 82 * methods overridden 83 83 * 84 84 */ … … 86 86 wpclsQueryInstanceType : override; 87 87 wpclsQueryInstanceFilter : override; 88 wpclsQueryDetailsInfo : override; 89 wpclsQueryTitle : override; 88 wpclsQueryDetailsInfo : override; 89 wpclsQueryTitle : override; 90 90 wpclsInitData : override; 91 91 wpclsUnInitData : override; 92 wpclsQueryDefaultView : override; 92 wpclsQueryDefaultView : override; 93 93 wpclsQueryIconData : override; 94 94 }; … … 108 108 */ 109 109 ULONG cwmmAddAudioInformationPage(in HWND hwndNotebook); 110 BOOL cwmmSetTrackInfo(in char* chrString, in ULONG ulValue, in intiWhich);111 ULONG cwmmQueryTrackInfo(in PSZ chrString, in ULONG ulSize, in intiWhich);110 BOOL cwmmSetTrackInfo(in char* chrString, in ULONG ulValue, in ULONG iWhich); 111 ULONG cwmmQueryTrackInfo(in PSZ chrString, in ULONG ulSize, in ULONG iWhich); 112 112 void cwmmPlayTrack(in HWND hwndCnr, in BOOL bPlay); 113 113 ULONG cwmmAddTrackNamePage(in HWND hwndNotebook); … … 157 157 ULONG ulSampleRate; 158 158 ULONG ulBitRate; 159 ULONG ulChannels; 159 ULONG ulChannels; 160 160 ULONG ulBPS; 161 161 ULONG ulNumAudioBytes; 162 162 163 163 BOOL bNeedSaving; 164 164 /* Strings shown in details view */ … … 171 171 /* char id3Name[33+30+1]; */ 172 172 /* 63 chars. ID3 allows 30 */ 173 /* char id3Artist[33+30+1]; 173 /* char id3Artist[33+30+1]; 174 174 char id3Album[33+30+1]; 175 175 char id3Year[4+1]; … … 188 188 PSZ pszGenre; 189 189 /* 190 * methods overridden 190 * methods overridden 191 191 * 192 192 */ … … 202 202 wpOpen : override; 203 203 204 /* wpSetTitle : override; 204 /* wpSetTitle : override; 205 205 wpQueryRealName : override; 206 wpQueryTitle : override; 206 wpQueryTitle : override; 207 207 wpRefresh : override; 208 208 */ -
branches/v2.9_Lars/classes/makefile
r67 r74 2 2 3 3 include ../make.inc 4 PMPRINTFPATH = U:\PMPrintf5 4 DISTNAME = cwaudio-classes-$(VERSION) 6 5 CC = icc … … 9 8 #-Wcnd /Weff /Wini /Wpar /Wpro /Wuse /Wrea 10 9 #CFLAGS = /Wuse /Wrea -Ge- /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+ /C 11 CFLAGS = -Ge- /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+ /C 12 13 LIBS = somtk.lib mmPM2.lib rexx.lib $(PMPRINTFPATH)\pmprintf.lib14 DEFS = 10 CFLAGS = -Ge- /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+ /C 11 12 LIBS = somtk.lib mmPM2.lib rexx.lib 13 DEFS = 15 14 16 15 MOREINC = ./include -I./inc -I../common_functions/include … … 35 34 #Audio classes 36 35 AUD_SCCOMPILEC = sc -I $(IDLDIR)/idl_audio -I $(IDLDIR)/idl_mm -p -r -sc -d$(CDIR)/c_audio -maddstar -mnoint -S128000 -C128000 $< 37 AUD_SCCOMPILEIH = sc -I $(IDLDIR)/idl_audio -I $(IDLDIR)/idl_mm -p -r -s ih";"h-dinclude -maddstar -mnoint -S128000 -C128000 $<36 AUD_SCCOMPILEIH = sc -I $(IDLDIR)/idl_audio -I $(IDLDIR)/idl_mm -p -r -s"ih;h" -dinclude -maddstar -mnoint -S128000 -C128000 $< 38 37 39 38 #Video 40 39 VID_SCCOMPILEC = sc -I $(IDLDIR)/idl_video -p -r -sc -d$(CDIR)/c_video -maddstar -mnoint -S128000 -C128000 $< 41 VID_SCCOMPILEIH = sc -I $(IDLDIR)/idl_video -p -r -s ih";"h-dinclude -maddstar -mnoint -S128000 -C128000 $<40 VID_SCCOMPILEIH = sc -I $(IDLDIR)/idl_video -p -r -s"ih;h" -dinclude -maddstar -mnoint -S128000 -C128000 $< 42 41 43 42 #image 44 43 IMG_SCCOMPILEC = sc -I $(IDLDIR)/idl_image -p -r -sc -d$(CDIR)/c_image -maddstar -mnoint -S128000 -C128000 $< 45 IMG_SCCOMPILEIH = sc -I $(IDLDIR)/idl_image -p -r -s ih";"h-dinclude -maddstar -mnoint -S128000 -C128000 $<44 IMG_SCCOMPILEIH = sc -I $(IDLDIR)/idl_image -p -r -s"ih;h" -dinclude -maddstar -mnoint -S128000 -C128000 $< 46 45 47 46 #base classes 48 47 MM_SCCOMPILEC = sc -I $(IDLDIR)/idl_mm -p -r -sc -d$(CDIR)/c_mm -maddstar -mnoint -S128000 -C128000 $< 49 MM_SCCOMPILEIH = sc -I $(IDLDIR)/idl_mm -p -r -s ih";"h-dinclude -maddstar -mnoint -S128000 -C128000 $<48 MM_SCCOMPILEIH = sc -I $(IDLDIR)/idl_mm -p -r -s"ih;h" -dinclude -maddstar -mnoint -S128000 -C128000 $< 50 49 51 50 … … 104 103 $(OBJDIR)/cwmmdisk.obj \ 105 104 $(OBJDIR)/mmfolder.obj 106 105 107 106 COMMON_OBJECTS = $(OBJDIR)/except.obj \ 108 107 $(OBJDIR)/message.obj \ … … 209 208 ################################### 210 209 # German 211 ./Help/de/cwmm049.hlp: ./Help/de/cwmm049.ipf 210 ./Help/de/cwmm049.hlp: ./Help/de/cwmm049.ipf 212 211 cd ./Help/de && make 213 212 -
branches/v2.9_Lars/classes/mm-progs/audioconverter/audconv.c
r48 r74 18 18 * along with this program; see the file COPYING. If not, write to 19 19 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 20 */ 20 */ 21 21 /* 22 22 * If you need another license for your project/product (commercial, 23 23 * noncommercial, whatever) contact me at 24 * 24 * 25 25 * http://www.os2world.com/cdwriting 26 26 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 70 70 //#define INI_NAME_COLOR "color" 71 71 72 void HlpSendCommandToObject( char* chrObject, char*command);72 void HlpSendCommandToObject(PSZ chrObject, PSZ command); 73 73 BOOL percentRegisterBarClass(void); 74 BOOL IniSaveWindowPos( char * iniFile, char* chrApp, char *chrKey, HWND hwnd);75 BOOL IniRestoreWindowPos( char * iniFile, char* chrApp, char *chrKey, HWND hwnd);76 BOOL IniSaveWindowClrs( char * chrIniFile, char*chrApp , HWND hwnd);77 BOOL IniRestoreWindowClrs( char * chrIniFile, char*chrApp , HWND hwnd);78 BOOL HlpBuildMMProgIniFileName( char* chrProgname, char *chrBuffer, ULONG ulBufferSize);79 HMODULE queryResModuleHandle( char *chrExePath);74 BOOL IniSaveWindowPos(PSZ iniFile, PSZ chrApp, PSZ chrKey, HWND hwnd); 75 BOOL IniRestoreWindowPos(PSZ iniFile, PSZ chrApp, PSZ chrKey, HWND hwnd); 76 BOOL IniSaveWindowClrs(PSZ chrIniFile, PSZ chrApp , HWND hwnd); 77 BOOL IniRestoreWindowClrs(PSZ chrIniFile, PSZ chrApp , HWND hwnd); 78 BOOL HlpBuildMMProgIniFileName(PSZ chrProgname, PSZ chrBuffer, ULONG ulBufferSize); 79 HMODULE queryResModuleHandle(PSZ chrExePath); 80 80 void freeResHandle(); 81 BOOL getMessage( char*text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd);82 ULONG messageBox( char*text, ULONG ulTextID , LONG lSizeText,83 char*title, ULONG ulTitleID, LONG lSizeTitle,81 BOOL getMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd); 82 ULONG messageBox( PSZ text, ULONG ulTextID , LONG lSizeText, 83 PSZ title, ULONG ulTitleID, LONG lSizeTitle, 84 84 HMODULE hResource, HWND hwnd, ULONG ulFlags); 85 85 … … 90 90 BOOL bHaveWindowPos=FALSE; 91 91 92 charchrTargetName[CCHMAXPATH]={0};93 charchrSourceName[CCHMAXPATH]={0};94 charchrProcName[CCHMAXPATH]={0};95 charchrIniFile[CCHMAXPATH];92 UCHAR chrTargetName[CCHMAXPATH]={0}; 93 UCHAR chrSourceName[CCHMAXPATH]={0}; 94 UCHAR chrProcName[CCHMAXPATH]={0}; 95 UCHAR chrIniFile[CCHMAXPATH]; 96 96 97 97 int numArgs; … … 118 118 void pmUsage(); 119 119 120 BOOL createTargetName( char *sourceName, char *chrExt)120 BOOL createTargetName(PSZ sourceName, PSZ chrExt) 121 121 { 122 char *textPtr;123 124 strcpy( chrTargetName,sourceName);125 if((textPtr=strrchr( chrTargetName, '.'))!=NULLHANDLE)122 PCHAR textPtr=NULL; 123 124 strcpy((PCHAR)chrTargetName, (PCHAR)sourceName); 125 if((textPtr=strrchr((PCHAR)chrTargetName, '.'))!=NULL) 126 126 *textPtr=0; 127 127 else 128 textPtr= chrTargetName;128 textPtr=(PCHAR)chrTargetName; 129 129 strcat(textPtr,"."); 130 strcat(textPtr, chrExt);130 strcat(textPtr, (PCHAR)chrExt); 131 131 #if 0 132 132 WinMessageBox( HWND_DESKTOP, HWND_DESKTOP, textPtr, … … 153 153 '\0', 154 154 sizeof(MMFORMATINFO) ); 155 155 156 156 mmFormatInfo.ulMediaType |= MMIO_MEDIATYPE_AUDIO; 157 mmFormatInfo.ulFlags|=MMIO_CANWRITETRANSLATED; 157 mmFormatInfo.ulFlags|=MMIO_CANWRITETRANSLATED; 158 158 ulReturnCode = mmioQueryFormatCount ( &mmFormatInfo, 159 159 &lNumIOProcs, 160 160 0, 161 161 0 ); 162 162 163 163 if( ulReturnCode != MMIO_SUCCESS ) 164 164 { … … 181 181 return FALSE; 182 182 } 183 183 184 184 /* 185 185 * call mmioGetFormats to get info on the formats supported. … … 199 199 return FALSE; 200 200 } 201 201 202 202 if( lFormatsRead != lNumIOProcs ) 203 203 { … … 214 214 for ( index = 0, sIdx=0; index <lNumIOProcs; index++ ) 215 215 { 216 charszName[CCHMAXPATH];217 218 mmioGetFormatName(pmmFormatInfoArray, szName, &lBytesRead, 0L, 0L); 216 UCHAR szName[CCHMAXPATH]; 217 218 mmioGetFormatName(pmmFormatInfoArray, szName, &lBytesRead, 0L, 0L); 219 219 /* Insert NULL string terminator */ 220 *( szName + lBytesRead ) = (CHAR)NULL;220 *( szName + lBytesRead ) = 0; 221 221 222 222 #ifdef DEBUG 223 SysWriteToTrapLog("%d IO-Proc: %s, %s\n", index, 223 SysWriteToTrapLog("%d IO-Proc: %s, %s\n", index, 224 224 pmmFormatInfoArray->szDefaultFormatExt, 225 225 szName); … … 231 231 WinSendMsg(hwndDrop, LM_INSERTITEM,(MPARAM)LIT_END, 232 232 (MPARAM)szName); 233 234 233 234 235 235 iPrivIOProc[sIdx]=index; 236 236 237 237 #ifdef DEBUG 238 238 SysWriteToTrapLog("-- %d %d, sIdx: %d %s\n", index, iPrivIOProc[sIdx], sIdx, … … 240 240 ); 241 241 #endif 242 243 242 243 244 244 /* Set text field */ 245 245 if(bNoProcGiven) { 246 246 WinSetWindowText(hwndDrop, szName); 247 createTargetName(chrSourceName, pmmFormatInfoArray->szDefaultFormatExt);247 createTargetName(chrSourceName, (PSZ)pmmFormatInfoArray->szDefaultFormatExt); 248 248 iIoProc=iPrivIOProc[sIdx]; 249 249 bNoProcGiven=FALSE; 250 250 } 251 251 else { 252 if(!stricmp( szName,chrProcName)) {252 if(!stricmp((PCHAR)szName, (PCHAR)chrProcName)) { 253 253 WinSetWindowText(hwndDrop, szName); 254 254 /* Create target name */ 255 createTargetName(chrSourceName, pmmFormatInfoArray->szDefaultFormatExt);255 createTargetName(chrSourceName, (PSZ)pmmFormatInfoArray->szDefaultFormatExt); 256 256 iIoProc=iPrivIOProc[sIdx]; 257 257 } … … 262 262 /* 263 263 * advance to next entry in mmFormatInfo array 264 */ 264 */ 265 265 pmmFormatInfoArray++; 266 266 } … … 268 268 } 269 269 270 BOOL queryAudioInfo( char *chrFile)270 BOOL queryAudioInfo(PSZ chrFile) 271 271 { 272 272 HMMIO hmmio; … … 275 275 LONG lBytesRead=0; 276 276 APIRET rc; 277 277 278 278 memset(&mmioinfo,0, sizeof(mmioinfo)); 279 279 mmioinfo.ulTranslate = MMIO_TRANSLATEHEADER; … … 321 321 #endif 322 322 323 void _OptlinkconvertThreadFunc (void *arg)323 void convertThreadFunc (void *arg) 324 324 { 325 325 HAB hab; … … 337 337 LONG lBytesWritten=0; 338 338 ULONG rc; 339 P BYTE buffer;339 PCHAR buffer=NULL; 340 340 341 341 do { … … 349 349 if((hmmio=mmioOpen(chrSourceName, &mmioinfo,MMIO_READ))==NULLHANDLE) 350 350 { 351 chartext[500];352 snprintf( text, sizeof(text)-1,"mmioOpen error with file %s\n", chrSourceName);353 WinMessageBox(hwnd, hwnd, "",351 UCHAR text[500]; 352 snprintf((PCHAR)text, sizeof(text)-1,"mmioOpen error with file %s\n", chrSourceName); 353 WinMessageBox(hwnd, hwnd, (PSZ)"", 354 354 text, 355 355 0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE ); … … 360 360 &lBytesRead, 0, 0); 361 361 if(rc!=MMIO_SUCCESS) { 362 chartext[500];362 UCHAR text[500]; 363 363 mmioClose(hmmio, 0); 364 snprintf( text, sizeof(text)-1,"mmioGetHeader error!");365 WinMessageBox(hwnd, hwnd, "",364 snprintf((PCHAR)text, sizeof(text)-1,"mmioGetHeader error!"); 365 WinMessageBox(hwnd, hwnd, (PSZ)"", 366 366 text, 367 367 0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE ); … … 380 380 if((hmmioTarget=mmioOpen(chrTargetName, &mmioinfo, MMIO_WRITE|MMIO_CREATE))==NULLHANDLE) 381 381 { 382 charchrError[CCHMAXPATH];383 char text[500];382 UCHAR chrError[CCHMAXPATH]; 383 UCHAR text[CCHMAXPATH*2]; 384 384 rc=mmioGetLastError(hmmioTarget); 385 385 mciGetErrorString(mmioinfo.ulErrorRet ,chrError, sizeof(chrError)); 386 snprintf( text, sizeof(text)-1,"mmioOpen error with file %s:\n%s\n%d", chrTargetName, chrError,mmioinfo.ulErrorRet);386 snprintf((PCHAR)text, sizeof(text)-1,"mmioOpen error with file %s:\n%s\n%lu", chrTargetName, chrError,mmioinfo.ulErrorRet); 387 387 mmioClose(hmmio,0); 388 WinMessageBox(hwnd, hwnd, "",388 WinMessageBox(hwnd, hwnd, (PSZ)"", 389 389 text, 390 390 0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE ); … … 394 394 rc = mmioSetHeader(hmmioTarget, &mmAudioHeader,sizeof(MMAUDIOHEADER), 395 395 &lBytesWritten, 0, 0); 396 396 397 397 /* Get buffer */ 398 if((buffer=( void*)malloc(CONVERTBUFFERSIZE))==NULLHANDLE) {399 chartext[500];398 if((buffer=(PCHAR)malloc(CONVERTBUFFERSIZE))==NULLHANDLE) { 399 UCHAR text[500]; 400 400 mmioClose(hmmio, 0); 401 401 mmioClose(hmmioTarget,0); 402 snprintf( text, sizeof(text)-1,"Can't get memory buffer!");403 WinMessageBox(hwnd, hwnd, "",402 snprintf((PCHAR)text, sizeof(text)-1,"Can't get memory buffer!"); 403 WinMessageBox(hwnd, hwnd, (PSZ)"", 404 404 text, 405 405 0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE ); 406 406 407 407 break; 408 408 } … … 421 421 }while(rc!=0 && rc!=MMIO_ERROR && !bBreak/*&& lBytesWritten <1000000*/); 422 422 if(rc==MMIO_ERROR) { 423 chartext[500];424 snprintf( text, sizeof(text)-1,"Error while reading audio data!");425 WinMessageBox(hwnd, hwnd, "",423 UCHAR text[500]; 424 snprintf((PCHAR)text, sizeof(text)-1,"Error while reading audio data!"); 425 WinMessageBox(hwnd, hwnd, (PSZ)"", 426 426 text, 427 427 0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE ); 428 428 } 429 429 if(!bBreak) { 430 charchrCommand[CCHMAXPATH*2];430 UCHAR chrCommand[CCHMAXPATH*2]; 431 431 WinSendMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTPERCENT), MPFROMLONG(100)); 432 432 /* Refresh details view */ 433 HlpSendCommandToObject(chrTargetName, "CWAUDIOREFRESH=1");434 sprintf( chrCommand,"CWAUDIOCOPYTAGTO=%s;", chrTargetName);433 HlpSendCommandToObject(chrTargetName, (PSZ)"CWAUDIOREFRESH=1"); 434 sprintf((PCHAR)chrCommand,"CWAUDIOCOPYTAGTO=%s;", chrTargetName); 435 435 HlpSendCommandToObject(chrSourceName, chrCommand); 436 436 } … … 443 443 } 444 444 while(TRUE); 445 WinSendMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTDONE), 0); 445 WinSendMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTDONE), 0); 446 446 WinDestroyMsgQueue(hmq); 447 447 } … … 464 464 MRESULT EXPENTRY decodeStatusDialogProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 465 465 { 466 chartext[CCHMAXPATH*4 +10];467 chartitle[CCHMAXPATH*4];466 UCHAR text[CCHMAXPATH*4 +10]; 467 UCHAR title[CCHMAXPATH*4]; 468 468 SWCNTRL swctl; 469 469 PID pid; … … 471 471 472 472 switch (msg) 473 { 473 { 474 474 case WM_INITDLG: 475 475 … … 493 493 494 494 WinSendMsg(WinWindowFromID(hwnd,IDST_CONVERTNAME),EM_SETTEXTLIMIT,MPFROMSHORT((SHORT)CCHMAXPATH),0); 495 496 WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTCDBITS), "");497 495 496 WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTCDBITS), (PSZ)""); 497 498 498 /* Filename */ 499 499 WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTNAME), chrSourceName); 500 500 501 501 /* Set dialog font to WarpSans for Warp 4 and above */ 502 502 if(SysQueryOSRelease()>=40) { … … 507 507 508 508 /* Set percent bars to 0. */ 509 WinSetWindowText(WinWindowFromID(hwnd,IDBAR_CONVERTPROGRESS), "0#0%");509 WinSetWindowText(WinWindowFromID(hwnd,IDBAR_CONVERTPROGRESS),(PSZ)"0#0%"); 510 510 511 511 WinSendMsg(WinWindowFromID(hwnd,IDEF_CONVERTTARGETNAME), EM_SETTEXTLIMIT,MPFROMSHORT((SHORT)CCHMAXPATH),0); … … 516 516 /* Channels */ 517 517 getMessage(title, IDSTR_CONVERTCHANNELS, sizeof(title), RESSOURCEHANDLE, hwnd); 518 sprintf( text,title, sChannels);518 sprintf((PCHAR)text, (PCHAR)title, sChannels); 519 519 WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTCHANNELS),text); 520 520 521 521 /* Samplerate */ 522 522 getMessage(title, IDSTR_CONVERTSAMPLERATE, sizeof(title), RESSOURCEHANDLE, hwnd); 523 sprintf( text,title, iSampleRate);523 sprintf((PCHAR)text, (PCHAR)title, iSampleRate); 524 524 WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTSAMPLERATE),text); 525 525 526 526 /* Playtime */ 527 527 getMessage(title, IDSTR_CONVERTPLAYTIME, sizeof(title), RESSOURCEHANDLE, hwnd); 528 sprintf( text,title, lSec/60, lSec%60);528 sprintf((PCHAR)text, (PCHAR)title, lSec/60, lSec%60); 529 529 WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTPLAYTIME),text); 530 530 … … 551 551 iPercent=0; 552 552 553 /* Update track percent bar value. The helper prog sends us the actual decoded %. */ 553 /* Update track percent bar value. The helper prog sends us the actual decoded %. */ 554 554 sprintf(text,"%d#%d%%", iPercent, iPercent); 555 555 WinSetWindowText(WinWindowFromID(hwnd,IDBAR_CONVERTPROGRESS), text); … … 593 593 594 594 createTargetName(chrSourceName, pMemFormatInfo[iIoProc].szDefaultFormatExt); 595 WinSetWindowText( WinWindowFromID(hwnd,IDEF_CONVERTTARGETNAME), chrTargetName ); 595 WinSetWindowText( WinWindowFromID(hwnd,IDEF_CONVERTTARGETNAME), chrTargetName ); 596 596 } 597 597 } … … 613 613 case IDPB_CONVERTBROWSE: 614 614 { 615 charchrTitle[200];615 UCHAR chrTitle[200]; 616 616 FILEDLG fd = { 0 }; 617 617 /* User pressed the browse button */ … … 652 652 ULONG ulDiskNum; 653 653 char cLetter; 654 654 655 655 WinQueryWindowText( WinWindowFromID(hwnd,IDEF_CONVERTTARGETNAME), sizeof(chrTargetName), chrTargetName ); 656 656 … … 669 669 if(lFreeSpace<lAudioSize) { 670 670 /* 671 Text: 672 Title: 673 */ 671 Text: 672 Title: 673 */ 674 674 getMessage(title, IDSTR_CONVERTNOSPACETEXT,sizeof(title), RESSOURCEHANDLE, hwnd); 675 675 sprintf(text,title,lAudioSize/1000000 ); … … 681 681 else { 682 682 /* Start decoding an audio file */ 683 WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTOK), FALSE); 683 WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTOK), FALSE); 684 684 WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTABORT), TRUE); 685 685 convertAudioFile(hwnd); 686 686 } 687 687 688 688 break; 689 689 } … … 695 695 break; 696 696 }/* switch */ 697 697 698 698 return WinDefDlgProc( hwnd, msg, mp1, mp2); 699 699 } … … 726 726 if(hab) { 727 727 hmq=WinCreateMsgQueue(hab,0); 728 if(hmq) { 729 /* Check if user started prog by hand */ 728 if(hmq) { 729 /* Check if user started prog by hand */ 730 730 if(argc<NUMPARAMS-1) {/* Not the actual num of params */ 731 731 pmUsage(); … … 740 740 strcpy(chrProcName, ""); 741 741 } 742 /* Get our ressource dll */ 742 /* Get our ressource dll */ 743 743 // RESSOURCEHANDLE=0; 744 744 RESSOURCEHANDLE=queryResModuleHandle(argv[0]); … … 751 751 { 752 752 /* 753 Text: 754 Title: "Installation problem" 755 */ 753 Text: 754 Title: "Installation problem" 755 */ 756 756 messageBox( text, IDSTR_CONVERTDIALOGERROR , sizeof(text), 757 757 title, IDSTR_INSTALLERRORTITLE , sizeof(title), … … 762 762 DosBeep(100,600); 763 763 return( 1 ); 764 } 764 } 765 765 } 766 766 } -
branches/v2.9_Lars/classes/mm-progs/imageconverter/imgconv.c
r2 r74 23 23 * If you need another license for your project/product (commercial, 24 24 * noncommercial, whatever) contact me at 25 * 25 * 26 26 * http://www.os2world.com/cdwriting 27 27 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 143 143 SIZEL ImageSize; 144 144 ULONG dwHeight, dwWidth; 145 SHORT 145 SHORT wBitCount; 146 146 FOURCC fccStorageSystem; 147 147 ULONG dwPadBytes; 148 148 ULONG dwRowBits; 149 149 ULONG ulReturnCode; 150 ULONG dwReturnCode;151 HBITMAP hbReturnCode;152 LONG lReturnCode;153 150 FOURCC fccIOProc; 154 151 HDC hdc; … … 212 209 213 210 214 dwReturnCode = mmioQueryHeaderLength ( hmmio,211 ulReturnCode = mmioQueryHeaderLength ( hmmio, 215 212 (PLONG)&ulImageHeaderLength, 216 213 0L, … … 288 285 return(0L); 289 286 } 290 287 291 288 292 289 // *************************************************** … … 294 291 // the memory device context obtained above. 295 292 // *************************************************** 296 293 297 294 ImageSize.cx = dwWidth; 298 295 ImageSize.cy = dwHeight; … … 312 309 (ULONG) MB_OK | MB_MOVEABLE | 313 310 MB_ERROR ); 314 #endif 311 #endif 315 312 DevCloseDC(hdc); 316 313 DosFreeMem(pRowBuffer); … … 350 347 // Select the bitmap into the memory device context. 351 348 // *************************************************** 352 hbReturnCode = GpiSetBitmap ( hps,349 ulReturnCode = GpiSetBitmap ( hps, 353 350 hbm ); 354 351 … … 371 368 * it to work. Perhaps will get to it when time is available... 372 369 */ 373 lReturnCode = GpiSetBitmapBits ( hps,370 ulReturnCode = GpiSetBitmapBits ( hps, 374 371 (LONG) dwRowCount, 375 372 (LONG) 1, … … 379 376 380 377 /* Clean up */ 381 hbReturnCode = GpiSetBitmap ( hps,378 ulReturnCode = GpiSetBitmap ( hps, 382 379 NULLHANDLE ); 383 380 ulReturnCode = mmioClose (hmmio, 0L); … … 396 393 PBITMAPINFOHEADER2 pBmpInfoHeader2, 397 394 HWND hwnd) 398 // ULONG ulWidth, 395 // ULONG ulWidth, 399 396 // ULONG ulHeight) 400 397 { 401 398 HBITMAP hbmTarget; 402 399 SIZEL ImageSize; 403 HBITMAP hbReturnCode;404 400 HDC hdc; 405 401 HPS hps; … … 413 409 */ 414 410 WinQueryWindowPos ( hwnd, &swp); 415 411 416 412 /* Image size */ 417 413 418 414 ulHeight = bmpInfoHeader2.cy; 419 415 ulWidth = bmpInfoHeader2.cx; … … 423 419 aptl[0].x=0; 424 420 aptl[1].x=aptl[0].x+ulWidth; 425 421 426 422 aptl[0].y=0; 427 423 aptl[1].y=aptl[0].y+ulHeight; … … 429 425 else { 430 426 float fWidth, fHeight, fRes; 431 427 432 428 fWidth=(float)swp.cx/(float)ulWidth; 433 429 fHeight=(float)swp.cy/(float)ulHeight; 434 430 fRes=( fWidth>fHeight ? fHeight : fWidth); 435 436 431 432 437 433 aptl[0].x=0; 438 434 aptl[1].x=aptl[0].x+ulWidth*fRes; 439 435 440 436 aptl[0].y=0; 441 437 aptl[1].y=aptl[0].y+ulHeight*fRes; 442 438 } 443 439 444 440 aptl[2].x = 0; // source lower left 445 441 aptl[2].y = 0; 446 442 447 443 aptl[3].x = ulWidth; // source upper right 448 444 aptl[3].y = ulHeight; … … 468 464 return(0L); 469 465 } 470 466 471 467 // *************************************************** 472 468 // Create a memory presentation space that includes … … 486 482 487 483 /* Now scale the bitmap */ 488 memcpy(&bmpih2, pBmpInfoHeader2, sizeof(BITMAPINFOHEADER2)); 484 memcpy(&bmpih2, pBmpInfoHeader2, sizeof(BITMAPINFOHEADER2)); 489 485 490 486 bmpih2.cx=aptl[1].x-aptl[0].x; … … 509 505 510 506 /* Blit it */ 511 hbReturnCode =GpiSetBitmap ( hps, hbmTarget );507 GpiSetBitmap ( hps, hbmTarget ); 512 508 513 509 GpiWCBitBlt(hps, hbm,4L, aptl, ROP_SRCCOPY, BBO_IGNORE); 514 510 515 hbReturnCode =GpiSetBitmap( hps, NULLHANDLE );511 GpiSetBitmap( hps, NULLHANDLE ); 516 512 GpiDestroyPS(hps); 517 513 DevCloseDC(hdc); … … 545 541 strcat(textPtr,"."); 546 542 strcat(textPtr, chrExt); 547 543 548 544 return TRUE; 549 545 } … … 564 560 '\0', 565 561 sizeof(MMFORMATINFO) ); 566 562 567 563 mmFormatInfo.ulMediaType |= MMIO_MEDIATYPE_IMAGE; 568 mmFormatInfo.ulFlags|=MMIO_CANWRITETRANSLATED; 564 mmFormatInfo.ulFlags|=MMIO_CANWRITETRANSLATED; 569 565 ulReturnCode = mmioQueryFormatCount ( &mmFormatInfo, 570 566 &lNumIOProcs, 571 567 0, 572 568 0 ); 573 569 574 570 if( ulReturnCode != MMIO_SUCCESS ) 575 571 { … … 592 588 return FALSE; 593 589 } 594 590 595 591 /* 596 592 * call mmioGetFormats to get info on the formats supported. … … 610 606 return FALSE; 611 607 } 612 608 613 609 if( lFormatsRead != lNumIOProcs ) 614 610 { … … 627 623 char szName[CCHMAXPATH]; 628 624 629 mmioGetFormatName(pmmFormatInfoArray, szName, &lBytesRead, 0L, 0L); 625 mmioGetFormatName(pmmFormatInfoArray, szName, &lBytesRead, 0L, 0L); 630 626 /* Insert NULL string terminator */ 631 *( szName + lBytesRead ) = (CHAR)NULL;627 *( szName + lBytesRead ) = 0; 632 628 633 629 … … 643 639 644 640 #ifdef DEBUG 645 HlpWriteToTrapLog("------ %d private idx: %d, IO-Proc: %s %s\n", index, sIdx, 641 HlpWriteToTrapLog("------ %d private idx: %d, IO-Proc: %s %s\n", index, sIdx, 646 642 pmmFormatInfoArray->szDefaultFormatExt, 647 643 szName); 648 644 #endif 649 645 650 646 iPrivIOProc[sIdx]=index; 651 647 … … 669 665 /* 670 666 * advance to next entry in mmFormatInfo array 671 */ 667 */ 672 668 pmmFormatInfoArray++; 673 669 } … … 700 696 ULONG iIndex, iCount, iCount2; 701 697 702 MMFORMATINFO mmFormatInfo; 698 MMFORMATINFO mmFormatInfo; 703 699 FOURCC fccSourceIOProc; 704 700 FOURCC fccStorageSystem; … … 728 724 mmioinfoSource.fccIOProc = fccSourceIOProc; 729 725 mmioinfoSource.ulTranslate = MMIO_TRANSLATEHEADER | MMIO_TRANSLATEDATA; 730 726 731 727 hmmioSource = mmioOpen ((PSZ)pszSource, &mmioinfoSource, 732 728 MMIO_READ | MMIO_DENYWRITE 733 729 | MMIO_NOIDENTIFY); 734 730 735 731 if (!hmmioSource) 736 732 return (FALSE); 737 733 738 734 /*******************************/ 739 735 /* Set up/open the TARGET file */ … … 743 739 mmioinfoTarget.fccIOProc = fccTargetIOProc; 744 740 mmioinfoTarget.ulTranslate = MMIO_TRANSLATEHEADER | MMIO_TRANSLATEDATA; 745 741 746 742 hmmioTarget = mmioOpen ((PSZ)pszTarget, 747 743 &mmioinfoTarget, 748 744 MMIO_CREATE | MMIO_WRITE | 749 745 MMIO_DENYWRITE | MMIO_NOIDENTIFY); 750 746 751 747 if (!hmmioTarget) 752 748 { … … 762 758 rcSrcQueryCount = mmioSendMessage(hmmioSource, MMIOM_QUERYIMAGECOUNT, (LONG)&iCount, (LONG)0); 763 759 if (rcSrcQueryCount) iCount = 1; 764 760 765 761 // find out if the target has multiple image support 766 762 rcTrgQueryCount = mmioSendMessage(hmmioTarget, MMIOM_QUERYIMAGECOUNT, (LONG)&iCount2, (LONG)0); 767 763 768 764 for (iIndex=0; iIndex<iCount; iIndex++) { /* loop through known images */ 769 765 770 766 if (!rcSrcQueryCount && !rcTrgQueryCount) { /* if Both support images */ 771 767 772 768 /* Determine if the target can write arrays, and if not */ 773 769 /* then write the the default image from the source */ 774 770 775 771 if (rcTrgSetImage && iIndex > 0) break; /* Target Can't Write array */ 776 772 777 773 /* Now, determine if the target can write arrays */ 778 774 rcTrgSetImage = mmioSendMessage (hmmioTarget, MMIOM_SETIMAGE, (LONG)iIndex, (LONG)0); 779 775 780 776 if (!rcTrgSetImage) mmioSendMessage (hmmioSource, MMIOM_SETIMAGE, (LONG)iIndex, (LONG)0); 781 777 782 778 } else if (!rcSrcQueryCount) { /* Source does but target doesn't */ 783 779 /* Use the default image from source to copy to target */ … … 806 802 (LONG)sizeof (MMIMAGEHEADER), (PLONG)&ulBytesRead, 807 803 0L, 0L); 808 804 809 805 if (rc != MMIO_SUCCESS) 810 806 /* Header unavailable */ … … 814 810 return (FALSE); 815 811 } 816 812 817 813 818 814 /*************************/ … … 828 824 } 829 825 830 826 831 827 /* Use the SAME data as came from the SOURCE FILE. It must be 832 828 compatible with the OS/2 bitmaps, etc. */ … … 834 830 (LONG)sizeof (MMIMAGEHEADER), (PLONG)&ulBytesRead, 835 831 0L, 0L); 836 832 837 833 if (rc != MMIO_SUCCESS) 838 834 /* Header unavailable */ … … 846 842 HlpWriteToTrapLog("Target header set.\n"); 847 843 #endif 848 844 849 845 /* Determine the number of bytes required, per row */ 850 846 /* PLANES MUST ALWAYS BE = 1 */ … … 853 849 dwRowBits = dwWidth * mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount; 854 850 dwNumRowBytes = dwRowBits >> 3; 855 851 856 852 /* Account for odd bits used in 1bpp or 4bpp images that are NOT on byte boundaries. */ 857 853 if (dwRowBits % 8) 858 854 dwNumRowBytes++; 859 855 860 856 /* Ensure the row length in bytes accounts for byte padding. All bitmap data rows 861 857 must are aligned on LONG/4-BYTE boundaries. The data FROM an IOProc … … 898 894 mmioClose (hmmioSource, 0L); 899 895 DosFreeMem(pRowBuffer); 900 896 901 897 return(TRUE); 902 898 } 903 899 904 void _OptlinkconvertThreadFunc (void *arg)900 void convertThreadFunc (void *arg) 905 901 { 906 902 HAB hab; … … 916 912 chrSourceName, 917 913 chrTargetName, pMemFormatInfo[iIoProc].fccIOProc); 918 919 920 921 WinPostMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTDONE), 0); 914 915 916 917 WinPostMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTDONE), 0); 922 918 DosSleep(1000); 923 919 WinDestroyMsgQueue(hmq); … … 944 940 POINTL aptl[4]; 945 941 HPS hps; 946 BOOL bReturnCode;947 942 ULONG ulHeight; 948 943 ULONG ulWidth; … … 954 949 * Get position of image frame 955 950 */ 956 bReturnCode =WinQueryWindowPos ( hwnd, &swp);951 WinQueryWindowPos ( hwnd, &swp); 957 952 958 953 /* Center image */ … … 963 958 aptl[0].x=(swp.cx-ulWidth)/2; 964 959 aptl[1].x=aptl[0].x+ulWidth; 965 960 966 961 aptl[0].y=(swp.cy-ulHeight)/2; 967 962 aptl[1].y=aptl[0].y+ulHeight; … … 977 972 aptl[0].x=(swp.cx-ulWidth*fRes)/2; 978 973 aptl[1].x=aptl[0].x+ulWidth*fRes; 979 974 980 975 aptl[0].y=(swp.cy-ulHeight*fRes)/2; 981 976 aptl[1].y=aptl[0].y+ulHeight*fRes; 982 977 } 983 978 984 979 aptl[2].x = 0; // source lower left 985 980 aptl[2].y = 0; 986 981 987 982 aptl[3].x = ulWidth; // source upper right 988 983 aptl[3].y = ulHeight; … … 1004 999 // WinDrawBitmap(hps, hBitmap, NULLHANDLE, (PPOINTL)aptl, 0, 0, DBM_NORMAL/*|DBM_STRETCH*/); 1005 1000 #endif 1006 bReturnCode =WinEndPaint (hps);1001 WinEndPaint (hps); 1007 1002 } 1008 1003 … … 1011 1006 1012 1007 switch (msg) 1013 { 1008 { 1014 1009 case WM_PAINT: 1015 1010 { … … 1036 1031 1037 1032 switch (msg) 1038 { 1033 { 1039 1034 case WM_INITDLG: 1040 1035 #if 0 … … 1047 1042 1048 1043 WinSendMsg(WinWindowFromID(hwnd,IDST_IMGCONVERTNAME),EM_SETTEXTLIMIT,MPFROMSHORT((SHORT)CCHMAXPATH),0); 1049 1044 1050 1045 /* Filename */ 1051 1046 WinSetWindowText(WinWindowFromID(hwnd,IDST_IMGCONVERTNAME), chrSourceName); 1052 1047 1053 1048 /* Set dialog font to WarpSans for Warp 4 and above */ 1054 1049 if(SysQueryOSRelease()>=40) { … … 1112 1107 iPercent=0; 1113 1108 1114 /* Update track percent bar value. The helper prog sends us the actual decoded %. */ 1109 /* Update track percent bar value. The helper prog sends us the actual decoded %. */ 1115 1110 sprintf(text,"%d#%d%%", iPercent, iPercent); 1116 1111 WinSetWindowText(WinWindowFromID(hwnd,IDBAR_IMGCONVERTPROGRESS), text); … … 1149 1144 1150 1145 createTargetName(chrSourceName, pMemFormatInfo[iIoProc].szDefaultFormatExt); 1151 WinSetWindowText( WinWindowFromID(hwnd,IDEF_IMGCONVERTTARGETNAME), chrTargetName ); 1146 WinSetWindowText( WinWindowFromID(hwnd,IDEF_IMGCONVERTTARGETNAME), chrTargetName ); 1152 1147 } 1153 1148 } … … 1210 1205 // ULONG ulDiskNum; 1211 1206 // char cLetter; 1212 1207 1213 1208 /* Get target name */ 1214 WinQueryWindowText( WinWindowFromID(hwnd,IDEF_IMGCONVERTTARGETNAME), 1209 WinQueryWindowText( WinWindowFromID(hwnd,IDEF_IMGCONVERTTARGETNAME), 1215 1210 sizeof(chrTargetName), chrTargetName ); 1216 1211 #if 0 … … 1225 1220 if(lFreeSpace<lAudioSize) { 1226 1221 /* 1227 Text: 1228 Title: 1229 */ 1222 Text: 1223 Title: 1224 */ 1230 1225 getMessage(title, IDSTR_CONVERTNOSPACETEXT,sizeof(title), RESSOURCEHANDLE, hwnd); 1231 1226 sprintf(text,title,lAudioSize/1000000 ); … … 1237 1232 else { 1238 1233 /* Start decoding an audio file */ 1239 WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTOK), FALSE); 1234 WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTOK), FALSE); 1240 1235 WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTABORT), TRUE); 1241 1236 convertAudioFile(hwnd); … … 1244 1239 /* Start converting image file */ 1245 1240 WinPostMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTPERCENT), MPFROMLONG(0)); 1246 WinEnableWindow( WinWindowFromID(hwnd,IDPB_IMGCONVERTOK), FALSE); 1241 WinEnableWindow( WinWindowFromID(hwnd,IDPB_IMGCONVERTOK), FALSE); 1247 1242 WinEnableWindow( WinWindowFromID(hwnd,IDPB_IMGCONVERTABORT), TRUE); 1248 1243 convertImageFile(hwnd); … … 1256 1251 break; 1257 1252 }/* switch */ 1258 1253 1259 1254 return WinDefDlgProc( hwnd, msg, mp1, mp2); 1260 1255 } … … 1283 1278 if(hab) { 1284 1279 hmq=WinCreateMsgQueue(hab,0); 1285 if(hmq) { 1286 /* Check if user started prog by hand */ 1280 if(hmq) { 1281 /* Check if user started prog by hand */ 1287 1282 if(argc<NUMPARAMS-1) {/* Not the right num of params */ 1288 1283 pmUsage(); … … 1297 1292 strcpy(chrProcName, ""); 1298 1293 } 1299 /* Get our ressource dll */ 1294 /* Get our ressource dll */ 1300 1295 // RESSOURCEHANDLE=0; 1301 1296 RESSOURCEHANDLE=queryResModuleHandle(argv[0]); … … 1304 1299 /* Register the percent bar window class */ 1305 1300 percentRegisterBarClass(); 1306 1307 globalHab=WinQueryAnchorBlock(HWND_DESKTOP); 1301 1302 globalHab=WinQueryAnchorBlock(HWND_DESKTOP); 1308 1303 hBitmap=loadBitmap ( chrSourceName, &bmpInfoHeader2); 1309 1310 if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc, 1304 1305 if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc, 1311 1306 RESSOURCEHANDLE, IDDLG_IMGCONVERT, 0) == DID_ERROR ) 1312 1307 { … … 1314 1309 char title[CCHMAXPATH]; 1315 1310 /* 1316 Text: 1317 Title: "Installation problem" 1318 */ 1311 Text: 1312 Title: "Installation problem" 1313 */ 1319 1314 messageBox( text, IDSTR_CONVERTDIALOGERROR , sizeof(text), 1320 1315 title, IDSTR_INSTALLERRORTITLE , sizeof(title), … … 1329 1324 return( 1 ); 1330 1325 } 1331 if(pMemFormatInfo) 1326 if(pMemFormatInfo) 1332 1327 free(pMemFormatInfo); 1333 1328 if(hBitmap) -
branches/v2.9_Lars/classes/mm-progs/include/mmprogs_defaults.h
r4 r74 17 17 * If you need another license for your project/product (commercial, 18 18 * noncommercial, whatever) contact me at 19 * 19 * 20 20 * http://www.os2world.com/cdwriting 21 21 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 34 34 /* Audio player */ 35 35 #define DEFAULT_VOLUME 75 /* Default volume for audio player (not volume object) */ 36 #define INI_MMPLAYER_APP "mmplayer" /* App name to use */37 #define INI_DISPLAY_KEY "displaytype" /* Key for storing which display to show */38 #define INI_VOLUME_KEY "volume" /* Key for storing the volume */36 #define INI_MMPLAYER_APP (PSZ)"mmplayer" /* App name to use */ 37 #define INI_DISPLAY_KEY (PSZ)"displaytype" /* Key for storing which display to show */ 38 #define INI_VOLUME_KEY (PSZ)"volume" /* Key for storing the volume */ 39 39 40 40 /* Image converter */ 41 #define INI_IMGCONV_APP 41 #define INI_IMGCONV_APP (PSZ)"imageconv" 42 42 43 43 /* Audio converter */ 44 #define INI_AUDIOCONV_APP 44 #define INI_AUDIOCONV_APP (PSZ)"audioconv" 45 45 46 46 /* Master volume */ 47 #define INI_VOLUME_APP "volume"47 #define INI_VOLUME_APP (PSZ)"volume" 48 48 49 49 /* Volume for classes */ 50 #define INI_CLASSVOLUME_APP 50 #define INI_CLASSVOLUME_APP (PSZ)"classvolume" 51 51 52 52 /* For setting volume */ 53 #define SETUP_MMAUDIOVOLUME 53 #define SETUP_MMAUDIOVOLUME (PSZ)"MMAUDIOVOLUME" -
branches/v2.9_Lars/classes/mm-progs/makefile
r2 r74 7 7 8 8 CC = gcc 9 LIB_DIR = $d:/emx/lib 10 #CPPFLAGS = -Ge- /Gm+ -G4 -Gl /O+ -Oc+ -Ol 11 CPPFLAGS = -O -Wall -Zomf -Zcrtdll -s 9 CPPFLAGS = -O -Wno-pointer-sign -Wall -Zomf -Zcrtdll -s 12 10 INC = ./include -I ../../classes/inc -I ../../common_functions/include 13 DEFS = 14 PROGS = 11 DEFS = 12 PROGS = 15 13 ODIR = . 16 14 CPPDIR = . … … 22 20 23 21 $(LIBDIR)/%.obj: $(COMMONSRC)/%.c 24 gcc -c -W all -o$@ -Zomf -I$(INC) $<22 gcc -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $< 25 23 26 24 all: $(LIBOBJS) … … 48 46 -cd ./mmplayer && make cleaner 49 47 -cd ./master_volume && make cleaner 50 -rm ./include/*.*~ 48 -rm ./include/*.*~ 51 49 52 50 -
branches/v2.9_Lars/classes/mm-progs/master_volume/volume.c
r2 r74 17 17 * along with this program; see the file COPYING. If not, write to 18 18 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 19 */ 19 */ 20 20 /* 21 21 * If you need another license for your project/product (commercial, 22 22 * noncommercial, whatever) contact me at 23 * 23 * 24 24 * http://www.os2world.com/cdwriting 25 25 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 35 35 #define INCL_MMIOOS2 36 36 #define INCL_MCIOS2 37 #define INCL_SECONDARYWINDOW 38 #define INCL_GRAPHICBUTTON 37 #define INCL_SECONDARYWINDOW 38 #define INCL_GRAPHICBUTTON 39 39 #include <os2.h> 40 40 #include <sw.h> … … 73 73 BOOL bHaveWindowPos=FALSE; 74 74 75 BOOL bMute=FALSE; 75 BOOL bMute=FALSE; 76 76 HMODULE RESSOURCEHANDLE=0; 77 77 int bTBVisible=0; … … 134 134 135 135 /* Masteraudio does not support NOTIFY so use a thread to prevent PM freeze */ 136 MRESULT EXPENTRY volumeObjectProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 136 MRESULT EXPENTRY volumeObjectProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 137 137 { 138 138 switch(msg) … … 153 153 ULONG mastervolume; /* Set to master volumepercentage 154 154 percentage by this example */ 155 155 156 156 USHORT usDeviceID=0; 157 157 MCI_MASTERAUDIO_PARMS masteraudioparms; … … 161 161 memset(&openParms,0, sizeof(openParms)); 162 162 openParms.pszDeviceType="Masteraudio"; 163 163 164 164 rc=mciSendCommand(0, /* Device */ 165 165 MCI_OPEN, /* Master audio message */ … … 171 171 mciGetErrorString(rc,chrCommand, sizeof(chrCommand)); 172 172 //sprintf(chrCommand, "%x", rc); 173 WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, chrCommand, "", 1234, MB_MOVEABLE); 173 WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, chrCommand, "", 1234, MB_MOVEABLE); 174 174 DosBeep(5000, 10); 175 175 usDeviceID=openParms.usDeviceID; … … 178 178 /* Get current system master 179 179 volume setting */ 180 180 181 181 mciSendCommand(usDeviceID, /* Device */ 182 182 MCI_MASTERAUDIO, /* Master audio message */ … … 188 188 /* Get current system master 189 189 volume setting */ 190 190 191 191 mciSendCommand(usDeviceID, /* Device */ 192 192 MCI_MASTERAUDIO, /* Master audio message */ … … 195 195 (PVOID) &masteraudioparms, /* Data structure */ 196 196 0); /* User parm */ 197 197 198 198 mastervolume = masteraudioparms.ulReturn; 199 199 DosBeep(500, 10); … … 228 228 } 229 229 230 void _OptlinkvolumeThreadFunc (void *arg)230 void volumeThreadFunc (void *arg) 231 231 { 232 232 HAB hab; … … 238 238 hmq=WinCreateMsgQueue(hab,0); 239 239 if(hmq) { 240 240 241 241 if((hwndThread=WinCreateWindow(HWND_OBJECT, WC_STATIC, "", 0,0,0,0,0, NULLHANDLE, 242 242 HWND_BOTTOM, 1, NULLHANDLE, NULLHANDLE))==NULLHANDLE) { … … 245 245 } 246 246 WinSubclassWindow(hwndThread,&volumeObjectProc); 247 /* Window created. */ 247 /* Window created. */ 248 248 249 249 while(WinGetMsg(hab,&qmsg,(HWND)NULL,0,0)) 250 250 WinDispatchMsg(hab,&qmsg); 251 251 WinDestroyWindow(hwndThread); 252 252 253 253 WinDestroyMsgQueue(hmq); 254 254 } … … 267 267 if((hwndTitleBar=WinWindowFromID(hwnd, FID_TITLEBAR))==NULLHANDLE) 268 268 return; 269 269 270 270 hwndPopup = WinLoadMenu(hwnd, RESSOURCEHANDLE, IDM_POPUP); 271 271 if (hwndPopup == NULLHANDLE) 272 272 return; 273 273 274 274 bVisible=WinIsWindowVisible(hwndTitleBar); 275 275 276 276 if(!bVisible) 277 WinSendMsg(hwndPopup,MM_SETITEMATTR,MPFROM2SHORT(IDM_ITEMTITLEBAR,FALSE), 277 WinSendMsg(hwndPopup,MM_SETITEMATTR,MPFROM2SHORT(IDM_ITEMTITLEBAR,FALSE), 278 278 MPFROM2SHORT(MIA_CHECKED,MIA_CHECKED)); 279 279 280 280 WinQueryPointerPos(HWND_DESKTOP, &ptl) ; 281 281 WinMapWindowPoints(HWND_DESKTOP,hwnd,&ptl,1); 282 WinPopupMenu(hwnd, hwnd, hwndPopup, 282 WinPopupMenu(hwnd, hwnd, hwndPopup, 283 283 ptl.x, ptl.y, IDM_ITEMEXIT, PU_HCONSTRAIN | PU_VCONSTRAIN | 284 284 PU_KEYBOARD | PU_MOUSEBUTTON1 | PU_MOUSEBUTTON2 | PU_NONE ); … … 296 296 if(!WinQueryWindowPos(hwndTitleBar,&swp)) 297 297 return FALSE; 298 298 299 299 if(!WinQueryWindowPos(hwnd,&swpFrame)) 300 300 return FALSE; 301 301 302 302 /* Shrink or expand the frame */ 303 303 if(!bTBVisible) { 304 WinSetWindowPos(hwnd, NULLHANDLE, swpFrame.x, swpFrame.y,//-swp.cy, 304 WinSetWindowPos(hwnd, NULLHANDLE, swpFrame.x, swpFrame.y,//-swp.cy, 305 305 swpFrame.cx, swpFrame.cy+swp.cy, SWP_SIZE|SWP_MOVE); 306 306 bTBVisible=TRUE; … … 308 308 else 309 309 { 310 WinSetWindowPos(hwnd, NULLHANDLE, swpFrame.x, swpFrame.y,//+swp.cy, 310 WinSetWindowPos(hwnd, NULLHANDLE, swpFrame.x, swpFrame.y,//+swp.cy, 311 311 swpFrame.cx, swpFrame.cy-swp.cy, SWP_SIZE|SWP_MOVE); 312 312 bTBVisible=FALSE; 313 313 } 314 314 } 315 WinSendMsg(hwnd,WM_UPDATEFRAME,0,0); 315 WinSendMsg(hwnd,WM_UPDATEFRAME,0,0); 316 316 return TRUE; 317 317 } … … 326 326 327 327 switch (msg) 328 { 328 { 329 329 case WM_INITDLG: 330 330 { … … 345 345 (MPARAM) 0L, 346 346 (MPARAM) 100L); 347 347 348 348 WinSendMsg( WinWindowFromID(hwnd, IDCS_VOLUME), 349 349 CSM_SETINCREMENT, 350 350 (MPARAM) 10L, 351 351 (MPARAM) 1L); 352 353 352 353 354 354 WinSendMsg( WinWindowFromID(hwnd, IDCS_VOLUME), 355 355 CSM_SETVALUE, 356 356 (MPARAM) queryMasterVolume(), 357 357 (MPARAM) NULL); 358 359 358 359 360 360 // getMessage(title, IDSTR_CONVERTCHANNELS, sizeof(title), RESSOURCEHANDLE, hwnd); 361 361 /* Set dialog font to WarpSans for Warp 4 and above */ … … 365 365 DEFAULT_DIALOG_FONT ); 366 366 } 367 367 368 368 hpProgramIcon = 369 369 WinLoadPointer( … … 371 371 (HMODULE) NULL, /* Resource is kept in .Exe file. */ 372 372 ID_ICONVOLUME ); /* Which icon to use. */ 373 373 374 374 WinSendMsg( 375 375 hwnd, /* Dialog window handle. */ … … 399 399 PP_BACKGROUNDCOLOR,(ULONG)sizeof(rgb), &rgb); 400 400 } 401 ulSize=sizeof(RGB); 401 ulSize=sizeof(RGB); 402 402 if(IniRestoreData(chrIniFile, INI_VOLUME_APP, INI_BTNFGCLR_KEY, &rgb, &ulSize)) 403 403 { … … 428 428 /* Remove top frame controls if titlebar is hidden */ 429 429 SHORT countSwp; 430 430 431 431 countSwp = (int) WinDefDlgProc(hwnd, msg, mp1, mp2); 432 432 if(countSwp) { 433 if(bTBVisible==0) { 434 /* Hide frame controls */ 433 if(bTBVisible==0) { 434 /* Hide frame controls */ 435 435 /* countSWP: number of standard framecontrols 436 436 pswp: Array of SWP describing the framecontrols. … … 485 485 case WM_BUTTON1MOTIONSTART: 486 486 /* Drag the window without titlebar */ 487 WinSendMsg(hwnd, WM_TRACKFRAME, 487 WinSendMsg(hwnd, WM_TRACKFRAME, 488 488 MPFROMSHORT(TF_MOVE /*| TF_SETPOINTERPOS */), NULL) ; 489 489 return (MRESULT) 0 ; … … 504 504 { 505 505 if (SHORT2FROMMP(mp1)==GBN_BUTTONDOWN) { 506 bMute=TRUE; 506 bMute=TRUE; 507 507 setMasterVolume(hwnd, 0); 508 508 } 509 509 else if (SHORT2FROMMP(mp1)==GBN_BUTTONUP) { 510 510 SHORT sValue; 511 511 512 512 bMute=FALSE; 513 513 WinSendMsg(WinWindowFromID(hwnd, IDCS_VOLUME),CSM_QUERYVALUE ,MPFROMP(&sValue) ,0); … … 524 524 memset(&masteraudioparms,0, sizeof(masteraudioparms)); 525 525 /* Save master audio level */ 526 mciSendCommand( 0, 526 mciSendCommand( 0, 527 527 MCI_MASTERAUDIO, /* Master audio message */ 528 528 MCI_WAIT | MCI_MASTERVOL | MCI_SAVESETTING, … … 594 594 bTBVisible=IniRestoreInt(chrIniFile, INI_VOLUME_APP, INI_TBVISIBLE_KEY, 1); 595 595 596 if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, 596 if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, 597 597 volumeDialogProc, RESSOURCEHANDLE, IDDLG_VOLUME, 0) == DID_ERROR ) 598 598 { 599 599 /* 600 Text: 601 Title: "Installation problem" 600 Text: 601 Title: "Installation problem" 602 602 */ 603 603 #if 0 … … 605 605 title, IDSTR_INSTALLERRORTITLE , sizeof(title), 606 606 RESSOURCEHANDLE, HWND_DESKTOP, MB_OK | MB_ICONEXCLAMATION | MB_MOVEABLE); 607 #endif 607 #endif 608 608 WinDestroyMsgQueue( hmq ); 609 609 WinTerminate( hab ); … … 637 637 (MPARAM) NULL); 638 638 while ( WinGetMsg( hab, (PQMSG) &qmsg, (HWND) NULL, 0, 0) ) 639 WinDispatchMsg( hab, (PQMSG) &qmsg ); 639 WinDispatchMsg( hab, (PQMSG) &qmsg ); 640 640 #endif 641 641 freeResHandle(); -
branches/v2.9_Lars/classes/mm-progs/mmfind/image.c
r4 r74 26 26 POINTL aptl[4]; 27 27 HPS hps; 28 BOOL bReturnCode;29 28 ULONG ulHeight; 30 29 ULONG ulWidth; … … 37 36 * Get position of image frame 38 37 */ 39 bReturnCode =WinQueryWindowPos ( hwnd, &swp);38 WinQueryWindowPos ( hwnd, &swp); 40 39 41 40 WinQueryWindowRect(hwnd, &rectl); … … 48 47 aptl[0].x=(swp.cx-ulWidth)/2; 49 48 aptl[1].x=aptl[0].x+ulWidth; 50 49 51 50 aptl[0].y=(swp.cy-ulHeight)/2; 52 51 aptl[1].y=aptl[0].y+ulHeight; … … 62 61 aptl[0].x=(swp.cx-ulWidth*fRes)/2; 63 62 aptl[1].x=aptl[0].x+ulWidth*fRes; 64 63 65 64 aptl[0].y=(swp.cy-ulHeight*fRes)/2; 66 65 aptl[1].y=aptl[0].y+ulHeight*fRes; 67 66 } 68 67 69 68 aptl[2].x = 0; // source lower left 70 69 aptl[2].y = 0; 71 70 72 71 aptl[3].x = ulWidth; // source upper right 73 72 aptl[3].y = ulHeight; … … 89 88 // WinDrawBitmap(hps, hBitmap, NULLHANDLE, (PPOINTL)aptl, 0, 0, DBM_NORMAL/*|DBM_STRETCH*/); 90 89 #endif 91 bReturnCode =WinEndPaint (hps);90 WinEndPaint (hps); 92 91 } 93 92 … … 96 95 97 96 switch (msg) 98 { 97 { 99 98 case WM_PAINT: 100 99 { … … 276 275 return(0L); 277 276 } 278 277 279 278 280 279 // *************************************************** … … 282 281 // the memory device context obtained above. 283 282 // *************************************************** 284 283 285 284 ImageSize.cx = dwWidth; 286 285 ImageSize.cy = dwHeight; … … 300 299 (ULONG) MB_OK | MB_MOVEABLE | 301 300 MB_ERROR ); 302 #endif 301 #endif 303 302 DevCloseDC(hdc); 304 303 DosFreeMem(pRowBuffer); -
branches/v2.9_Lars/classes/mm-progs/mmfind/mmfind.c
r4 r74 21 21 * If you need another license for your project/product (commercial, 22 22 * noncommercial, whatever) contact me at 23 * 23 * 24 24 * http://www.os2world.com/cdwriting 25 25 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 73 73 BOOL bIsMidi=FALSE; /* No MIDI support atm */ 74 74 BOOL bIsPlaying=FALSE; /* TRUE if currently playing */ 75 BOOL bPaused=FALSE; 75 BOOL bPaused=FALSE; 76 76 ULONG ulPos; 77 77 ULONG ulTotalLength; … … 120 120 hps=WinGetPS(HWND_DESKTOP); 121 121 122 /* Play */ 122 /* Play */ 123 123 hbmPlay=GpiLoadBitmap(hps, hResource, IDBMP_PLAY, 0, 0); 124 124 … … 143 143 ulStyle|=(BS_BITMAP); 144 144 ulStyle&=~BS_TEXT; 145 145 146 146 if(WinSetWindowULong(hwndTemp, QWL_STYLE, ulStyle)) { 147 147 memset(&btCtrl, 0, sizeof(btCtrl)); … … 163 163 ulStyle|=(BS_BITMAP); 164 164 ulStyle&=~BS_TEXT; 165 165 166 166 if(WinSetWindowULong(hwndTemp, QWL_STYLE, ulStyle)) { 167 167 memset(&btCtrl, 0, sizeof(btCtrl)); … … 199 199 if(!MsgGetMessage(audioText, IDSTR_AUDIOINFOTEXT, sizeof(audioText), hResMod,HWND_DESKTOP)) 200 200 strcpy(audioText, TEXT_INFOTEXT); 201 if(!MsgGetMessage(chrMediaFileTypes[MT_AUDIO], IDSTR_TYPEAUDIO, 201 if(!MsgGetMessage(chrMediaFileTypes[MT_AUDIO], IDSTR_TYPEAUDIO, 202 202 sizeof(chrMediaFileTypes[MT_AUDIO]), hResMod, HWND_DESKTOP)) 203 203 strcpy(chrMediaFileTypes[MT_AUDIO], TEXT_TYPEAUDIO); 204 if(!MsgGetMessage(chrMediaFileTypes[MT_IMAGE], IDSTR_TYPEIMAGE, 204 if(!MsgGetMessage(chrMediaFileTypes[MT_IMAGE], IDSTR_TYPEIMAGE, 205 205 sizeof(chrMediaFileTypes[MT_IMAGE]), hResMod, HWND_DESKTOP)) 206 206 strcpy(chrMediaFileTypes[MT_AUDIO], TEXT_TYPEIMAGE); 207 if(!MsgGetMessage(chrMediaFileTypes[MT_VIDEO], IDSTR_TYPEVIDEO, 207 if(!MsgGetMessage(chrMediaFileTypes[MT_VIDEO], IDSTR_TYPEVIDEO, 208 208 sizeof(chrMediaFileTypes[MT_VIDEO]), hResMod, HWND_DESKTOP)) 209 209 strcpy(chrMediaFileTypes[MT_VIDEO], TEXT_TYPEVIDEO); … … 272 272 char chrCommand[50]; 273 273 char retMsg[100]; 274 ULONG rc;275 274 276 275 if(bIsPlaying) { 277 276 sprintf(chrCommand,"stop wave%ld wait", hwndNotify); 278 rc =mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);279 277 mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0); 278 280 279 sprintf(chrCommand,"close wave%ld wait", hwndNotify); 281 rc =mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);282 283 #if 0 280 mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0); 281 282 #if 0 284 283 _resetDisplay(hwndFrame); 285 284 showPlayTimeDisplay( hwndFrame, TRUE); … … 287 286 #endif 288 287 bIsPlaying=FALSE; 289 bPaused=FALSE; 288 bPaused=FALSE; 290 289 } 291 290 … … 319 318 strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice)); 320 319 321 /* Start audio file */ 320 /* Start audio file */ 322 321 sprintf(chrCommand,"open \"%s\" type %s alias wave%ld SHAREABLE wait", chrSourceName, chrDevice, hwndNotify); 323 322 … … 326 325 if((rc & 0x0000ffff)!=MCIERR_SUCCESS) 327 326 return 0; 328 327 329 328 /* Set time format */ 330 329 sprintf(chrCommand,"SET wave%ld TIME FORMAT MILLISECONDS wait", hwndNotify); … … 334 333 rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0); 335 334 return 0; 336 } 335 } 337 336 338 337 #if 0 … … 420 419 421 420 /* Every folder has one running play thread to handle play commands */ 422 void _OptlinkplayThreadFunc (void *arg)421 void playThreadFunc (void *arg) 423 422 { 424 423 HAB hab; … … 488 487 if(MMIO_SUCCESS!=mmioIdentifyFile(chrFile, &mmioInfo, &mmFormatInfo, &fourCC, 0,0)) 489 488 { 490 return MT_UNKNOWN; 489 return MT_UNKNOWN; 491 490 } 492 491 … … 539 538 } 540 539 /* Fill combo box with media types (audio, image, video) */ 541 for(a=0;a<NUMMEDIATYPES;a++) 542 WinSendMsg(WinWindowFromID(hwnd, IDCB_TYPEOFFILE), LM_INSERTITEM, MRFROMSHORT(LIT_SORTASCENDING), 540 for(a=0;a<NUMMEDIATYPES;a++) 541 WinSendMsg(WinWindowFromID(hwnd, IDCB_TYPEOFFILE), LM_INSERTITEM, MRFROMSHORT(LIT_SORTASCENDING), 543 542 MPFROMP(chrMediaFileTypes[a])); 544 543 WinSetWindowText(WinWindowFromID(hwnd, IDCB_TYPEOFFILE), chrMediaFileTypes[0]); … … 681 680 mmio.ulFlags=MMIO_READ; 682 681 mmio.ulTranslate=MMIO_TRANSLATEHEADER; 683 682 684 683 hmmio = mmioOpen(chrFullName, &mmio, MMIO_READ); 685 684 if(!hmmio) … … 689 688 rc = mmioGetHeader(hmmio, &mmAudioHeader,sizeof(MMAUDIOHEADER), 690 689 &lBytesRead, 0, 0); 691 690 692 691 mmioClose(hmmio, 0); 693 692 if(rc!=MMIO_SUCCESS) { … … 785 784 APIRET rc; /* return code from REXX */ 786 785 SHORT rexxrc = 0; /* return code from function */ 787 char theScript[CCHMAXPATH]; 786 char theScript[CCHMAXPATH]; 788 787 /* By setting the strlength of the output RXSTRING to zero, we */ 789 788 /* force the interpreter to allocate memory and return it to us. */ 790 789 /* We could provide a buffer for the interpreter to use instead. */ 791 790 rexxretval.strlength = 0L; /* initialize return to empty*/ 792 791 793 792 sprintf(theScript, "%s\\%s", pszBinDir, rexxFile); 794 793 … … 807 806 #if 0 808 807 if(rc) { 809 sprintf(text,"Error in the Rexx skript %s\n\n Get more information with 'help REX%04d'.\n", 808 sprintf(text,"Error in the Rexx skript %s\n\n Get more information with 'help REX%04d'.\n", 810 809 tPt->rexxSkript, rc*-1); 811 810 WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, text, "", 1234, MB_OK|MB_MOVEABLE|MB_ERROR); … … 822 821 } 823 822 if(rexxretval.strptr) 824 DosFreeMem(rexxretval.strptr); /* Release storage given to us by REXX. */ 823 DosFreeMem(rexxretval.strptr); /* Release storage given to us by REXX. */ 825 824 if(!rc) 826 825 return TRUE; … … 845 844 '\0', 846 845 sizeof(MMFORMATINFO) ); 847 846 848 847 mmFormatInfo.ulMediaType |= MMIO_MEDIATYPE_IMAGE; 849 mmFormatInfo.ulFlags|=MMIO_CANREADTRANSLATED;/* Read !!!*/ 848 mmFormatInfo.ulFlags|=MMIO_CANREADTRANSLATED;/* Read !!!*/ 850 849 ulReturnCode = mmioQueryFormatCount ( &mmFormatInfo, 851 850 &lNumIOProcs, 852 851 0, 853 852 0 ); 854 853 855 854 if( ulReturnCode != MMIO_SUCCESS ) 856 855 { … … 873 872 return FALSE; 874 873 } 875 874 876 875 /* 877 876 * call mmioGetFormats to get info on the formats supported. … … 891 890 return FALSE; 892 891 } 893 892 894 893 if( lFormatsRead != lNumIOProcs ) 895 894 { … … 919 918 } 920 919 } 921 } 920 } 922 921 /* 923 922 * advance to next entry in mmFormatInfo array 924 */ 923 */ 925 924 pmmFormatInfoArray++; 926 925 } … … 952 951 if(hab) { 953 952 hmq=WinCreateMsgQueue(hab,0); 954 if(hmq) { 955 /* Check if user started prog by hand */ 953 if(hmq) { 954 /* Check if user started prog by hand */ 956 955 if(argc!=NUMPARAMS) {/* Not the right num of params */ 957 956 pmUsage(); 958 957 } 959 958 else { 960 HWND hwndDlg; 961 962 /* Get our ressource dll */ 959 HWND hwndDlg; 960 961 /* Get our ressource dll */ 963 962 RESSOURCEHANDLE=queryResModuleHandle(argv[0]); 964 963 /* Load NLV strings */ … … 1031 1030 { 1032 1031 if(hBitmap) 1033 GpiDeleteBitmap(hBitmap); 1032 GpiDeleteBitmap(hBitmap); 1034 1033 if( fd.lReturn == DID_OK ) 1035 1034 { -
branches/v2.9_Lars/classes/mm-progs/volume/classvol.c
r2 r74 22 22 * If you need another license for your project/product (commercial, 23 23 * noncommercial, whatever) contact me at 24 * 24 * 25 25 * http://www.os2world.com/cdwriting 26 26 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 54 54 //#include "cwaudioinc.h" 55 55 56 #ifndef OPEN_DEFAULT 56 #ifndef OPEN_DEFAULT 57 57 /* Open views for the wpOpen() method */ 58 58 #define OPEN_UNKNOWN -1 … … 162 162 hResource=BMP_RESSOURCEHANDLE; //_queryResModuleHandle(); 163 163 hps=WinGetPS(HWND_DESKTOP); 164 164 165 165 /* The main BMP */ 166 166 allBMPs[MAIN_BMP_IDX].hbm=GpiLoadBitmap(hps, hResource, IDBMP_MAIN, 0, 0); … … 265 265 WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclSource.xLeft,ci.rclSource.yBottom, 266 266 ci.rclSource.xRight-ci.rclSource.xLeft, 267 ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE|SWP_SIZE); 267 ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE|SWP_SIZE); 268 268 oldPlayTimeProc=WinSubclassWindow(WinWindowFromID(hwnd, IDST_MMPLAYERPLAYTIME), playTimeTextProc); 269 269 270 270 /* Pos slider */ 271 271 ci=ciControls[CTRLIDX_POSSLIDER];//ciPosSlider; 272 WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 272 WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 273 273 hwnd, HWND_TOP, ci.id, NULLHANDLE, NULLHANDLE); 274 274 WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclDest.xLeft, ci.rclDest.yBottom, 275 275 ci.rclSource.xRight-ci.rclSource.xLeft, 276 276 ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE | SWP_SIZE); 277 277 278 278 WinSendMsg(WinWindowFromID(hwnd, ci.id),SLM_SETSLIDERINFO, 279 279 MPFROM2SHORT(SMA_SLIDERARMDIMENSIONS,0), 280 MPFROM2SHORT( 9, 9)); 280 MPFROM2SHORT( 9, 9)); 281 281 #endif 282 282 283 283 /* Vol slider */ 284 284 ci=ciControls[CTRLIDX_VOLSLIDER];//ciVolSlider; 285 WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 285 WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 286 286 hwnd, HWND_TOP, ci.id, NULLHANDLE, NULLHANDLE); 287 287 WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclDest.xLeft, ci.rclDest.yBottom, … … 290 290 WinSendMsg(WinWindowFromID(hwnd, ci.id),SLM_SETSLIDERINFO, 291 291 MPFROM2SHORT(SMA_SLIDERARMDIMENSIONS,0), 292 MPFROM2SHORT( 9, 9)); 292 MPFROM2SHORT( 9, 9)); 293 293 294 294 } … … 328 328 MPFROM2SHORT(SC_SIZE, TRUE), 329 329 MPFROMP(NULL)); 330 330 331 331 WinSendMsg(hwndMenu, /* Delete Minimize from the system menu */ 332 332 MM_DELETEITEM, 333 333 MPFROM2SHORT(SC_MINIMIZE, TRUE), 334 334 MPFROMP(NULL)); 335 335 336 336 WinSendMsg(hwndMenu, /* Delete Maximize from the system menu */ 337 337 MM_DELETEITEM, … … 368 368 369 369 switch (msg) 370 { 370 { 371 371 case WM_INITDLG: 372 372 { … … 381 381 swctl.fbJump=SWL_JUMPABLE; 382 382 WinAddSwitchEntry(&swctl); 383 383 384 384 adjustDialogControlPos(hwnd); 385 385 386 386 /* Set volume slider*/ 387 387 WinSendMsg( WinWindowFromID(hwnd, IDSL_MMPLAYERVOLUME), … … 389 389 MPFROM2SHORT(SMA_SLIDERARMPOSITION,SMA_INCREMENTVALUE), 390 390 MPFROMLONG( ulVolume)); 391 391 392 392 FixSysMenu(hwnd); 393 393 … … 397 397 POINTL ptl; 398 398 399 WinQueryWindowPos(WinWindowFromID(hwnd, FID_TITLEBAR), &swp); 400 WinSetWindowPos(WinWindowFromID(hwnd, ID_CLASSVOLCLIENT), NULLHANDLE, 401 WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME), 402 WinQuerySysValue(HWND_DESKTOP, SV_CYDLGFRAME), 399 WinQueryWindowPos(WinWindowFromID(hwnd, FID_TITLEBAR), &swp); 400 WinSetWindowPos(WinWindowFromID(hwnd, ID_CLASSVOLCLIENT), NULLHANDLE, 401 WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME), 402 WinQuerySysValue(HWND_DESKTOP, SV_CYDLGFRAME), 403 403 allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cx, 404 404 allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cy, 405 405 SWP_SIZE|SWP_MOVE); 406 406 orgBgProc=WinSubclassWindow(WinWindowFromID(hwnd, ID_CLASSVOLCLIENT), bgProc); 407 407 408 408 /* Get mouse position */ 409 409 WinQueryPointerPos(HWND_DESKTOP, &ptl); … … 459 459 default: 460 460 break; 461 } 461 } 462 462 break; 463 463 … … 468 468 { 469 469 SWP swp; 470 470 471 471 switch(SHORT2FROMMP(mp1)) 472 472 { … … 492 492 493 493 ulVolume=ulValue; 494 sprintf(command,"MMAUDIOVOLUME=% d", ulVolume);494 sprintf(command,"MMAUDIOVOLUME=%lu", ulVolume); 495 495 sendCommandToObject(chrSourceName, command); 496 496 break; … … 509 509 { 510 510 ULONG ulValue; 511 511 512 512 ulValue=LONGFROMMP(mp2); 513 513 ulVolume=ulValue; … … 529 529 break; 530 530 }/* switch */ 531 531 532 532 return WinDefDlgProc( hwnd, msg, mp1, mp2); 533 533 } … … 541 541 BOOL writeVolumeToIni(char * iniFile, ULONG ulVolume) 542 542 { 543 543 544 544 return IniSaveInt(iniFile, INI_CLASSVOLUME_APP, INI_VOLUME_KEY, ulVolume); 545 545 } … … 580 580 if(hab) { 581 581 hmq=WinCreateMsgQueue(hab,0); 582 if(hmq) { 583 /* Check if user started prog by hand */ 582 if(hmq) { 583 /* Check if user started prog by hand */ 584 584 if(argc!=NUMPARAMS ) {/* Not the right num of params */ 585 585 pmUsage(); … … 591 591 // ++chrPtrName; 592 592 //SysWriteToTrapLog("Name: %s\n", chrSourceName); 593 /* Get our ressource dll */ 593 /* Get our ressource dll */ 594 594 RESSOURCEHANDLE=queryResModuleHandle(argv[0]); 595 595 /* Get data from INI file */ … … 604 604 _loadBmps(); 605 605 606 if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc, 606 if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc, 607 607 RESSOURCEHANDLE, IDDLG_CLASSVOLUME, 0) == DID_ERROR ) 608 608 { 609 609 /* 610 Text: 611 Title: "Installation problem" 612 */ 610 Text: 611 Title: "Installation problem" 612 */ 613 613 messageBox( text, IDSTR_CONVERTDIALOGERROR , sizeof(text), 614 614 title, IDSTR_INSTALLERRORTITLE , sizeof(title), -
branches/v2.9_Lars/classes/res/de/mmres_de.DEF
r2 r74 18 18 ; */ 19 19 20 LIBRARY MMRES_DE INIT GLOBAL20 LIBRARY MMRES_DE INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) Chris Wohlgemuth :0.2 (13.03.02) (mmres_de.DLL)#@##1## 13.03.2002 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 22 PROTMODE 23 23 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED DISCARDABLE25 EXPORTS 24 DATA MULTIPLE NONSHARED 25 EXPORTS 26 26 queryLanguage 27 27 -
branches/v2.9_Lars/classes/res/en/mmres_en.DEF
r2 r74 18 18 ; */ 19 19 20 LIBRARY MMRES_EN INIT GLOBAL20 LIBRARY MMRES_EN INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) Chris Wohlgemuth :0.2 (13.03.02) (mmres_en.DLL)#@##1## 13.03.2002 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 22 PROTMODE 23 23 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED DISCARDABLE25 EXPORTS 24 DATA MULTIPLE NONSHARED 25 EXPORTS 26 26 queryLanguage 27 27 -
branches/v2.9_Lars/classes/res/it/mmres_it.DEF
r2 r74 18 18 ; */ 19 19 20 LIBRARY MMRES_IT INIT GLOBAL20 LIBRARY MMRES_IT INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) Chris Wohlgemuth :0.2 (13.03.02) (mmres_it.DLL)#@##1## 13.03.2002 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 22 PROTMODE 23 23 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED DISCARDABLE24 DATA MULTIPLE NONSHARED 25 25 EXPORTS 26 26 queryLanguage -
branches/v2.9_Lars/classes/res/nl/mmres_nl.DEF
r2 r74 18 18 ; */ 19 19 20 LIBRARY MMRES_NL INIT GLOBAL20 LIBRARY MMRES_NL INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) B. van Leeuwen :0.2 (13.03.02) (mmres_nl.DLL)#@##1## 13.03.2002 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 22 PROTMODE 23 23 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED DISCARDABLE25 EXPORTS 24 DATA MULTIPLE NONSHARED 25 EXPORTS 26 26 queryLanguage 27 27 -
branches/v2.9_Lars/classes/res/tw/mmres_tw.DEF
r4 r74 18 18 ; */ 19 19 20 LIBRARY MMRES_TW INIT GLOBAL20 LIBRARY MMRES_TW INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) Ming-Lung Cheng:0.2 (12.02.06) (mmres_tw.DLL)#@##1## 13.03.2002 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 22 PROTMODE 23 23 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED DISCARDABLE25 EXPORTS 24 DATA MULTIPLE NONSHARED 25 EXPORTS 26 26 queryLanguage 27 27 -
branches/v2.9_Lars/common_functions/helper.c
r4 r74 19 19 /* 20 20 * If you need another license for your prject/product contact me at 21 * 21 * 22 22 * http://www.os2world.com/cdwriting 23 23 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 40 40 //#define INSTALLDIR 1 41 41 42 #define INI_BGCLR_KEY "bg"43 #define INI_FGCLR_KEY "fg"44 #define INI_BTNBGCLR_KEY "btnbg"45 #define INI_BTNFGCLR_KEY "btnfg"46 #define INI_ACTIVETBBGCLR_KEY 47 #define INI_INACTIVETBBGCLR_KEY 48 #define INI_ACTIVETBFGCLR_KEY 49 #define INI_INACTIVETBFGCLR_KEY 42 #define INI_BGCLR_KEY (PSZ)"bg" 43 #define INI_FGCLR_KEY (PSZ)"fg" 44 #define INI_BTNBGCLR_KEY (PSZ)"btnbg" 45 #define INI_BTNFGCLR_KEY (PSZ)"btnfg" 46 #define INI_ACTIVETBBGCLR_KEY (PSZ)"activetbbg" 47 #define INI_INACTIVETBBGCLR_KEY (PSZ)"inactivetbbg" 48 #define INI_ACTIVETBFGCLR_KEY (PSZ)"activetbfg" 49 #define INI_INACTIVETBFGCLR_KEY (PSZ)"inactivetbfg" 50 50 51 51 /* The subdirectory in the installation directory where to put the log files */ … … 56 56 #define DEFRESDLLNAME "\\mmres_en.dll" 57 57 58 extern char*params[];58 extern PSZ params[]; 59 59 extern HMODULE RESSOURCEHANDLE; 60 60 extern char logName[]; … … 65 65 66 66 HMODULE _queryResModuleHandle2(char *installDir); 67 BOOL IniSaveData( char * iniFile, char* chrApp, char *chrKey, void*theData, ULONG ulSize);68 BOOL IniRestoreData( char * iniFile, char* chrApp, char *chrKey, void * theData, ULONG*ulMaxSize);69 void writeLog( char*logText);67 BOOL IniSaveData(PSZ iniFile, PSZ chrApp, PSZ chrKey, PVOID theData, ULONG ulSize); 68 BOOL IniRestoreData(PSZ iniFile, PSZ chrApp, PSZ chrKey, PVOID theData, PULONG ulMaxSize); 69 void writeLog(PSZ logText); 70 70 void HlpWriteToTrapLog(const char* chrFormat, ...); 71 71 … … 74 74 { 75 75 char logNameLocal[CCHMAXPATH]; 76 76 77 77 sprintf(logNameLocal,"%s\\%s\\%s",params[1],LOGFILE_SUBDIR,logName); 78 78 … … 88 88 } 89 89 90 void writeLog( char*logText)90 void writeLog(PSZ logText) 91 91 { 92 92 char logNameLocal[CCHMAXPATH]; … … 117 117 { 118 118 STARTDATA startData={0}; 119 APIRET rc;120 119 PID pid; 121 120 ULONG ulSessionID=0; 122 charchrLoadError[CCHMAXPATH];123 charstartParams[CCHMAXPATH*4];124 charexename[CCHMAXPATH]={0};125 charchrFolderPath[CCHMAXPATH+10];126 121 UCHAR chrLoadError[CCHMAXPATH]; 122 UCHAR startParams[CCHMAXPATH*4]; 123 UCHAR exename[CCHMAXPATH]={0}; 124 UCHAR chrFolderPath[CCHMAXPATH+10]; 125 127 126 memset(&startData,0,sizeof(startData)); 128 127 startData.Length=sizeof(startData); … … 131 130 startData.TraceOpt=SSF_TRACEOPT_NONE; 132 131 startData.PgmTitle=pszTitle; 133 132 134 133 /* sprintf(exename,"%s",buildWrapName(wrapperExe));*/ 135 sprintf( exename,"%s\\bin\\%s",params[1],wrapperExe);134 sprintf((PCHAR)exename,"%s\\bin\\%s",params[1],wrapperExe); 136 135 /* 137 136 if(!checkHelper(exename)) … … 151 150 152 151 /* Put the exe-path between " " to make sure, spaces are handled correctly */ 153 strcpy( chrFolderPath,folderPath);154 sprintf( startParams,"\"%s\" \"%s\" %s",155 chrInstallDir,chrFolderPath,parameter);152 strcpy((PCHAR)chrFolderPath,(PCHAR)folderPath); 153 sprintf((PCHAR)startParams,"\"%s\" \"%s\" %s", 154 (PCHAR)chrInstallDir,(PCHAR)chrFolderPath, (PCHAR)parameter); 156 155 startData.PgmInputs=startParams; 157 156 158 rc=DosStartSession(&startData,&ulSessionID,&pid);159 return 0; 160 } 161 162 163 BOOL IniRestoreWindowPos(char * iniFile, char* chrApp, char *chrKey, HWND hwnd)157 DosStartSession(&startData,&ulSessionID,&pid); 158 return 0; 159 } 160 161 162 BOOL IniRestoreWindowPos(char * iniFile, PSZ chrApp, PSZ chrKey, HWND hwnd) 164 163 { 165 164 HINI hini=0; … … 183 182 }/* end of if(!hini) */ 184 183 185 ulSize=sizeof(swp); 184 ulSize=sizeof(swp); 186 185 if(!PrfQueryProfileData(hini, chrApp, chrKey, &swp, &ulSize)) 187 186 bError=TRUE; … … 189 188 if(hini) 190 189 PrfCloseProfile(hini); 191 190 192 191 if(bError) 193 192 break; … … 199 198 } 200 199 201 BOOL IniSaveWindowPos( char * iniFile, char* chrApp, char *chrKey, HWND hwnd)200 BOOL IniSaveWindowPos(PSZ iniFile, PSZ chrApp, PSZ chrKey, HWND hwnd) 202 201 { 203 202 HINI hini=0; … … 206 205 207 206 /* Open ini-file */ 208 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP), (unsigned char *)iniFile);207 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),iniFile); 209 208 do{ 210 209 … … 227 226 if(hini) 228 227 PrfCloseProfile(hini); 229 228 230 229 if(bError) 231 230 break; … … 235 234 } 236 235 237 BOOL IniSaveWindowClrs( char * chrIniFile, char*chrApp , HWND hwnd)236 BOOL IniSaveWindowClrs(PSZ chrIniFile, PSZ chrApp , HWND hwnd) 238 237 { 239 238 RGB rgb; … … 283 282 } 284 283 285 BOOL IniRestoreWindowClrs( char * chrIniFile, char*chrApp , HWND hwnd)284 BOOL IniRestoreWindowClrs(PSZ chrIniFile, PSZ chrApp , HWND hwnd) 286 285 { 287 286 RGB rgb; 288 287 ULONG ulSize; 289 288 290 289 ulSize=sizeof(RGB); 291 290 if(IniRestoreData(chrIniFile, chrApp, INI_BGCLR_KEY, &rgb, &ulSize)) … … 295 294 PP_BACKGROUNDCOLOR,(ULONG)sizeof(rgb), &rgb); 296 295 } 297 ulSize=sizeof(RGB); 296 ulSize=sizeof(RGB); 298 297 if(IniRestoreData(chrIniFile, chrApp, INI_FGCLR_KEY, &rgb, &ulSize)) 299 298 { … … 306 305 if(IniRestoreData(chrIniFile, chrApp, INI_ACTIVETBBGCLR_KEY, &rgb, &ulSize)) 307 306 { 308 307 309 308 WinSetPresParam(WinWindowFromID(hwnd, FID_TITLEBAR), 310 309 PP_ACTIVECOLOR,(ULONG)sizeof(rgb), &rgb); … … 324 323 if(IniRestoreData(chrIniFile, chrApp, INI_ACTIVETBFGCLR_KEY, &rgb, &ulSize)) 325 324 { 326 325 327 326 // WinSetPresParam(WinWindowFromID(hwnd, FID_TITLEBAR), 328 327 // PP_ACTIVECOLOR,(ULONG)sizeof(rgb), &rgb); … … 341 340 } 342 341 343 BOOL IniSaveInt( char * iniFile, char* chrApp, char *chrKey, int theInt)342 BOOL IniSaveInt(PSZ iniFile, PSZ chrApp, PSZ chrKey, int theInt) 344 343 { 345 344 HINI hini=0; 346 345 BOOL bError=FALSE; 347 charchrIntString[50];346 UCHAR chrIntString[50]; 348 347 349 348 /* Open ini-file */ … … 363 362 }/* end of if(!hini) */ 364 363 365 sprintf( chrIntString, "%d", theInt);364 sprintf((PCHAR)chrIntString, "%d", theInt); 366 365 if(!PrfWriteProfileString(hini, chrApp, chrKey, chrIntString)) 367 366 bError=TRUE; … … 369 368 if(hini) 370 369 PrfCloseProfile(hini); 371 370 372 371 if(bError) 373 372 break; … … 377 376 } 378 377 379 BOOL IniSaveData( char * iniFile, char* chrApp, char *chrKey, void*theData, ULONG ulSize)378 BOOL IniSaveData(PSZ iniFile, PSZ chrApp, PSZ chrKey, PVOID theData, ULONG ulSize) 380 379 { 381 380 HINI hini=0; … … 383 382 384 383 /* Open ini-file */ 385 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP), (unsigned char *)iniFile);384 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),iniFile); 386 385 do{ 387 386 … … 403 402 if(hini) 404 403 PrfCloseProfile(hini); 405 404 406 405 if(bError) 407 406 break; … … 411 410 } 412 411 413 BOOL IniRestoreData( char * iniFile, char* chrApp, char *chrKey, void * theData, ULONG*ulMaxSize)412 BOOL IniRestoreData(PSZ iniFile, PSZ chrApp, PSZ chrKey, PVOID theData, PULONG ulMaxSize) 414 413 { 415 414 HINI hini=0; … … 417 416 418 417 /* Open ini-file */ 419 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP), (unsigned char *)iniFile);418 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),iniFile); 420 419 do{ 421 420 … … 433 432 434 433 bError=PrfQueryProfileData(hini, chrApp, chrKey, theData, ulMaxSize); 435 434 436 435 if(hini) 437 436 PrfCloseProfile(hini); 438 437 439 438 return bError; 440 439 } while(TRUE); … … 443 442 444 443 445 int IniRestoreInt( char * iniFile, char* chrApp, char *chrKey, int defaultInt)444 int IniRestoreInt(PSZ iniFile, PSZ chrApp, PSZ chrKey, int defaultInt) 446 445 { 447 446 HINI hini=0; … … 449 448 450 449 /* Open ini-file */ 451 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP), (unsigned char *)iniFile);450 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),iniFile); 452 451 do{ 453 452 … … 465 464 466 465 theInt=PrfQueryProfileInt(hini, chrApp, chrKey, defaultInt); 467 466 468 467 if(hini) 469 468 PrfCloseProfile(hini); 470 469 471 470 return theInt; 472 471 } while(TRUE); … … 475 474 476 475 477 BOOL readIni2(char * installDir) 478 { 479 HWND hwnd; 480 481 hwnd=HWND_DESKTOP; 476 BOOL readIni2(PSZ installDir) 477 { 482 478 #if 0 483 479 strncpy(chrInstallDir, installDir,sizeof(chrInstallDir)); 484 480 /* Build full path for cdrecord.ini file */ 485 sprintf(profileName,"%s\\cdrecord.ini", installDir); 481 sprintf(profileName,"%s\\cdrecord.ini", installDir); 486 482 /* Insert message in Logfile */ 487 483 writeLog("Reading values from "); … … 490 486 491 487 /* Open ini-file */ 492 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP), (unsigned char *)profileName);488 hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),profileName); 493 489 do{ 494 490 if(!hini) { … … 522 518 { 523 519 /* Build full path for cdrecord.ini file */ 524 snprintf(chrBuffer, iBufferSize, "%s\\cdrecord.ini", chrInstallDir); 520 snprintf(chrBuffer, iBufferSize, "%s\\cdrecord.ini", chrInstallDir); 525 521 chrBuffer[iBufferSize-1]=0; /* Always terminate with zero */ 526 522 } … … 529 525 HINI HlpOpenIni() 530 526 { 531 charprofileName[CCHMAXPATH];527 UCHAR profileName[CCHMAXPATH]; 532 528 533 529 /* Build full path for cdrecord.ini file */ … … 535 531 536 532 /* Open ini-file */ 537 return PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP), (unsigned char *)profileName);533 return PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),profileName); 538 534 } 539 535 … … 568 564 BOOL HlpBuildMMProgIniFileName(char* chrProgname, char * chrBuffer, ULONG ulBufferSize) 569 565 { 570 char * chrPtr; 566 char * chrPtr; 571 567 572 568 /* Default is INI file in users home dir */ … … 591 587 #if 0 592 588 /* This function returns the module handle of our ressource dll */ 593 HMODULE queryResModuleHandle( char *chrExePath)589 HMODULE queryResModuleHandle(PSZ chrExePath) 594 590 { 595 591 COUNTRYCODE country= {0}; 596 592 COUNTRYINFO countryInfo= {0}; 597 char path[CCHMAXPATH];598 charbuf[CCHMAXPATH];599 char*found;593 UCHAR path[CCHMAXPATH]; 594 UCHAR buf[CCHMAXPATH]; 595 PUCHAR found; 600 596 APIRET rc; 601 597 ULONG ulInfoLen; 602 598 603 599 if(!RESSOURCEHANDLE) { 604 600 605 601 //writeLog("Trying to load ressource DLL.\n"); 606 602 607 /* Get the country code of our system and load the 603 /* Get the country code of our system and load the 608 604 resource DLL with the right language */ 609 605 do { … … 632 628 /* Insert message in Logfile */ 633 629 // writeLog("Ressource-DLL for the current countrycode not found. Trying to load default one (CDFLD001.DLL).\n"); 634 630 635 631 /* NLS DLL not found. Try to load default */ 636 632 found=strrchr(path,'\\'); … … 644 640 //HlpWriteToTrapLog(path); 645 641 //HlpWriteToTrapLog("\n"); 646 642 647 643 648 644 rc=DosLoadModule(buf,sizeof(buf),path, &RESSOURCEHANDLE); … … 662 658 663 659 /* This function returns the module handle of our ressource dll */ 664 HMODULE queryResModuleHandle( char *chrExePath)665 { 666 char path[CCHMAXPATH];667 charbuf[CCHMAXPATH];668 char*found;660 HMODULE queryResModuleHandle(PSZ chrExePath) 661 { 662 UCHAR path[CCHMAXPATH]; 663 UCHAR buf[CCHMAXPATH]; 664 PCHAR found; 669 665 APIRET rc; 670 666 671 667 if(!RESSOURCEHANDLE) { 672 668 673 669 //writeLog("Trying to load ressource DLL.\n"); 674 675 /* Get the language code of our system and load the 670 671 /* Get the language code of our system and load the 676 672 resource DLL with the right language */ 677 do 673 do 678 674 { 679 static charchrLang[]="en_EN";680 PSZ pszLang= "";681 char *chrPtr;682 675 static UCHAR chrLang[]="en_EN"; 676 PSZ pszLang=NULL; 677 PUCHAR chrPtr; 678 683 679 /* Get Language var */ 684 if(NO_ERROR!=DosScanEnv( "LANG", &pszLang)) {680 if(NO_ERROR!=DosScanEnv((PSZ)"LANG", &pszLang)) { 685 681 pszLang=chrLang; 686 } 682 } 687 683 /* Skip leading spaces */ 688 684 chrPtr=pszLang; 689 685 while(*chrPtr==' ') 690 686 chrPtr++; 691 687 692 688 /* Check if value seems to be valid. The var must be something like xx_XX thus length is 5 */ 693 if(strlen( chrPtr)<5)689 if(strlen((PCHAR)chrPtr)<5) 694 690 break; 695 696 sprintf( path,"%s", chrExePath);691 692 sprintf((PCHAR)path,"%s", chrExePath); 697 693 // SysWriteToTrapLog(path); 698 if((found=strrchr( path, '\\'))!=NULLHANDLE)694 if((found=strrchr((PCHAR)path, '\\'))!=NULLHANDLE) 699 695 *found=0; 700 696 701 /* Extract the first two chars */ 702 sprintf( buf, RESDLLNAME, chrPtr[0], chrPtr[1]);703 strcat( path,buf);697 /* Extract the first two chars */ 698 sprintf((PCHAR)buf, RESDLLNAME, chrPtr[0], chrPtr[1]); 699 strcat((PCHAR)path,(const PCHAR)buf); 704 700 /* Insert message in Logfile */ 705 701 // SysWriteToTrapLog("Using the following DLL path: %s\n", path); 706 702 707 703 rc=DosLoadModule(buf,sizeof(buf),path, &RESSOURCEHANDLE); 708 704 if(rc==NO_ERROR) 709 705 break; 710 706 711 707 /* Insert message in Logfile */ 712 708 SysWriteToTrapLog("Ressource-DLL for the current country not found. Trying to load default one.\n"); 713 709 714 710 /* NLS DLL not found. Try to load default */ 715 found=strrchr( path,'\\');711 found=strrchr((PCHAR)path,(int)'\\'); 716 712 if(!found) 717 713 break; 718 714 719 715 *found=0; 720 sprintf( buf, DEFRESDLLNAME);721 strcat( path,buf);716 sprintf((PCHAR)buf, DEFRESDLLNAME); 717 strcat((PCHAR)path,(const PCHAR)buf); 722 718 //HlpWriteToTrapLog("Using the following DLL path: "); 723 719 //HlpWriteToTrapLog(path); 724 720 //HlpWriteToTrapLog("\n"); 725 726 721 722 727 723 rc=DosLoadModule(buf,sizeof(buf),path, &RESSOURCEHANDLE); 728 724 if(rc!=NO_ERROR) { … … 745 741 } 746 742 747 void HlpSendCommandToObject( char* chrObject, char*command)743 void HlpSendCommandToObject(PSZ chrObject, PSZ command) 748 744 { 749 745 HOBJECT hObject; 750 charchrCommand[CCHMAXPATH];746 UCHAR chrCommand[CCHMAXPATH]; 751 747 752 748 hObject=WinQueryObject(chrObject); 753 sprintf( chrCommand,"Querying object pointer for: %s\n", chrObject);749 sprintf((PCHAR)chrCommand,"Querying object pointer for: %s\n", chrObject); 754 750 writeLog(chrCommand); 755 751 if(hObject!=NULLHANDLE) { 756 strcpy( chrCommand,command);752 strcpy((PCHAR)chrCommand,(const PCHAR)command); 757 753 WinSetObjectData(hObject,chrCommand); 758 writeLog( "Sending command to object: ");754 writeLog((PSZ)"Sending command to object: "); 759 755 writeLog(command); 760 writeLog( "\n");756 writeLog((PSZ)"\n"); 761 757 } 762 758 else { 763 sprintf( chrCommand,"Can't query object pointer for: %s\n", chrObject);759 sprintf((PCHAR)chrCommand,"Can't query object pointer for: %s\n", chrObject); 764 760 writeLog(chrCommand); 765 761 } 766 762 } 767 763 768 -
branches/v2.9_Lars/common_functions/img_funcs.c
r4 r74 1 1 /* 2 This file conatins functions for loading image files. 2 This file conatins functions for loading image files. 3 3 */ 4 4 … … 64 64 SIZEL ImageSize; 65 65 ULONG dwHeight, dwWidth; 66 SHORT 66 SHORT wBitCount; 67 67 FOURCC fccStorageSystem; 68 68 ULONG dwPadBytes; 69 69 ULONG dwRowBits; 70 70 ULONG ulReturnCode; 71 ULONG dwReturnCode;72 HBITMAP hbReturnCode;73 LONG lReturnCode;74 71 FOURCC fccIOProc; 75 72 HDC hdc; … … 129 126 130 127 131 dwReturnCode = mmioQueryHeaderLength ( hmmio,128 ulReturnCode = mmioQueryHeaderLength ( hmmio, 132 129 (PLONG)&ulImageHeaderLength, 133 130 0L, … … 203 200 return(0L); 204 201 } 205 202 206 203 /* 207 204 // *************************************************** … … 226 223 (ULONG) MB_OK | MB_MOVEABLE | 227 224 MB_ERROR ); 228 #endif 225 #endif 229 226 DevCloseDC(hdc); 230 227 DosFreeMem(pRowBuffer); … … 265 262 Select the bitmap into the memory device context. 266 263 ***************************************************/ 267 hbReturnCode = GpiSetBitmap ( hps,264 ulReturnCode = GpiSetBitmap ( hps, 268 265 hbm ); 269 266 /*************************************************************** … … 285 282 * it to work. Perhaps will get to it when time is available... 286 283 */ 287 lReturnCode = GpiSetBitmapBits ( hps,284 ulReturnCode = GpiSetBitmapBits ( hps, 288 285 (LONG) dwRowCount, 289 286 (LONG) 1, … … 293 290 294 291 /* Clean up */ 295 hbReturnCode = GpiSetBitmap ( hps,292 ulReturnCode = GpiSetBitmap ( hps, 296 293 NULLHANDLE ); 297 294 ulReturnCode = mmioClose (hmmio, 0L); … … 368 365 ULONG ulReturnCode; 369 366 ULONG ulBytesRead; 370 367 371 368 /* Check file size */ 372 369 if(SysQueryFileSize(pszFileName)==0) 373 370 return FALSE; /* File is empty at the moment, so return without reading. */ 374 371 375 372 ulReturnCode = mmioIdentifyFile ( pszFileName, 376 373 0L, … … 436 433 &mmioinfo, 437 434 MMIO_READ | MMIO_DENYWRITE | MMIO_NOIDENTIFY ); 438 435 439 436 if ( ! hmmio ) 440 437 { -
branches/v2.9_Lars/common_functions/ini_funcs.c
r4 r74 55 55 if(hiniPriv && !hini) 56 56 PrfCloseProfile(hiniPriv); 57 57 58 58 if(bError) 59 59 break; … … 103 103 }/* end of if(!hini) */ 104 104 105 ulSize=sizeof(swp); 105 ulSize=sizeof(swp); 106 106 if(!PrfQueryProfileData(hiniPriv, chrApp, chrKey, &swp, &ulSize)) 107 107 bError=TRUE; … … 109 109 if(hiniPriv && !hini) 110 110 PrfCloseProfile(hiniPriv); 111 111 112 112 if(bError) 113 113 break; … … 166 166 if(hiniPriv && !hini) 167 167 PrfCloseProfile(hiniPriv); 168 168 169 169 if(bError) 170 170 break; … … 214 214 ulRC=PrfQueryProfileString(hiniPriv, chrApp, chrKey, chrDefault, chrBuffer, ulSize); 215 215 216 if(hiniPriv && !hini) 217 PrfCloseProfile(hiniPriv); 218 219 216 if(hiniPriv && !hini) { 217 PrfCloseProfile(hiniPriv); 218 } 219 break; 220 220 } while(TRUE); 221 221 return ulRC; -
branches/v2.9_Lars/common_functions/makefile
r53 r74 4 4 5 5 CC = gcc 6 LIB_DIR = U:/usr/lib6 LIB_DIR = D:/usr/lib 7 7 #CPPFLAGS = -Ge- /Gm+ -G4 -Gl /O+ -Oc+ -Ol 8 8 CPPFLAGS = -O -Zomf -Zcrtdll -s 9 9 INC = ../include 10 DEFS = 11 PROGS = 10 DEFS = 11 PROGS = 12 12 ODIR = . 13 13 CPPDIR = . -
branches/v2.9_Lars/common_functions/message.c
r4 r74 10 10 { 11 11 WinMessageBox(HWND_DESKTOP,0, 12 "The resource DLL which contains all the dialogs, graphics and messages cannot be loaded. \13 Please check your installation.",14 "Problem with class installation",12345,12 (PSZ)"The resource DLL which contains all the dialogs, graphics and messages cannot be loaded. \ 13 Please check your installation.", 14 (PSZ)"Problem with class installation",12345, 15 15 MB_OK|MB_MOVEABLE|MB_ERROR); 16 16 } … … 23 23 At least I suspect this happens on system where the MM classes don't work. 24 24 Instead there's a new function errorResourceVerbose() which may be called when we 25 know, the WPS is up and running. 25 know, the WPS is up and running. 26 26 */ 27 27 WinMessageBox(HWND_DESKTOP,0, … … 51 51 /* */ 52 52 /*!!*************************************************/ 53 ULONG messageBox( char*text, ULONG ulTextID , LONG lSizeText,54 char*title, ULONG ulTitleID, LONG lSizeTitle,53 ULONG messageBox( PSZ text, ULONG ulTextID , LONG lSizeText, 54 PSZ title, ULONG ulTitleID, LONG lSizeTitle, 55 55 HMODULE hResource, HWND hwnd, ULONG ulFlags) 56 56 { … … 67 67 } 68 68 69 static ULONG mBox( char*text, ULONG ulTextID , LONG lSizeText,70 char*title, ULONG ulTitleID, LONG lSizeTitle,69 static ULONG mBox( PSZ text, ULONG ulTextID , LONG lSizeText, 70 PSZ title, ULONG ulTitleID, LONG lSizeTitle, 71 71 HMODULE hResource, HWND hwnd, ULONG ulFlags) 72 72 { … … 183 183 ULONG MsgShowMessageBox(HWND hwnd, ULONG ulIDTitle, ULONG ulIDText, HMODULE hModule, ULONG ulFlag) 184 184 { 185 char*pText;186 char*pTitle;185 PSZ pText; 186 PSZ pTitle; 187 187 ULONG rc; 188 188 … … 223 223 /* */ 224 224 /*!!*************************************************/ 225 BOOL getMessage( char*text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)225 BOOL getMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd) 226 226 { 227 227 if(!WinLoadString(WinQueryAnchorBlock(hwnd),hResource,ulID,lSizeText,text)) { 228 strcpy( text,"");228 strcpy((PCHAR)text,""); 229 229 return FALSE; 230 230 } … … 250 250 /* */ 251 251 /*!!**********************************************************/ 252 BOOL MsgGetMessage( char*text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)252 BOOL MsgGetMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd) 253 253 { 254 254 return getMessage( text, ulID, lSizeText, hResource, hwnd); … … 258 258 { 259 259 WinMessageBox(HWND_DESKTOP,0, 260 "This helper shouldn't be started by hand. It is called by the multimedia classes. \261 If you didn't launch the helper by hand you may have found a bug. Please contact the author.",262 "Problem with multimedia classes",12345,260 (PSZ)"This helper shouldn't be started by hand. It is called by the multimedia classes. \ 261 If you didn't launch the helper by hand you may have found a bug. Please contact the author.", 262 (PSZ)"Problem with multimedia classes",12345, 263 263 MB_OK|MB_MOVEABLE|MB_ERROR); 264 264 -
branches/v2.9_Lars/make.inc
r55 r74 1 1 # List of languages to be built. 2 LANGUAGES = de en nl it tw 2 LANGUAGES = de en nl it tw 3 3 4 4 #define the next makro if compiling a release rather than a beta … … 22 22 VERSION_STRING = 0.2.9 23 23 AUTHOR_STRING = "(C) Chris Wohlgemuth 2002-2005 Gregg Young 2023" 24 BUILD_ROOT = U:/CWMM_Workspace/Trunk24 BUILD_ROOT = D:/cwmm/trunk 25 25 26 26 # Put version in environment for REXX skripts -
branches/v2.9_Lars/mediafolder/MMconfigPage/cddbPage.def
r2 r74 1 1 LIBRARY cddbpage INITINSTANCE LONGNAMES 2 PROTMODE3 2 DESCRIPTION 'CDDB Config page - (c) Copyright Chris Wohlgemuth 2002' 4 3 DATA MULTIPLE NONSHARED 5 STACKSIZE 327686 4 EXPORTS 7 5 InsertCDDBConfigPage @1 -
branches/v2.9_Lars/mediafolder/c/audioshadow/makefile
r2 r74 6 6 CC = icc 7 7 #CPPFLAGS = /Ge- /Gm+ /G4 /Gl /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 8 CPPFLAGS = /G5 /Ge- /Gm+ /Gl 9 LIBS = mmPM2.lib rexx.lib 8 CPPFLAGS = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 9 LIBS = mmPM2.lib rexx.lib 10 10 INC = ..\include 11 11 HELPERDIR = .\helper 12 DEFS = 13 PROGS = 12 DEFS = 13 PROGS = 14 14 ODIR = ./obj 15 15 CPPDIR = . … … 18 18 OBJECTS = audioshadowoverridenwpmethods.obj audioshadowoverridenwpclsmethods.obj 19 19 20 all: mediaf older.dll20 all: mediafld.dll 21 21 22 mediaf older.dll: $(OBJECTS)22 mediafld.dll: $(OBJECTS) 23 23 cd ../. && make 24 24 -
branches/v2.9_Lars/mediafolder/c/cddb/makefile
r53 r74 7 7 #CPPFLAGSSTATIC = -O -Zomf -Zsys -Zmt -s 8 8 9 CPPFLAGSVAC = /Ge- /Gm+ /G4 /Gl 9 CPPFLAGSVAC = /Ge- /Gm+ /G4 /Gl- /O+ /Oc+ /Ol- /Q+ 10 10 INC = ../../include 11 11 MOREINC = $(COMMONSRC)/include 12 DEFS = 13 PROGS = 12 DEFS = 13 PROGS = 14 14 ODIR = . 15 15 CPPDIR = . … … 29 29 all: pmcddb.exe pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll 30 30 31 nlv: pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll 31 nlv: pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll 32 32 33 33 pmdb001.dll: ./res/pmcddb001.c ./res/pmcddb001.res … … 36 36 cp ./res/pmcddb001.dll pmdb001.dll 37 37 38 ./res/pmcddb001.res: ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h 38 ./res/pmcddb001.res: ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h 39 39 cd ./Res && make 40 40 … … 43 43 cp ./res/pmcddb049.dll pmdb049.dll 44 44 45 ./res/pmcddb049.res: ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h 45 ./res/pmcddb049.res: ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h 46 46 cd ./Res && make 47 47 … … 50 50 cp ./res/pmcddb031.dll pmdb031.dll 51 51 52 ./res/pmcddb031.res: ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h 52 ./res/pmcddb031.res: ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h 53 53 cd ./Res && make 54 54 … … 57 57 cp ./res/pmcddb039.dll pmdb039.dll 58 58 59 ./res/pmcddb039.res: ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h 59 ./res/pmcddb039.res: ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h 60 60 cd ./Res && make 61 61 … … 66 66 cp ./res/pmcddb088.dll pmdb088.dll 67 67 68 ./res/pmcddb088.res: ./res/pmcddb088.rc ./res/pmcddb088.dlg $(INC)/pmcddbres.h 68 ./res/pmcddb088.res: ./res/pmcddb088.rc ./res/pmcddb088.dlg $(INC)/pmcddbres.h 69 69 cd ./Res && make 70 70 71 71 72 $(LIBDIR)/%.obj: $(COMMONSRC)/%.c 73 $(CC) -c -Wall -o$@ -Zomf -I$(INC) -I$(MOREINC) $< 72 $(LIBDIR)/%.obj: $(COMMONSRC)/%.c 73 $(CC) -c -Wall -o$@ -Zomf -I$(INC) -I$(MOREINC) $< 74 74 75 cd.o bj: cd.c75 cd.o: cd.c 76 76 gcc -c $< -I$(INC) -Zcrtdll -Zomf 77 77 78 helper.o bj: helper.c78 helper.o: helper.c 79 79 gcc -c $< -I$(INC) -Zcrtdll -Zomf 80 80 81 message.o bj: message.c81 message.o: message.c 82 82 gcc -c $< -I$(INC) -Zcrtdll -Zomf 83 83 … … 85 85 $(CC) $< $(CPPFLAGS) -I$(INC) -I$(MOREINC) $(LIBOBJECTS) $(OBJECTS) $(CDDBOBJ) -lsocket -lstdc++6_dll.lib pmcddb.def 86 86 87 cddb.o bj: cddb.cpp $(INC)\cddb.hh87 cddb.o: cddb.cpp $(INC)\cddb.hh 88 88 gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf 89 89 90 cddbcls.o bj: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h90 cddbcls.o: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h 91 91 cd ../pm_launchers && make 92 92 93 93 94 printHelper.o bj: printHelper.cpp94 printHelper.o: printHelper.cpp 95 95 gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf 96 96 97 cddbhelper.o bj: $(HELPERDIR)\cddbhelper.cpp97 cddbhelper.o: $(HELPERDIR)\cddbhelper.cpp 98 98 gcc -c $< -I$(INC) -Zcrtdll -Zomf 99 99 -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb001.DEF
r43 r74 18 18 ; */ 19 19 20 LIBRARY PMDB001 INIT GLOBAL20 LIBRARY PMDB001 INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) Chris Wohlgemuth :0.1 (12.05.02) (PMDB001.DLL)#@##1## 12.05.2002 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 PROTMODE23 22 CODE LOADONCALL DISCARDABLE 24 DATA SINGLESHARED25 EXPORTS 23 DATA MULTIPLE NONSHARED 24 EXPORTS 26 25 queryLanguage = _queryLanguage -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb031.DEF
r43 r74 18 18 ; */ 19 19 20 LIBRARY PMDB031 INIT GLOBAL20 LIBRARY PMDB031 INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) B. van Leeuwen :0.1 (26.06.04) (PMDB031.DLL)#@##1## 25.06.2004 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 PROTMODE 23 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED 25 EXPORTS 22 DATA MULTIPLE NONSHARED 23 EXPORTS 26 24 queryLanguage = _queryLanguage -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb039.DEF
r43 r74 18 18 ; */ 19 19 20 LIBRARY PMDB039 INIT GLOBAL20 LIBRARY PMDB039 INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) Gabriele Gamba :0.1 (19.02.05) (PMDB039.DLL)#@##1## 19.02.2005 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 PROTMODE23 22 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED23 DATA MULTIPLE NONSHARED 25 24 EXPORTS 26 25 queryLanguage = _queryLanguage -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb049.DEF
r43 r74 18 18 ; */ 19 19 20 LIBRARY PMDB049 INIT GLOBAL20 LIBRARY PMDB049 INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) Chris Wohlgemuth :0.1 (12.05.02) (PMDB001.DLL)#@##1## 12.05.2002 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 PROTMODE23 22 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED25 EXPORTS 23 DATA MULTIPLE NONSHARED 24 EXPORTS 26 25 queryLanguage = _queryLanguage -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb088.DEF
r43 r74 18 18 ; */ 19 19 20 LIBRARY PMDB088 INIT GLOBAL20 LIBRARY PMDB088 INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#(c) Ming-Lung Cheng :0.1 (12.05.02) (PMDB088.DLL)#@##1## 12.02.2006 18:17:00 My ;-) ::::1::@@Resource-DLL' 22 PROTMODE 23 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED 25 EXPORTS 22 DATA MULTIPLE NONSHARED 23 EXPORTS 26 24 queryLanguage = _queryLanguage -
branches/v2.9_Lars/mediafolder/c/cdfldr/makefile
r2 r74 5 5 CC = icc 6 6 #CPPFLAGS = /Ge- /Gm+ /G4 /Gl /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 7 CPPFLAGS = /G5 /Ge- /Gm+ /Gl 8 LIBS = mmPM2.lib rexx.lib 7 CPPFLAGS = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 8 LIBS = mmPM2.lib rexx.lib 9 9 INC = ..\include 10 10 HELPERDIR = ..\helper 11 DEFS = 12 PROGS = 11 DEFS = 12 PROGS = 13 13 ODIR = ./obj 14 14 CPPDIR = . … … 18 18 ..\helper\cd.obj cdfldrdialogprocs.obj 19 19 20 all: mediaf older.dll20 all: mediafld.dll 21 21 22 22 … … 24 24 icc $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $< 25 25 26 mediaf older.dll:26 mediafld.dll: 27 27 cd ../. && make 28 28 -
branches/v2.9_Lars/mediafolder/c/createcd/makefile
r2 r74 4 4 5 5 CC = icc 6 LIB_DIR = $d:/emx/lib 6 LIB_DIR = $d:/emx/lib 7 7 CPPFLAGS = -O -Zomf -Zcrtdll -s 8 CPPFLAGSVAC = /Ge /Gm+ /G4 /Gl 8 CPPFLAGSVAC = /Ge /Gm+ /G4 /Gl- /O+ /Oc+ /Ol- /Q+ /Ss 9 9 INC = ../../include 10 DEFS = 11 PROGS = 10 DEFS = 11 PROGS = 12 12 ODIR = . 13 13 CPPDIR = . … … 20 20 21 21 22 creatcd.exe: createcd.c 22 creatcd.exe: createcd.c 23 23 ifdef ECS_COMPILE 24 icc $(CPPFLAGSVAC) -I$(INC) $< 24 icc $(CPPFLAGSVAC) -I$(INC) $< 25 25 else 26 icc $(CPPFLAGSVAC) -I$(INC) $< 26 icc $(CPPFLAGSVAC) -I$(INC) $< 27 27 # gcc $(CPPFLAGS) -I$(INC) $< -Zlinker /PMTYPE:VIO 28 28 endif -
branches/v2.9_Lars/mediafolder/c/helper/except.cpp
r41 r74 455 455 { 456 456 ULONG rc = XCPT_CONTINUE_SEARCH; 457 457 458 458 if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND) 459 459 return (XCPT_CONTINUE_SEARCH); … … 495 495 { 496 496 ULONG rc = XCPT_CONTINUE_SEARCH; 497 497 498 498 if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND) 499 499 return (XCPT_CONTINUE_SEARCH); … … 502 502 if (pERepRec->fHandlerFlags & EH_NESTED_CALL) 503 503 return (XCPT_CONTINUE_SEARCH); 504 504 505 505 if ((pERepRec->ExceptionNum & XCPT_SEVERITY_CODE) == XCPT_FATAL_EXCEPTION) 506 506 { … … 530 530 531 531 return 'c'; 532 } 532 } 533 533 534 534 ULONG APIENTRY HandleFatalException (PEXCEPTIONREPORTRECORD pERepRec, … … 641 641 } 642 642 #endif 643 643 644 644 fAlreadyTrapped = TRUE; 645 645 /* end John Currier's recursion prevention */ … … 1167 1167 } 1168 1168 1169 #include <exe.h>1170 1169 #include <newexe.h> 1171 1170 #define FOR_EXEHDR 1 /* avoid define conflicts between newexe.h and exe386.h */ … … 1820 1819 do { 1821 1820 read(fh,(void *)&FirstLine,sizeof(FirstLine)); 1822 1821 1823 1822 if (FirstLine.LineNum!=0) { 1824 1823 fprintf(hTrap,"Missing Line table information\n"); … … 1849 1848 } 1850 1849 break; 1851 1850 1852 1851 case 1: 1853 1852 lseek(fh, sizeof(struct linlist_rec), SEEK_CUR); 1854 1853 break; 1855 1854 1856 1855 case 2: 1857 1856 lseek(fh, sizeof(struct linsourcelist_rec), SEEK_CUR); 1858 1857 break; 1859 1858 1860 1859 case 3: 1861 1860 lseek(fh, sizeof(struct filenam_rec), SEEK_CUR); 1862 1861 break; 1863 1862 1864 1863 case 4: 1865 1864 lseek(fh, sizeof(struct pathtab_rec), SEEK_CUR); 1866 1865 break; 1867 1866 1868 1867 } 1869 1868 } -
branches/v2.9_Lars/mediafolder/c/helper/makefile
r2 r74 4 4 5 5 CC = icc 6 CPPFLAGS = /Ge- /Gm+ /G4 /Gl 7 6 CPPFLAGS = /Ge- /Gm+ /G4 /Gl- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 7 8 8 INC = ..\include 9 DEFS = 10 PROGS = 9 DEFS = 10 PROGS = 11 11 ODIR = ./obj 12 12 CPPDIR = . -
branches/v2.9_Lars/mediafolder/c/m3ufolder/makefile
r2 r74 5 5 CC = icc 6 6 #CPPFLAGS = /Ge- /Gm+ /G4 /Gl /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 7 CPPFLAGS = /G5 /Ge- /Gm+ /Gl 8 LIBS = mmPM2.lib rexx.lib 7 CPPFLAGS = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG) 8 LIBS = mmPM2.lib rexx.lib 9 9 INC = ..\include 10 10 HELPERDIR = ..\helper 11 DEFS = 12 PROGS = 11 DEFS = 12 PROGS = 13 13 ODIR = ./obj 14 14 CPPDIR = . 15 15 16 16 17 all: mediaf older.dll17 all: mediafld.dll 18 18 19 19 .cpp.obj: 20 20 icc $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $< 21 21 22 mediaf older.dll:22 mediafld.dll: 23 23 cd ../. && make 24 24 -
branches/v2.9_Lars/mediafolder/c/makefile
r2 r74 7 7 cd ../. && make 8 8 9 mediaf older.dll:9 mediafld.dll: 10 10 11 11 clean: -
branches/v2.9_Lars/mediafolder/c/mediafldr/makefile
r2 r74 5 5 CC = icc 6 6 #CPPFLAGS = /Ge- /Gm+ /G4 /Gl /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 7 CPPFLAGS = /G5 /Ge- /Gm+ /Gl 8 LIBS = mmPM2.lib rexx.lib 7 CPPFLAGS = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG) 8 LIBS = mmPM2.lib rexx.lib 9 9 INC = ..\include 10 10 HELPERDIR = ..\helper 11 DEFS = 12 PROGS = 11 DEFS = 12 PROGS = 13 13 ODIR = ./obj 14 14 CPPDIR = . … … 26 26 cd ../. && make 27 27 28 mediaf older.dll:28 mediafld.dll: 29 29 #$(OBJECTS) 30 30 cd ../. && make -
branches/v2.9_Lars/mediafolder/create_mfldr_def.CMD
r2 r74 3 3 call SysLoadFuncs 4 4 5 deffile= ARG(1)5 deffile=strip(ARG(1)) 6 6 if ARG(1)="" then deffile="tst.def" 7 7 … … 36 36 def=def||'0d'x||'0a'x 37 37 38 def=def||"LIBRARY MEDIAFLD INIT GLOBAL"||'0d'x||'0a'x38 def=def||"LIBRARY MEDIAFLD INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x 39 39 def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth " 40 40 def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||" #@##1## "||DATE("E")||" "||TIME("N")||" My ;-) ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@Media-Folder V"||theVersion||"'"||'0d'x||'0a'x 41 41 def=def||"PROTMODE"||'0d'x||'0a'x 42 42 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x 43 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x43 def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x 44 44 def=def||"EXPORTS "||'0d'x||'0a'x 45 45 def=def||" CWMediaFolderClassData"||'0d'x||'0a'x … … 59 59 def=def||" M_CWAudioShadowNewClass"||'0d'x||'0a'x 60 60 def=def||""||'0d'x||'0a'x 61 def=def||" CWCDFolderClassData"||'0d'x||'0a'x61 def=def||" CWCDFolderClassData"||'0d'x||'0a'x 62 62 def=def||" CWCDFolderCClassData"||'0d'x||'0a'x 63 63 def=def||" CWCDFolderNewClass"||'0d'x||'0a'x -
branches/v2.9_Lars/mediafolder/include/wpobject.hh
r59 r74 18 18 #define OBJSTYLE_NOLINK 4 19 19 #define OBJSTYLE_NOCOPY 8 20 #define OBJSTYLE_NOTDEFAULTICON 16 /* Intentionally not declared CLSSTYLE */ 20 #define OBJSTYLE_NOTDEFAULTICON 16 /* Intentionally not declared CLSSTYLE */ 21 21 #define OBJSTYLE_TEMPLATE 32 22 22 #define OBJSTYLE_NODELETE 64 … … 27 27 #define OBJSTYLE_NORENAME 2048 28 28 #define OBJSTYLE_NODROP 4096 29 #define OBJSTYLE_NODROPON 8192 /* Use instead of OBJSTYLE_NODROP, 30 because OBJSTYLE_NODROP and 31 CLSSTYLE_PRIVATE have the same 32 value (DD 86093F) */ 33 #define OBJSTYLE_CUSTOMICON 16384 /* Use instead of OBJSTYLE_NOTDEFAULTICON 34 because OBJSTYLE_NOTDEFAULTICON and 35 CLSSTYLE_NEVERTEMPLATE have the same 36 value (DD 86093F) */ 29 #define OBJSTYLE_NODROPON 8192 /* Use instead of OBJSTYLE_NODROP, 30 because OBJSTYLE_NODROP and 31 CLSSTYLE_PRIVATE have the same 32 value (DD 86093F) */ 33 #define OBJSTYLE_CUSTOMICON 16384 /* Use instead of OBJSTYLE_NOTDEFAULTICON 34 because OBJSTYLE_NOTDEFAULTICON and 35 CLSSTYLE_NEVERTEMPLATE have the same 36 value (DD 86093F) */ 37 37 38 38 /* Class style flags (see wpclsQueryStyle) */ … … 47 47 #define CLSSTYLE_NEVERVISIBLE OBJSTYLE_NOTVISIBLE 48 48 #define CLSSTYLE_NEVERRENAME OBJSTYLE_NORENAME 49 #define CLSSTYLE_PRIVATE 4096 /* Intentionally not declared OBJSTYLE */ 50 #define CLSSTYLE_NEVERSETTINGS OBJSTYLE_NOSETTINGS /*DD 86093F*/ 51 #define CLSSTYLE_NEVERDROPON OBJSTYLE_NODROPON /*DD 86093F*/ 52 #define CLSSTYLE_HIDDEN 32768 /* Use instead of CLSSTYLE_PRIVATE 53 because OBJSTYLE_NODROP and 54 CLSSTYLE_PRIVATE have the same 55 value (DD 86093F) */ 56 #define CLSSTYLE_DONTTEMPLATE 65536 /* Use instead of CLSSTYLE_NEVERTEMPLATE 57 because OBJSTYLE_NOTDEFAULTICON and 58 CLSSTYLE_NEVERTEMPLATE have the same 59 value (DD 86093F) */ 49 #define CLSSTYLE_PRIVATE 4096 /* Intentionally not declared OBJSTYLE */ 50 #define CLSSTYLE_NEVERSETTINGS OBJSTYLE_NOSETTINGS /*DD 86093F*/ 51 #define CLSSTYLE_NEVERDROPON OBJSTYLE_NODROPON /*DD 86093F*/ 52 #define CLSSTYLE_HIDDEN 32768 /* Use instead of CLSSTYLE_PRIVATE 53 because OBJSTYLE_NODROP and 54 CLSSTYLE_PRIVATE have the same 55 value (DD 86093F) */ 56 #define CLSSTYLE_DONTTEMPLATE 65536 /* Use instead of CLSSTYLE_NEVERTEMPLATE 57 because OBJSTYLE_NOTDEFAULTICON and 58 CLSSTYLE_NEVERTEMPLATE have the same 59 value (DD 86093F) */ 60 60 61 61 #define SETTINGS_PAGE_REMOVED -1 … … 153 153 HWND hwndCnr; /* Cnr into which object is inserted */ 154 154 PMINIRECORDCORE pRecord; /* Record pointer within that cnr */ 155 ULONG ulUser; /* For application use RECSH */ 155 ULONG ulUser; /* For application use RECSH */ 156 156 } RECORDITEM; 157 157 typedef RECORDITEM *PRECORDITEM; … … 359 359 #define SEARCH_THIS_FOLDER 2 360 360 #define SEARCH_THIS_TREE 3 361 361 362 362 363 363 /* Find method related types and constants */ … … 402 402 #define CTXT_PUTDOWN_CANCEL 0x2000000 /*rme88844*/ 403 403 404 404 405 405 /* Flags for the wpDisplayMenu() method */ 406 406 … … 420 420 #define WPMENUID_SELECT 4 421 421 #define WPMENUID_SORT 5 422 #define WPMENUID_TREE 123 /*DD 86092F*/ 423 #define WPMENUID_FIND 8 /*DD 86092F*/ 424 #define WPMENUID_CREATEANOTHER 101 /*DD 86092F*/ 425 #define WPMENUID_MOVE 107 /*DD 86092F*/ 426 #define WPMENUID_COPY 108 /*DD 86092F*/ 427 #define WPMENUID_DELETE 109 /*DD 86092F*/ 428 #define WPMENUID_PROPERTIES 112 /*DD 86092F*/ 429 #define WPMENUID_SELALL 114 /*DD 86092F*/ 430 #define WPMENUID_DESELALL 115 /*DD 86092F*/ 431 #define WPMENUID_RESERVED1 118 /*DD 86092F*/ 432 #define WPMENUID_CLOSE 120 /*DD 86092F*/ 433 #define WPMENUID_FORMAT 124 /*DD 86092F*/ 434 #define WPMENUID_CHKDSK 128 /*DD 86092F*/ 435 #define WPMENUID_FIXDSK 129 /*DD 86092F*/ 436 #define WPMENUID_PROGRAM 132 /*DD 86092F*/ 437 #define WPMENUID_COPYDSK 182 /*DD 86092F*/ 438 #define WPMENUID_LOCKDISK 184 /*DD 86092F*/ 439 #define WPMENUID_EJECTDISK 185 /*DD 86092F*/ 440 #define WPMENUID_UNLOCKDISK 186 /*DD 86092F*/ 441 #define WPMENUID_PICKUP 188 /* rme77131*/ 442 #define WPMENUID_PUTDOWN 189 /* rme77131*/ 443 #define WPMENUID_PUTDOWN_COPY 190 /* rme77131*/ 444 #define WPMENUID_PUTDOWN_MOVE 191 /* rme77131*/ 445 #define WPMENUID_PUTDOWN_LINK 192 /* rme77131*/ 446 #define WPMENUID_PUTDOWN_CANCEL 193 /* rme77131*/ 447 #define WPMENUID_PUTDOWN_CREATE 194 /* rme77131*/ 448 #define WPMENUID_ICON 303 /*DD 86092F*/ 449 #define WPMENUID_DETAILS 304 /*DD 86092F*/ 450 #define WPMENUID_ARRANGE 309 /*DD 86092F*/ 451 #define WPMENUID_RESERVED2 315 /*DD 86092F*/ 452 #define WPMENUID_CREATESHADOW 316 /*DD 86092F*/ 453 #define WPMENUID_PALETTE 317 /*DD 86092F*/ 454 #define WPMENUID_REFRESH 503 /*DD 86092F*/ 455 #define WPMENUID_HELP_FOR_HELP 601 /*DD 86092F*/ 456 #define WPMENUID_HOWTOGETHELP 601 /*DD 86092F*/ 457 #define WPMENUID_EXTENDEDHELP 602 /*DD 86092F*/ 458 #define WPMENUID_HELPKEYS 603 /*DD 86092F*/ 459 #define WPMENUID_HELPINDEX 604 /*DD 86092F*/ 460 #define WPMENUID_SHUTDOWN 704 /*DD 86092F*/ 461 #define WPMENUID_LOCKUP 705 /*DD 86092F*/ 462 #define WPMENUID_LOGIN 708 /*DD 86092F*/ 463 #define WPMENUID_LOGOUT 709 /*DD 86092F*/ 464 #define WPMENUID_ASSIGN 710 /*DD 86092F*/ 465 #define WPMENUID_UNASSIGN 711 /*DD 86092F*/ 466 #define WPMENUID_ACCESSNEW 712 /*DD 86092F*/ 467 #define WPMENUID_SYSTEMSETUP 713 /*DD 86092F*/ 422 #define WPMENUID_TREE 123 /*DD 86092F*/ 423 #define WPMENUID_FIND 8 /*DD 86092F*/ 424 #define WPMENUID_CREATEANOTHER 101 /*DD 86092F*/ 425 #define WPMENUID_MOVE 107 /*DD 86092F*/ 426 #define WPMENUID_COPY 108 /*DD 86092F*/ 427 #define WPMENUID_DELETE 109 /*DD 86092F*/ 428 #define WPMENUID_PROPERTIES 112 /*DD 86092F*/ 429 #define WPMENUID_SELALL 114 /*DD 86092F*/ 430 #define WPMENUID_DESELALL 115 /*DD 86092F*/ 431 #define WPMENUID_RESERVED1 118 /*DD 86092F*/ 432 #define WPMENUID_CLOSE 120 /*DD 86092F*/ 433 #define WPMENUID_FORMAT 124 /*DD 86092F*/ 434 #define WPMENUID_CHKDSK 128 /*DD 86092F*/ 435 #define WPMENUID_FIXDSK 129 /*DD 86092F*/ 436 #define WPMENUID_PROGRAM 132 /*DD 86092F*/ 437 #define WPMENUID_COPYDSK 182 /*DD 86092F*/ 438 #define WPMENUID_LOCKDISK 184 /*DD 86092F*/ 439 #define WPMENUID_EJECTDISK 185 /*DD 86092F*/ 440 #define WPMENUID_UNLOCKDISK 186 /*DD 86092F*/ 441 #define WPMENUID_PICKUP 188 /* rme77131*/ 442 #define WPMENUID_PUTDOWN 189 /* rme77131*/ 443 #define WPMENUID_PUTDOWN_COPY 190 /* rme77131*/ 444 #define WPMENUID_PUTDOWN_MOVE 191 /* rme77131*/ 445 #define WPMENUID_PUTDOWN_LINK 192 /* rme77131*/ 446 #define WPMENUID_PUTDOWN_CANCEL 193 /* rme77131*/ 447 #define WPMENUID_PUTDOWN_CREATE 194 /* rme77131*/ 448 #define WPMENUID_ICON 303 /*DD 86092F*/ 449 #define WPMENUID_DETAILS 304 /*DD 86092F*/ 450 #define WPMENUID_ARRANGE 309 /*DD 86092F*/ 451 #define WPMENUID_RESERVED2 315 /*DD 86092F*/ 452 #define WPMENUID_CREATESHADOW 316 /*DD 86092F*/ 453 #define WPMENUID_PALETTE 317 /*DD 86092F*/ 454 #define WPMENUID_REFRESH 503 /*DD 86092F*/ 455 #define WPMENUID_HELP_FOR_HELP 601 /*DD 86092F*/ 456 #define WPMENUID_HOWTOGETHELP 601 /*DD 86092F*/ 457 #define WPMENUID_EXTENDEDHELP 602 /*DD 86092F*/ 458 #define WPMENUID_HELPKEYS 603 /*DD 86092F*/ 459 #define WPMENUID_HELPINDEX 604 /*DD 86092F*/ 460 #define WPMENUID_SHUTDOWN 704 /*DD 86092F*/ 461 #define WPMENUID_LOCKUP 705 /*DD 86092F*/ 462 #define WPMENUID_LOGIN 708 /*DD 86092F*/ 463 #define WPMENUID_LOGOUT 709 /*DD 86092F*/ 464 #define WPMENUID_ASSIGN 710 /*DD 86092F*/ 465 #define WPMENUID_UNASSIGN 711 /*DD 86092F*/ 466 #define WPMENUID_ACCESSNEW 712 /*DD 86092F*/ 467 #define WPMENUID_SYSTEMSETUP 713 /*DD 86092F*/ 468 468 469 469 … … 1156 1156 * New Method: wpDrop 1157 1157 */ 1158 typedef MRESULT SOMLINK somTP_WPObject_wpDrop(WPObject *somSelf, 1159 HWND hwndCnr, 1160 PDRAGINFO pdrgInfo, 1158 typedef MRESULT SOMLINK somTP_WPObject_wpDrop(WPObject *somSelf, 1159 HWND hwndCnr, 1160 PDRAGINFO pdrgInfo, 1161 1161 PDRAGITEM pdrgItem); 1162 1162 //#pragma linkage(somTP_WPObject_wpDrop, system) … … 1256 1256 virtual BOOL wpAssertObjectMutexSem(); 1257 1257 virtual BOOL wpClose(); 1258 virtual PMINIRECORDCORE wpCnrInsertObject(HWND hwndCnr, 1259 PPOINTL pptlIcon, 1260 PMINIRECORDCORE preccParent, 1258 virtual PMINIRECORDCORE wpCnrInsertObject(HWND hwndCnr, 1259 PPOINTL pptlIcon, 1260 PMINIRECORDCORE preccParent, 1261 1261 PRECORDINSERT pRecInsert); 1262 1262 virtual BOOL wpCnrRemoveObject(HWND hwndCnr); 1263 1263 virtual BOOL wpCnrSetEmphasis(ULONG ulEmphasisAttr, BOOL fTurnOn); 1264 1264 virtual ULONG wpConfirmDelete(ULONG fConfirmations); 1265 virtual ULONG wpConfirmObjectTitle(WPFolder* Folder, WPObject** ppDuplicate, 1266 PSZ pszTitle, ULONG cbTitle, 1265 virtual ULONG wpConfirmObjectTitle(WPFolder* Folder, WPObject** ppDuplicate, 1266 PSZ pszTitle, ULONG cbTitle, 1267 1267 ULONG menuID); 1268 1268 virtual void wpCopiedFromTemplate(); 1269 1269 virtual WPObject* wpCopyObject(WPFolder* Folder, BOOL fLock); 1270 virtual WPObject* wpCreateAnother(PSZ pszTitle, PSZ pszSetupEnv, 1270 virtual WPObject* wpCreateAnother(PSZ pszTitle, PSZ pszSetupEnv, 1271 1271 WPFolder* Folder); 1272 virtual WPObject* wpCreateFromTemplate(WPFolder* folder, 1272 virtual WPObject* wpCreateFromTemplate(WPFolder* folder, 1273 1273 BOOL fLock); 1274 virtual WPObject* wpCreateShadowObject(WPFolder* Folder, 1274 virtual WPObject* wpCreateShadowObject(WPFolder* Folder, 1275 1275 BOOL fLock); 1276 1276 virtual ULONG wpDelete(ULONG fConfirmations); 1277 1277 virtual BOOL wpDeleteFromObjUseList(PUSEITEM pUseItem); 1278 1278 virtual BOOL wpDisplayHelp(ULONG HelpPanelId, PSZ HelpLibrary); 1279 virtual HWND wpDisplayMenu(HWND hwndOwner, HWND hwndClient, 1280 POINTL* ptlPopupPt, ULONG ulMenuType, 1279 virtual HWND wpDisplayMenu(HWND hwndOwner, HWND hwndClient, 1280 POINTL* ptlPopupPt, ULONG ulMenuType, 1281 1281 ULONG ulReserved); 1282 1282 virtual BOOL wpDoesObjectMatch(PVOID pvoidExtendedCriteria); 1283 1283 virtual MRESULT wpDraggedOverObject(WPObject* DraggedOverObject); 1284 1284 virtual MRESULT wpDragOver(HWND hwndCnr, PDRAGINFO pdrgInfo); 1285 virtual MRESULT wpDrop(HWND hwndCnr, PDRAGINFO pdrgInfo, 1285 virtual MRESULT wpDrop(HWND hwndCnr, PDRAGINFO pdrgInfo, 1286 1286 PDRAGITEM pdrgItem); 1287 1287 virtual BOOL wpDroppedOnObject(WPObject* DroppedOnObject); 1288 1288 virtual MRESULT wpEndConversation(ULONG ulItemID, ULONG flResult); 1289 virtual ULONG wpFilterPopupMenu(ULONG ulFlags, HWND hwndCnr, 1289 virtual ULONG wpFilterPopupMenu(ULONG ulFlags, HWND hwndCnr, 1290 1290 BOOL fMultiSelect); 1291 1291 virtual PUSEITEM wpFindUseItem(ULONG type, PUSEITEM pCurrentItem); … … 1295 1295 virtual BOOL wpHide(); 1296 1296 virtual void wpInitData(); 1297 virtual BOOL wpInsertPopupMenuItems(HWND hwndMenu, ULONG iPosition, 1298 HMODULE hmod, ULONG MenuID, 1297 virtual BOOL wpInsertPopupMenuItems(HWND hwndMenu, ULONG iPosition, 1298 HMODULE hmod, ULONG MenuID, 1299 1299 ULONG SubMenuID); 1300 1300 virtual ULONG wpInsertSettingsPage(HWND hwndNotebook, PPAGEINFO ppageinfo); 1301 1301 virtual BOOL wpMenuItemHelpSelected(ULONG MenuId); 1302 1302 virtual BOOL wpMenuItemSelected(HWND hwndFrame, ULONG ulMenuId); 1303 virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr, 1303 virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr, 1304 1304 ULONG iPosition); 1305 1305 virtual BOOL wpMoveObject(WPFolder* Folder); … … 1330 1330 virtual ULONG wpRequestObjectMutexSem(ULONG ulTimeout); 1331 1331 virtual BOOL wpRestore(); 1332 virtual BOOL wpRestoreData(PSZ pszClass, ULONG ulKey, PBYTE pValue, 1332 virtual BOOL wpRestoreData(PSZ pszClass, ULONG ulKey, PBYTE pValue, 1333 1333 PULONG pcbValue); 1334 1334 virtual BOOL wpRestoreLong(PSZ pszClass, ULONG ulKey, PULONG pulValue); 1335 1335 virtual BOOL wpRestoreState(ULONG ulReserved); 1336 virtual BOOL wpRestoreString(PSZ pszClass, ULONG ulKey, 1336 virtual BOOL wpRestoreString(PSZ pszClass, ULONG ulKey, 1337 1337 PSZ pszValue, PULONG pcbValue); 1338 virtual BOOL wpSaveData(PSZ pszClass, ULONG ulKey, PBYTE pValue, 1338 virtual BOOL wpSaveData(PSZ pszClass, ULONG ulKey, PBYTE pValue, 1339 1339 ULONG cbValue); 1340 1340 virtual BOOL wpSaveImmediate(); … … 1343 1343 virtual BOOL wpSaveState(); 1344 1344 virtual BOOL wpSaveString(PSZ pszClass, ULONG ulKey, PSZ pszValue); 1345 virtual BOOL wpScanSetupString(PSZ pszSetupString, PSZ pszKey, 1345 virtual BOOL wpScanSetupString(PSZ pszSetupString, PSZ pszKey, 1346 1346 PSZ pszValue, PULONG pcbValue); 1347 1347 virtual void wpSetConcurrentView(ULONG ulCCView); … … 1350 1350 virtual BOOL wpSetDefaultView(ULONG ulView); 1351 1351 virtual BOOL wpSetError(ULONG ulErrorId); 1352 virtual BOOL wpSetIconHandle(HPOINTER hptrNewIcon);1353 1352 virtual USHORT wpQueryScreenGroupID(USHORT usPrevSgId); 1354 1353 virtual BOOL wpSetupOnce(PSZ pszSetupString); … … 1368 1367 virtual void wpObjectReady(ULONG ulCode, WPObject* refObject); 1369 1368 virtual BOOL wpIsObjectInitialized(); 1370 virtual WPObject* wpCreateShadowObjectExt(WPFolder* Folder, 1371 BOOL fLock, PSZ pszSetup, 1369 virtual WPObject* wpCreateShadowObjectExt(WPFolder* Folder, 1370 BOOL fLock, PSZ pszSetup, 1372 1371 M_WPObject* shadowClass); 1373 1372 virtual BOOL wpCnrDeleteUseItem(HWND hwndCnr); … … 1383 1382 virtual BOOL wpIsLocked(); 1384 1383 virtual PULONG wpQueryContainerFlagPtr(); 1385 virtual ULONG wpWaitForClose(LHANDLE lhView, ULONG ulViews, 1384 virtual ULONG wpWaitForClose(LHANDLE lhView, ULONG ulViews, 1386 1385 long lTimeOut, BOOL bAutoClose); 1387 WPObject(); 1388 virtual ~WPObject(); 1389 #pragma SOMReleaseOrder ( \ 1386 virtual BOOL wpIdentify(PSZ pszIdentity); 1387 virtual BOOL wpModifyMenu( 1388 HWND hwndMenu, 1389 HWND hwndCnr, 1390 ULONG iPosition, 1391 ULONG ulMenuType, 1392 ULONG ulView, 1393 ULONG ulReserved); 1394 virtual BOOL wpFilterMenu( 1395 FILTERFLAGS* pFlags, 1396 HWND hwndCnr, 1397 BOOL fMultiSelect, 1398 ULONG ulMenuType, 1399 ULONG ulView, 1400 ULONG ulReserved); 1401 virtual BOOL wpInsertMenuItems( 1402 HWND hwndMenu, 1403 ULONG iPosition, 1404 HMODULE hmod, 1405 ULONG MenuID, 1406 ULONG SubMenuID); 1407 virtual BOOL wpSetMenuStyle(ULONG ulStyle); 1408 virtual ULONG wpQueryMenuStyle(); 1409 1410 WPObject(); 1411 virtual ~WPObject(); 1412 #pragma SOMReleaseOrder ( \ 1390 1413 "wpSetTitle", \ 1391 1414 "wpQueryTitle", \ … … 1465 1488 *, \ 1466 1489 "wpRegisterView", \ 1467 *, \1490 "wpIdentify", \ 1468 1491 "wpSetDefaultHelp", \ 1469 1492 "wpQueryDefaultHelp", \ … … 1529 1552 "wpIsObjectInitialized", \ 1530 1553 "wpCreateShadowObjectExt", \ 1531 "wpSetIconHandle", \1554 *, \ 1532 1555 *, \ 1533 1556 *, \ … … 1537 1560 "wpSetupOnce", \ 1538 1561 "wpAddObjectGeneralPage2", \ 1562 *, \ 1563 *, \ 1564 "wpModifyMenu", \ 1565 "wpFilterMenu", \ 1566 "wpInsertMenuItems", \ 1567 "wpSetMenuStyle", \ 1568 "wpQueryMenuStyle", \ 1569 *, \ 1570 *, \ 1571 *, \ 1572 *, \ 1573 *, \ 1574 *, \ 1575 *, \ 1539 1576 *, \ 1540 1577 *) … … 1763 1800 * New Method: wpclsQueryObject 1764 1801 */ 1765 typedef WPObject* SOMLINK somTP_M_WPObject_wpclsQueryObject(M_WPObject *somSelf, 1802 typedef WPObject* SOMLINK somTP_M_WPObject_wpclsQueryObject(M_WPObject *somSelf, 1766 1803 HOBJECT hObject); 1767 1804 //#pragma linkage(somTP_M_WPObject_wpclsQueryObject, system) … … 1841 1878 virtual BOOL wpclsCreateDefaultTemplates(WPObject* Folder); 1842 1879 virtual void wpclsInitData(); 1843 virtual WPObject* wpclsMakeAwake(PSZ pszTitle, ULONG ulStyle, 1844 HPOINTER hptrIcon, POBJDATA pObjData, 1880 virtual WPObject* wpclsMakeAwake(PSZ pszTitle, ULONG ulStyle, 1881 HPOINTER hptrIcon, POBJDATA pObjData, 1845 1882 WPFolder* Folder, ULONG ulUser); 1846 virtual WPObject* wpclsNew(PSZ pszTitle, PSZ pszSetupEnv, 1883 virtual WPObject* wpclsNew(PSZ pszTitle, PSZ pszSetupEnv, 1847 1884 WPFolder* Folder, BOOL fLock); 1848 virtual BOOL wpclsQueryDefaultHelp(PULONG pHelpPanelId, 1885 virtual BOOL wpclsQueryDefaultHelp(PULONG pHelpPanelId, 1849 1886 PSZ pszHelpLibrary); 1850 1887 virtual ULONG wpclsQueryDefaultView(); 1851 1888 virtual PCLASSDETAILS wpclsQueryDetails(); 1852 virtual ULONG wpclsQueryDetailsInfo(PCLASSFIELDINFO* ppClassFieldInfo, 1889 virtual ULONG wpclsQueryDetailsInfo(PCLASSFIELDINFO* ppClassFieldInfo, 1853 1890 PULONG pSize); 1854 virtual BOOL wpclsQueryExtendedCriteria(PSZ pszName, ULONG ulSearchType, 1891 virtual BOOL wpclsQueryExtendedCriteria(PSZ pszName, ULONG ulSearchType, 1855 1892 PVOID pvoidExtendedCriteria); 1856 1893 virtual WPObject* wpclsQueryFolder(PSZ pszLocation, BOOL fLock); 1857 1894 virtual HPOINTER wpclsQueryIcon(); 1858 virtual void wpclsQuerySearchInfo(M_WPObject** ClassExtended, 1859 M_WPObject** ClassCreate, 1895 virtual void wpclsQuerySearchInfo(M_WPObject** ClassExtended, 1896 M_WPObject** ClassCreate, 1860 1897 PULONG pulClassCriteriaSize); 1861 1898 virtual ULONG wpclsQueryStyle(); 1862 1899 virtual PSZ wpclsQueryTitle(); 1863 1900 virtual void wpclsUnInitData(); 1864 virtual BOOL wpclsFindObjectFirst(PCLASS pClassList, PHFIND phFind, 1865 PSZ pszTitle, WPFolder* Folder, 1866 BOOL fSubfolders, PVOID pExtendedCriteria, 1901 virtual BOOL wpclsFindObjectFirst(PCLASS pClassList, PHFIND phFind, 1902 PSZ pszTitle, WPFolder* Folder, 1903 BOOL fSubfolders, PVOID pExtendedCriteria, 1867 1904 POBJECT pBuffer, PULONG pCount); 1868 virtual BOOL wpclsFindObjectNext(HFIND hFind, POBJECT pBuffer, 1905 virtual BOOL wpclsFindObjectNext(HFIND hFind, POBJECT pBuffer, 1869 1906 PULONG pCount); 1870 1907 virtual BOOL wpclsFindObjectEnd(HFIND hFind); … … 1877 1914 virtual void wpclsDecUsage(); 1878 1915 virtual void wpclsIncUsage(); 1879 virtual BOOL wpclsInsertMultipleObjects(HWND hwndCnr, PPOINTL pptlIcon, 1880 PVOID* pObjectArray, 1881 PVOID pRecordParent, 1916 virtual BOOL wpclsInsertMultipleObjects(HWND hwndCnr, PPOINTL pptlIcon, 1917 PVOID* pObjectArray, 1918 PVOID pRecordParent, 1882 1919 ULONG NumRecords); 1883 1920 virtual WPObject* wpclsFindOneObject(HWND hwndOwner, PSZ pszFindParams); … … 1886 1923 virtual BOOL wpclsSetIcon(HPOINTER hptrNewIcon); 1887 1924 virtual WPObject* wpclsObjectFromHandle(HOBJECT hObject); 1888 virtual BOOL wpclsRemoveObjects(HWND hwndCnr, PVOID* pRecordArray, 1925 virtual BOOL wpclsRemoveObjects(HWND hwndCnr, PVOID* pRecordArray, 1889 1926 ULONG NumRecords, BOOL RemoveAll); 1890 virtual ~M_WPObject(); 1927 virtual ~M_WPObject(); 1891 1928 virtual void somClassReady(); 1892 1929 virtual SOMObject* somNew(); -
branches/v2.9_Lars/mediafolder/makefile
r53 r74 5 5 CC = icc 6 6 #CPPFLAGS = /Ge- /Gm+ /G4 /Gl /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 7 CPPFLAGS = /G5 /Ge- /Gm+ /Gl 8 9 10 LIBS = mmPM2.lib rexx.lib7 CPPFLAGS = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Ss /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG) 8 9 10 LIBS = somtk.lib mmPM2.lib rexx.lib 11 11 INC = ./include 12 12 … … 14 14 15 15 HELPERDIR = ./c/helper 16 DEFS = 17 PROGS = 16 DEFS = 17 PROGS = 18 18 CDIR = ./c 19 19 IDLDIR = ../classes/idl … … 74 74 # 75 75 ####################################### 76 all: mediaf older.dll mediafolder_en.dll mediafolder_nl.dll mediafolder_de.dll mediafolder_it.dll \76 all: mediafld.dll mfldr_en.dll mfldr_nl.dll mfldr_de.dll mfldr_it.dll \ 77 77 ./help/mediafldr.hlp \ 78 78 prog_tutorial\mediafldrprog.inf ./c/createcd/createcd.exe … … 94 94 ####################################### 95 95 # 96 # Compile 96 # Compile 97 97 # 98 98 ####################################### … … 117 117 118 118 $(OBJDIR)/%.obj: $(HELPERDIR)/%.cpp 119 $(COMPILE) 119 $(COMPILE) 120 120 121 121 $(HELPERDIR)/%.obj: ./helper/%.cpp $(INC)\mediafolder.hh 122 122 $(COMPILE) 123 123 124 mediaf older.dll: $(OBJECTS) progfolder\progfolder.def $(INC)\mediafolderres.h ./res/mediafolder.res124 mediafld.dll: $(OBJECTS) progfolder\progfolder.def $(INC)\mediafolderres.h ./res/mediafolder.res 125 125 -cd ../. && make bld 126 126 @create_mfldr_def.CMD mediafolder.DEF 127 127 implib /NOLOGO lib\progfldr.lib progfolder\progfolder.def 128 icc -Ge- /Q+ /D$(ECS) /F M $(OBJECTS) lib\progfldr.lib $(LIBS) mediafolder.def129 rc ./res/mediafolder.res $@ 130 MAPSYM mediafolder131 132 m ediafolder_en.dll:133 -cd ./res && make 134 135 m ediafolder_de.dll:136 -cd ./res && make 137 138 m ediafolder_nl.dll:139 -cd ./res && make 140 141 m ediafolder_it.dll:128 icc -Ge- /Q+ /D$(ECS) /Fe$@ /Fm$*.map $(OBJECTS) lib/progfldr.lib $(LIBS) mediafolder.def 129 rc ./res/mediafolder.res $@ 130 MAPSYM $*.map 131 132 mfldr_en.dll: 133 -cd ./res && make 134 135 mfldr_de.dll: 136 -cd ./res && make 137 138 mfldr_nl.dll: 139 -cd ./res && make 140 141 mfldr_it.dll: 142 142 -cd ./res && make 143 143 … … 210 210 -mkdir ..\..\$(PKGNAME)-$(VERSION)-ger\CWMFldr-$(VERSION)-ger\FreeDB\logfiles 211 211 -mkdir ..\..\$(PKGNAME)-$(VERSION)-ger\CWMFldr-$(VERSION)-ger\FreeDB\cddbdata 212 cp prog_tutorial/mediafldrprog.inf ../../$(PKGNAME)-$(VERSION)-ger\CWMFldr-$(VERSION)-ger\Doc\mediafldr.inf 212 cp prog_tutorial/mediafldrprog.inf ../../$(PKGNAME)-$(VERSION)-ger\CWMFldr-$(VERSION)-ger\Doc\mediafldr.inf 213 213 cp bin/*.cmd ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/ 214 214 cp bin/*.rx ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/ 215 215 cp bin/*.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/dll/ 216 216 cp ./c/createcd/createcd.exe ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/ 217 cp ./mediaf older.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mediafld.dll218 cp ./res/obj/m ediafolder_de.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mfldr_de.dll217 cp ./mediafld.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mediafld.dll 218 cp ./res/obj/mfldr_de.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mfldr_de.dll 219 219 cp ./help/mediafldr049.hlp ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mediafld.hlp 220 220 cp ./install/MFLDRGER.ins ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/MFLDRGER.INS … … 242 242 -mkdir ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\FreeDB\logfiles 243 243 -mkdir ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\FreeDB\cddbdata 244 cp prog_tutorial/mediafldrprog.inf ../../$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\Doc\mediafldr.inf 244 cp prog_tutorial/mediafldrprog.inf ../../$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\Doc\mediafldr.inf 245 245 cp bin/*.cmd ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/ 246 246 cp bin/*.rx ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/ 247 247 cp bin/*.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/dll/ 248 248 cp ./c/createcd/createcd.exe ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/ 249 cp ./mediaf older.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.dll250 cp ./res/obj/m ediafolder_en.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mfldr_en.dll249 cp ./mediafld.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.dll 250 cp ./res/obj/mfldr_en.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mfldr_en.dll 251 251 cp ./help/mediafldr.hlp ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.hlp 252 252 cp ./install/MEDIAFLD.ins ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/MEDIAFLD.INS … … 269 269 -mkdir ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\FreeDB\logfiles 270 270 -mkdir ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\FreeDB\cddbdata 271 -cp prog_tutorial\mediafldrprog.inf ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\Doc\mediafldr.inf 271 -cp prog_tutorial\mediafldrprog.inf ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\Doc\mediafldr.inf 272 272 -cp doc/Readme.eng ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/ 273 273 -cp doc/FILE_ID.DIZ ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/ … … 278 278 -cp Skripte_eng/* ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/Skripte/ 279 279 -cp ./help/mediafldr.hlp ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.hlp 280 -cp ./mediaf older.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.dll280 -cp ./mediafld.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.dll 281 281 -cp ./mediafolder001.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/media001.dll 282 282 -cp ./install/MEDIAFLD.INS ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/ … … 303 303 -mkdir ..\..\$(ECSBASE)-eng\FreeDB\logfiles 304 304 -mkdir ..\..\$(ECSBASE)-eng\FreeDB\cddbdata 305 -cp prog_tutorial/mediafldrprog.inf ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/Doc/mediafldr.inf 305 -cp prog_tutorial/mediafldrprog.inf ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/Doc/mediafldr.inf 306 306 -cp bin/*.cmd ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/ 307 307 -cp bin/*.rx ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/ 308 308 -cp bin/progfldr.dll ../../$(ECSBASE)-eng/dll/ 309 309 -cp ./help/mediafldr.hlp ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/mediafld.hlp 310 -cp ./mediaf older.dll ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/mediafld.dll310 -cp ./mediafld.dll ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/mediafld.dll 311 311 -cp ./mediafolder001.dll ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/media001.dll 312 312 -cp ./install/createcd.exe ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin -
branches/v2.9_Lars/mediafolder/res/de/about_de.dlg
r2 r74 6 6 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 7 7 BEGIN 8 DIALOG "Information", IDDLG_ABOUT, 115, 69, 208, 132, WS_VISIBLE, 8 DIALOG "Information", IDDLG_ABOUT, 115, 69, 208, 132, WS_VISIBLE, 9 9 FCF_TITLEBAR 10 10 BEGIN 11 11 GROUPBOX "", IDGB_ABOUT, 3, 21, 200, 108 12 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 12 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 13 13 12, DT_VCENTER | NOT WS_GROUP 14 ; CTEXT "Media-Ordner V0.2.5", IDST_PRODNAME, 16, 107, 175, 15 ; 12, DT_VCENTER | NOT WS_GROUP 16 CTEXT MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87, 14 CTEXT MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87, 17 15 186, 12, DT_VCENTER | NOT WS_GROUP 18 CTEXT "Graphiken von Klaus Staedtler-Przyborski", 19 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 16 CTEXT "Graphiken von Klaus Staedtler-Przyborski", 17 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 20 18 NOT WS_GROUP 21 CTEXT "http://www.geocities.com/SiliconValley/Sector/5785/"22 "index.html", IDST_URL1, 10, 46, 186, 18,23 DT_WORDBREAK | NOT WS_GROUP24 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"25 19 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 26 CTEXT "http://www.os2world.com/cdwriting", IDST_URL2, 10,27 30, 186, 16, DT_WORDBREAK28 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"29 20 END 30 21 END -
branches/v2.9_Lars/mediafolder/res/de/about_ecs_de.dlg
r2 r74 7 7 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 8 8 BEGIN 9 DIALOG "Produktinformation", IDDLG_ABOUT, 110, 125, 184, 58, 9 DIALOG "Produktinformation", IDDLG_ABOUT, 110, 125, 184, 58, 10 10 WS_VISIBLE, FCF_TITLEBAR 11 11 BEGIN 12 ICON IDICON_FOLDER1, IDICON_FOLDER1, 5, 33, 16, 15, 12 ICON IDICON_FOLDER1, IDICON_FOLDER1, 5, 33, 16, 15, 13 13 WS_GROUP 14 LTEXT "Multimedia-Integration fr die Arbeitsoberflche", 15 IDST_PRODNAME, 28, 44, 154, 10, DT_VCENTER | NOT 14 LTEXT "Multimedia-Integration fr die Arbeitsoberflche", 15 IDST_PRODNAME, 28, 44, 154, 10, DT_VCENTER | NOT 16 16 WS_GROUP 17 17 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold" 18 18 CONTROL "", 607, 28, 37, 150, 7, "CW_SEPARATOR", WS_VISIBLE 19 LTEXT "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 28, 19 LTEXT "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 28, 20 20 26, 154, 11, DT_VCENTER | NOT WS_GROUP 21 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"22 LTEXT "Lizenziert an Serenity Systems", 608, 28, 17, 154, 9,23 DT_VCENTER24 21 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans" 25 22 DEFPUSHBUTTON "~Ok", IDSTR_CLOSETEXT, 28, 3, 30, 11 -
branches/v2.9_Lars/mediafolder/res/en/about_ecs_en.dlg
r70 r74 7 7 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 8 8 BEGIN 9 DIALOG "Product Information", IDDLG_ABOUT, 100, 120, 194, 67, 9 DIALOG "Product Information", IDDLG_ABOUT, 100, 120, 194, 67, 10 10 WS_VISIBLE, FCF_TITLEBAR 11 11 BEGIN 12 12 ICON IDICON_FOLDER1, IDICON_FOLDER1, 10, 39, 16, 15, WS_GROUP 13 LTEXT "Multimedia integration for the desktop", 14 IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT 13 LTEXT "Multimedia integration for the desktop", 14 IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT 15 15 WS_GROUP 16 16 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold" 17 17 CONTROL "", 607, 38, 43, 154, 7, "CW_SEPARATOR", WS_VISIBLE 18 LTEXT "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 38, 19 29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT 18 LTEXT "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 38, 19 29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT 20 20 WS_GROUP 21 // PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"22 //LTEXT "Licensed to Serenity Systems", 608, 38, 19, 154, 923 21 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans" 24 22 DEFPUSHBUTTON "~Ok", IDSTR_CLOSETEXT, 38, 2, 34, 13 -
branches/v2.9_Lars/mediafolder/res/en/about_en.dlg
r2 r74 5 5 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 6 6 BEGIN 7 DIALOG "Product Information", IDDLG_ABOUT, 115, 69, 208, 132, 7 DIALOG "Product Information", IDDLG_ABOUT, 115, 69, 208, 132, 8 8 WS_VISIBLE, FCF_TITLEBAR 9 9 BEGIN 10 10 GROUPBOX "", IDGB_ABOUT, 3, 21, 200, 108 11 ; CTEXT "Media-Folder V0.2.9", IDST_PRODNAME, 36, 107, 135, 12 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 11 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 13 12 12, DT_VCENTER | NOT WS_GROUP 14 CTEXT "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87, 13 CTEXT "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87, 15 14 186, 12, DT_VCENTER | NOT WS_GROUP 16 CTEXT "Graphics by Klaus Staedtler-Przyborski", 17 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 15 CTEXT "Graphics by Klaus Staedtler-Przyborski", 16 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 18 17 NOT WS_GROUP 19 CTEXT "http://www.geocities.com/SiliconValley/Sector/5785/"20 "index.html", IDST_URL1, 10, 46, 186, 18,21 DT_WORDBREAK | NOT WS_GROUP22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"23 CTEXT "http://www.os2world.com/cdwriting", IDST_URL2, 10,24 30, 186, 16, DT_WORDBREAK25 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"26 18 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 27 19 END -
branches/v2.9_Lars/mediafolder/res/it/about_ecs_en.dlg
r2 r74 7 7 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 8 8 BEGIN 9 DIALOG "Produkt Information", IDDLG_ABOUT, 100, 120, 194, 67, 9 DIALOG "Produkt Information", IDDLG_ABOUT, 100, 120, 194, 67, 10 10 WS_VISIBLE, FCF_TITLEBAR 11 11 BEGIN 12 12 ICON IDICON_FOLDER1, IDICON_FOLDER1, 10, 39, 16, 15, WS_GROUP 13 LTEXT "Multimedia integration for the desktop", 14 IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT 13 LTEXT "Multimedia integration for the desktop", 14 IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT 15 15 WS_GROUP 16 16 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold" 17 17 CONTROL "", 607, 38, 43, 154, 7, "CW_SEPARATOR", WS_VISIBLE 18 LTEXT "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 38, 19 29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT 18 LTEXT "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 38, 19 29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT 20 20 WS_GROUP 21 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"22 LTEXT "Licensed to Serenity Systems", 608, 38, 19, 154, 923 21 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans" 24 22 DEFPUSHBUTTON "~Ok", IDSTR_CLOSETEXT, 38, 2, 34, 13 -
branches/v2.9_Lars/mediafolder/res/it/about_en.dlg
r2 r74 5 5 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 6 6 BEGIN 7 DIALOG "Product Information", IDDLG_ABOUT, 115, 69, 208, 132, 7 DIALOG "Product Information", IDDLG_ABOUT, 115, 69, 208, 132, 8 8 WS_VISIBLE, FCF_TITLEBAR 9 9 BEGIN 10 10 GROUPBOX "", IDGB_ABOUT, 3, 21, 200, 108 11 ; CTEXT "Media-Folder V0.2.9", IDST_PRODNAME, 36, 107, 135, 12 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 11 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 13 12 12, DT_VCENTER | NOT WS_GROUP 14 CTEXT "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87, 13 CTEXT "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87, 15 14 186, 12, DT_VCENTER | NOT WS_GROUP 16 CTEXT "Graphics by Klaus Staedtler-Przyborski", 17 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 15 CTEXT "Graphics by Klaus Staedtler-Przyborski", 16 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 18 17 NOT WS_GROUP 19 CTEXT "http://www.geocities.com/SiliconValley/Sector/5785/"20 "index.html", IDST_URL1, 10, 46, 186, 18,21 DT_WORDBREAK | NOT WS_GROUP22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"23 CTEXT "http://www.os2world.com/cdwriting", IDST_URL2, 10,24 30, 186, 16, DT_WORDBREAK25 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"26 18 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 27 19 END -
branches/v2.9_Lars/mediafolder/res/makefile
r53 r74 5 5 6 6 CC = icc 7 CPPFLAGS = /Ge- /Gm+ /G4 /Gl 7 CPPFLAGS = /Ge- /Gm+ /G4 /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 8 8 INC = ..\include 9 9 INC2 = ../include 10 DEFS = 11 PROGS = 10 DEFS = 11 PROGS = 12 12 13 13 OBJDIR = ./obj … … 15 15 HELPSOURCE = $(RESDIR2)/ipf 16 16 17 OBJECTS = 17 OBJECTS = 18 18 19 19 all: $(OBJDIR)/version.h \ … … 25 25 @for i in $(LANGUAGES); \ 26 26 do \ 27 echo "[33;1;m Creating m ediafolder_"$$i".dll[0;m"; \28 make LANGUAGE=$$i $(OBJDIR)/m ediafolder_$$i.dll ; \27 echo "[33;1;m Creating mfldr_"$$i".dll[0;m"; \ 28 make LANGUAGE=$$i $(OBJDIR)/mfldr_$$i.dll ; \ 29 29 done 30 30 … … 35 35 36 36 #### Resource DLL #### 37 $(OBJDIR)/m ediafolder_$(LANGUAGE).dll: ./$(LANGUAGE)/mediafolder_$(LANGUAGE).c \37 $(OBJDIR)/mfldr_$(LANGUAGE).dll: ./$(LANGUAGE)/mediafolder_$(LANGUAGE).c \ 38 38 $(OBJDIR)/mediafolder_$(LANGUAGE).res 39 39 @./$(LANGUAGE)/create_res_$(LANGUAGE)_def.CMD $(OBJDIR)/mediafolder_$(LANGUAGE).def 40 icc $(CPPFLAGS) -I$(INC) -c /Fo$(OBJDIR)/mediafolder_$(LANGUAGE).obj $< 40 icc $(CPPFLAGS) -I$(INC) -c /Fo$(OBJDIR)/mediafolder_$(LANGUAGE).obj $< 41 41 icc $(CPPFLAGS) -I$(INC) /Fe$@ $(OBJDIR)/mediafolder_$(LANGUAGE).obj ./obj/mediafolder_$(LANGUAGE).def 42 cd $(OBJDIR) && rc mediafolder_$(LANGUAGE).res m ediafolder_$(LANGUAGE).dll42 cd $(OBJDIR) && rc mediafolder_$(LANGUAGE).res mfldr_$(LANGUAGE).dll 43 43 44 44 $(OBJDIR)/mediafolder_$(LANGUAGE).res: ./$(LANGUAGE)/mediafolder_$(LANGUAGE).rc \ … … 52 52 53 53 mediafolder.res: mediafolder.rc $(INC)\mediafolderres.h 54 rc -D $(ECS) -i $(INC) -i $(OBJDIR) -r mediafolder.rc 54 rc -D $(ECS) -i $(INC) -i $(OBJDIR) -r mediafolder.rc 55 55 56 56 clean: -
branches/v2.9_Lars/mediafolder/res/nl/about_ecs_nl.dlg
r2 r74 7 7 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 8 8 BEGIN 9 DIALOG "Produkt Information", IDDLG_ABOUT, 100, 120, 194, 67, 9 DIALOG "Produkt Information", IDDLG_ABOUT, 100, 120, 194, 67, 10 10 WS_VISIBLE, FCF_TITLEBAR 11 11 BEGIN 12 12 ICON IDICON_FOLDER1, IDICON_FOLDER1, 10, 39, 16, 15, WS_GROUP 13 LTEXT "Multimedia integration for the desktop", 14 IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT 13 LTEXT "Multimedia integration for the desktop", 14 IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT 15 15 WS_GROUP 16 16 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold" 17 17 CONTROL "", 607, 38, 43, 154, 7, "CW_SEPARATOR", WS_VISIBLE 18 LTEXT "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 38, 19 29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT 18 LTEXT "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 38, 19 29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT 20 20 WS_GROUP 21 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"22 LTEXT "Licensed to Serenity Systems", 608, 38, 19, 154, 923 21 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans" 24 22 DEFPUSHBUTTON "~Ok", IDSTR_CLOSETEXT, 38, 2, 34, 13 -
branches/v2.9_Lars/mediafolder/res/nl/about_nl.dlg
r2 r74 5 5 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 6 6 BEGIN 7 DIALOG "Produkt informatie", IDDLG_ABOUT, 115, 69, 208, 132, 7 DIALOG "Produkt informatie", IDDLG_ABOUT, 115, 69, 208, 132, 8 8 WS_VISIBLE, FCF_TITLEBAR 9 9 BEGIN 10 10 GROUPBOX "", IDGB_ABOUT, 3, 21, 200, 108 11 ; CTEXT "Media-map V0.2.5", IDST_PRODNAME, 36, 107, 135, 12 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 11 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 13 12 12, DT_VCENTER | NOT WS_GROUP 14 CTEXT "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87, 13 CTEXT "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87, 15 14 186, 12, DT_VCENTER | NOT WS_GROUP 16 CTEXT "Graphics door Klaus Staedtler-Przyborski", 17 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 15 CTEXT "Graphics door Klaus Staedtler-Przyborski", 16 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 18 17 NOT WS_GROUP 19 CTEXT "http://www.geocities.com/SiliconValley/Sector/5785/"20 "index.html", IDST_URL1, 10, 46, 186, 18,21 DT_WORDBREAK | NOT WS_GROUP22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"23 CTEXT "http://www.os2world.com/cdwriting", IDST_URL2, 10,24 30, 186, 16, DT_WORDBREAK25 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"26 18 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 27 19 END -
branches/v2.9_Lars/mediafolder/res/tw/mediafolder_tw.dlg
r4 r74 7 7 DLGTEMPLATE IDDLG_BOTTOMFRAME LOADONCALL MOVEABLE DISCARDABLE 8 8 BEGIN 9 DIALOG "", IDDLG_BOTTOMFRAME, 12, 70, 300, 16, NOT FS_DLGBORDER | NOT 9 DIALOG "", IDDLG_BOTTOMFRAME, 12, 70, 300, 16, NOT FS_DLGBORDER | NOT 10 10 WS_SAVEBITS 11 11 BEGIN … … 16 16 DLGTEMPLATE IDDLG_FRAMERIGHT LOADONCALL MOVEABLE DISCARDABLE 17 17 BEGIN 18 DIALOG "", IDDLG_FRAMERIGHT, 134, 21, 24, 109, NOT FS_DLGBORDER | NOT 18 DIALOG "", IDDLG_FRAMERIGHT, 134, 21, 24, 109, NOT FS_DLGBORDER | NOT 19 19 WS_SAVEBITS 20 20 BEGIN … … 24 24 DLGTEMPLATE IDDLG_LEFTFRAME LOADONCALL MOVEABLE DISCARDABLE 25 25 BEGIN 26 DIALOG "", IDDLG_LEFTFRAME, 12, 6, 148, 148, NOT FS_DLGBORDER | NOT 26 DIALOG "", IDDLG_LEFTFRAME, 12, 6, 148, 148, NOT FS_DLGBORDER | NOT 27 27 WS_SAVEBITS 28 28 BEGIN 29 CONTAINER IDCNR_PLAYLIST, 14, 11, 123, 111, CCS_SINGLESEL | 29 CONTAINER IDCNR_PLAYLIST, 14, 11, 123, 111, CCS_SINGLESEL | 30 30 CCS_AUTOPOSITION | CCS_MINIRECORDCORE | WS_GROUP 31 31 PUSHBUTTON "Add", IDPB_ADD, 8, 129, 40, 14 … … 36 36 DLGTEMPLATE IDDLG_TOOLBARSETTINGS LOADONCALL MOVEABLE DISCARDABLE 37 37 BEGIN 38 DIALOG "", IDDLG_TOOLBARSETTINGS, 91, 22, 201, 199, NOT FS_DLGBORDER | 38 DIALOG "", IDDLG_TOOLBARSETTINGS, 91, 22, 201, 199, NOT FS_DLGBORDER | 39 39 WS_VISIBLE 40 40 BEGIN 41 GROUPBOX "€ušãŠC", IDGB_TOOLBAR, 9, 24, 181, 127, NOT 41 GROUPBOX "€ušãŠC", IDGB_TOOLBAR, 9, 24, 181, 127, NOT 42 42 WS_GROUP 43 AUTOCHECKBOX "±Ò¥Î§Y®ÉžÑ»¡(~E)", IDCB_ENABLETBFLYOVER, 16, 43 AUTOCHECKBOX "±Ò¥Î§Y®ÉžÑ»¡(~E)", IDCB_ENABLETBFLYOVER, 16, 44 44 129, 152, 10 45 SPINBUTTON IDSB_TBFLYOVERDELAY, 97, 115, 40, 12, 46 SPBS_NUMERICONLY | SPBS_MASTER | SPBS_FASTSPIN | 45 SPINBUTTON IDSB_TBFLYOVERDELAY, 97, 115, 40, 12, 46 SPBS_NUMERICONLY | SPBS_MASTER | SPBS_FASTSPIN | 47 47 WS_GROUP 48 GROUPBOX "§Y®ÉÃCŠâ€ÎŠr«¬", IDGB_COLORANDFONT, 15, 48 GROUPBOX "§Y®ÉÃCŠâ€ÎŠr«¬", IDGB_COLORANDFONT, 15, 49 49 30, 168, 76, NOT WS_GROUP 50 50 LTEXT "ÃCŠâ©ÎŠrÅé¿ï¥Î°ÏªºÂIÀ»«ö¶s¡C" 51 "©ì©ñ®É«öŠí <CTRL> ¥i¥H§ïÅÜŠrÅéÃCŠâ¡C", 51 "©ì©ñ®É«öŠí <CTRL> ¥i¥H§ïÅÜŠrÅéÃCŠâ¡C", 52 52 IDST_TEXTDEMOFIELD, 23, 35, 95, 57, DT_WORDBREAK 53 53 PRESPARAMS PP_FOREGROUNDCOLOR, 0x000000FFL … … 58 58 PUSHBUTTON "¹w³]È(~D)", IDPB_COLORSTANDARD, 74, 7, 52, 14 59 59 PUSHBUTTON "žÑ»¡(~H)", IDPB_COLORHELP, 132, 7, 52, 14, BS_HELP 60 RTEXT "©µ¿ð(ms)¡G", IDGB_COLORANDFONT, 35, 116, 55, 8, 60 RTEXT "©µ¿ð(ms)¡G", IDGB_COLORANDFONT, 35, 116, 55, 8, 61 61 DT_VCENTER 62 62 END … … 65 65 DLGTEMPLATE IDDLG_TOPFRAME LOADONCALL MOVEABLE DISCARDABLE 66 66 BEGIN 67 DIALOG "", IDDLG_TOPFRAME, 13, 52, 287, 26, NOT FS_DLGBORDER | 67 DIALOG "", IDDLG_TOPFRAME, 13, 52, 287, 26, NOT FS_DLGBORDER | 68 68 FS_BORDER | NOT WS_SAVEBITS 69 69 BEGIN … … 74 74 DLGTEMPLATE IDDLG_TOPMIDDLE LOADONCALL MOVEABLE DISCARDABLE 75 75 BEGIN 76 DIALOG "", IDDLG_TOPMIDDLE, 12, 51, 249, 39, NOT FS_DLGBORDER | 76 DIALOG "", IDDLG_TOPMIDDLE, 12, 51, 249, 39, NOT FS_DLGBORDER | 77 77 FS_BORDER | WS_VISIBLE | NOT WS_SAVEBITS 78 78 BEGIN 79 CONTROL "˰h(~B)", IDPB_SKIPBACK, 19, 25, 20, 14, WC_BUTTON, 80 BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_TABSTOP | 79 CONTROL "˰h(~B)", IDPB_SKIPBACK, 19, 25, 20, 14, WC_BUTTON, 80 BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_TABSTOP | 81 81 WS_VISIBLE 82 CONTROL "°±€î(~S)", IDPB_STOP, 40, 25, 22, 14, WC_BUTTON, 82 CONTROL "°±€î(~S)", IDPB_STOP, 40, 25, 22, 14, WC_BUTTON, 83 83 BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE 84 CONTROL "ŒÈ°±(~P)", IDPB_PAUSE, 61, 25, 20, 14, WC_BUTTON, 85 BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE 86 CONTROL "Œœ©ñ(~L)", IDPB_PLAY, 79, 25, 20, 14, WC_BUTTON, 84 CONTROL "ŒÈ°±(~P)", IDPB_PAUSE, 61, 25, 20, 14, WC_BUTTON, 87 85 BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE 88 CONTROL "€U€@º(~N)", IDPB_SKIPFORWARD, 99, 25, 20, 14, WC_BUTTON, 86 CONTROL "Œœ©ñ(~L)", IDPB_PLAY, 79, 25, 20, 14, WC_BUTTON, 87 BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE 88 CONTROL "€U€@º(~N)", IDPB_SKIPFORWARD, 99, 25, 20, 14, WC_BUTTON, 89 89 BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE 90 90 AUTOCHECKBOX "«ÂÐ(~R)", IDCB_REPEAT, 133, 13, 73, 10,WS_VISIBLE|BS_USERBUTTON | BS_AUTOCHECKBOX … … 93 93 CTEXT "0:00", IDST_PLAYTIME, 133, 24, 102, 10, DT_VCENTER 94 94 PRESPARAMS PP_FONTNAMESIZE, "10.Helv" 95 CONTROL "µ¶qºb", IDSL_VOLUMEARM, 209, 5, 14, 14, 95 CONTROL "µ¶qºb", IDSL_VOLUMEARM, 209, 5, 14, 14, 96 96 WC_BUTTON, BS_USERBUTTON | WS_TABSTOP|BS_USERBUTTON 97 PUSHBUTTON "µ¶q", IDSL_VOLUME, 19, 4, 69, 14, 97 PUSHBUTTON "µ¶q", IDSL_VOLUME, 19, 4, 69, 14, 98 98 BS_NOPOINTERFOCUS | NOT WS_TABSTOP | NOT WS_VISIBLE |BS_USERBUTTON 99 99 END … … 106 106 DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE 107 107 BEGIN 108 DIALOG "²£«~žê°T", IDDLG_ABOUT, 115, 69, 208, 132, 108 DIALOG "²£«~žê°T", IDDLG_ABOUT, 115, 69, 208, 132, 109 109 WS_VISIBLE, FCF_TITLEBAR 110 110 BEGIN 111 111 GROUPBOX "", IDGB_ABOUT, 3, 21, 200, 108 112 ; CTEXT "Media-Folder V0.2.5", IDST_PRODNAME, 36, 107, 135, 113 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 112 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 114 113 12, DT_VCENTER | NOT WS_GROUP 115 CTEXT "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87, 114 CTEXT "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87, 116 115 186, 12, DT_VCENTER | NOT WS_GROUP 117 CTEXT "Graphics by Klaus Staedtler-Przyborski", 118 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 116 CTEXT "Graphics by Klaus Staedtler-Przyborski", 117 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 119 118 NOT WS_GROUP 120 CTEXT "http://www.geocities.com/SiliconValley/Sector/5785/"121 "index.html", IDST_URL1, 10, 46, 186, 18,122 DT_WORDBREAK | NOT WS_GROUP123 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"124 119 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 125 CTEXT "http://www.os2world.com/cdwriting", IDST_URL2, 10,126 30, 186, 16, DT_WORDBREAK127 PRESPARAMS PP_FONTNAMESIZE, "8.Helv"128 120 END 129 121 END
Note:
See TracChangeset
for help on using the changeset viewer.