- Timestamp:
- Mar 13, 2018, 11:51:18 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/config.h
r27 r30 36 36 37 37 // Default language for resources and help. 38 #ifdef _QUIET_ 39 #define PSZ_DEFAULTLANGUAGEMOD "goqresen" 40 #else 38 41 #define PSZ_DEFAULTLANGUAGEMOD "gotresen" 42 #endif 39 43 #define PSZ_DEFAULTLANGUAGEHELP "gotcha_en" 40 44 -
trunk/english/makefile
r24 r30 39 39 GOTBUILDMACHINE = Zobopeep 40 40 !endif 41 !ifdef %_QUIET_ 42 RESOURCE = goqresen 43 !else 44 RESOURCE = gotresen 45 !endif 46 41 47 42 48 CC = WCC386.EXE … … 62 68 # $(CC) /I$(INCLDIR) $(CFLAGS) $*.c 63 69 64 all: gotresen.dll gotcha_en.hlp70 all: $(RESOURCE).dll gotcha_en.hlp 65 71 66 72 67 gotresen.dll: &68 gotresen.res73 $(RESOURCE).dll: & 74 $(RESOURCE).res 69 75 $(SED) -e "s;(GOTMAJOR);$(GOTMAJOR);g" & 70 76 -e "s;(GOTMINOR);$(GOTMINOR);g" & … … 74 80 -e "s;Sun \|Mon \|Tue \|Wed \|Thu \|Fri \|Sat ;;g" & 75 81 -e "s;(GOTBUILDMACHINE);$(GOTBUILDMACHINE);g" & 76 gotresen.lnk.tpl > gotresen.lnk77 $(LINK) @ gotresen.lnk f ..\tools\dll.obj lib clib3r.lib78 $(RC) gotresen.res gotresen.dll79 lxlite /x- /b- gotresen.dll82 $(RESOURCE).lnk.tpl > $(RESOURCE).lnk 83 $(LINK) @$(RESOURCE).lnk f ..\tools\dll.obj lib clib3r.lib 84 $(RC) $(RESOURCE).res $(RESOURCE).dll 85 lxlite /x- /b- $(RESOURCE).dll 80 86 $(COPY) *.dll ..\bin 81 87 82 gotresen.res: gotresen.rc &88 $(RESOURCE).res: $(RESOURCE).rc & 83 89 ../id.h & 84 90 ../common.rc & 85 91 ../version.h 86 $(RC) $(RFLAGS) -r gotresen.rc $@92 $(RC) $(RFLAGS) -r $(RESOURCE).rc $@ 87 93 88 94 gotcha_en.hlp: gotcha_en.ipf ../common.ipf & -
trunk/gotcha.cpp
r27 r30 114 114 115 115 //DisplayError("DEBUG", "%d", Version()); 116 //#ifdef _USEDLL_ //_QUIET_116 #ifdef _QUIET_ 117 117 if ((Version() < 1)) 118 118 { … … 126 126 exit (0); 127 127 } 128 128 129 bool fPrtScr = FALSE; 129 130 ULONG ulDataSize; … … 140 141 &temp, sizeof(bool)); 141 142 } 142 //#endif143 #endif 143 144 144 145 // register our window classes … … 184 185 //if (g_fQuiet) 185 186 //{ 186 #ifdef _USEDLL_ //_QUIET_ 187 #ifdef _QUIET_ 188 //#if 1 189 DebugHereIAm(); 187 190 InitDLL (hab, hwndFrame); 188 191 StartInputHook (); … … 248 251 WinDestroyWindow (hwndFrame); 249 252 250 #ifdef _USEDLL_ //_QUIET_ 253 #ifdef _QUIET_ 254 //#if 1 251 255 if (fPrtScr || !rc) { 252 256 PrfWriteProfileData(HINI_USERPROFILE, "PM_ControlPanel", "PrintScreen", -
trunk/gotcha.h
r28 r30 47 47 #include "settings.h" 48 48 49 //#define _PMPRINTF_50 //#include "PMPRINTF.H"49 #define _PMPRINTF_ 50 #include "PMPRINTF.H" 51 51 52 52 #define PSZ_EXTENSION ".bmp" -
trunk/mainwin.cpp
r28 r30 18 18 ***/ 19 19 20 // ** CreateMainWindow **************************************************** /* fold00*/20 // ** CreateMainWindow **************************************************** /*FOLD00*/ 21 21 22 22 HWND CreateMainWindow (VOID) 23 23 { 24 //#ifdef _QUIET_25 #if 124 #ifdef _QUIET_ 25 //#if 1 26 26 hwndFrame = WinLoadDlg (HWND_OBJECT, NULLHANDLE, NULL, GETMODULE, 27 27 ID_DLG_MAIN, NULL); … … 301 301 case WID_PB_SCREEN: 302 302 usCap = CAP_SCREEN; 303 //#ifdef _Quiet_304 #if 1303 #ifdef _QUIET_ 304 //#if 1 305 305 WinShowWindow (g_hwndSettingsDialog, FALSE); 306 306 // WinSendMsg (g_hwndSettingsDialog, WM_CLOSE, 0,0); //Needs to go to the setting dialog … … 313 313 case WID_PB_SCREENREGION: 314 314 usCap = CAP_SCREENREGION; 315 //#ifdef _Quiet_316 #if 1315 #ifdef _QUIET_ 316 //#if 1 317 317 WinShowWindow (g_hwndSettingsDialog, FALSE); 318 318 #endif … … 322 322 case WID_PB_WINDOWINTERIOR: 323 323 usCap = CAP_WINDOWINT; 324 //#ifdef _Quiet_325 #if 1324 #ifdef _QUIET_ 325 //#if 1 326 326 WinShowWindow (g_hwndSettingsDialog, FALSE); 327 327 #endif … … 331 331 case WID_PB_WINDOW: 332 332 usCap = CAP_WINDOW; 333 //#ifdef _Quiet_334 #if 1333 #ifdef _QUIET_ 334 //#if 1 335 335 WinShowWindow (g_hwndSettingsDialog, FALSE); 336 336 #endif … … 360 360 usState = STATE_WAITFORHIDE; 361 361 362 if (usCap == CAP_SCREENREGION || usCap == CAP_SCREEN) 362 if (usCap == CAP_SCREENREGION || usCap == CAP_SCREEN) { 363 #ifdef _QUIET_ 363 364 hwndParent = WinQueryFocus(HWND_DESKTOP); 364 //#ifndef _QUIET_ 365 #if 0 365 #else 366 hwndParent = WinQueryWindow(hwndFrame, QW_NEXTTOP ); 367 #endif 368 } 369 #ifndef _QUIET_ 370 //#if 0 366 371 if (WinQueryButtonCheckstate (hwnd, WID_CB_HIDEWINDOW)) 367 372 WinShowWindow (WinQueryWindow (hwnd, QW_PARENT), FALSE); … … 581 586 WinSendMsg (hwndSnapshot, UM_STOPCAPTURE, 0,0); 582 587 WinStopTimer (hab, hwnd, ulTimer); 583 //#ifdef _QUIET_584 #if 1588 #ifdef _QUIET_ 589 //#if 1 585 590 // ? FIXME to give option to reshow window. 586 591 if (WinQueryButtonCheckstate (hwnd, WID_CB_HIDEWINDOW)) -
trunk/makefile
r18 r30 35 35 GOTBUILDMACHINE = Zobopeep 36 36 !endif 37 !ifdef %_QUIET_ 38 GOTCHAEXE = gotchaq 39 !else 40 GOTCHAEXE = gotcha 41 !endif 37 42 38 43 CC = wpp386.exe … … 47 52 SED = sed.exe 48 53 54 !ifdef %_QUIET_ 55 CFLAGS = -D_QUIET_ -otexan -zp4 -6r 56 !else 49 57 CFLAGS = -otexan -zp4 -6r 58 !endif 59 50 60 RFLAGS = -bt=os2 -zm 51 61 52 LFLAGS = op map= gotcha62 LFLAGS = op map=$(GOTCHAEXE) 53 63 54 64 SRCDIR = U:\Gotcha_Workspace\trunk … … 58 68 PMPRINTFPATH = U:\PMPrintf 59 69 60 all: dll resources gotcha.exe70 all: dll resources $(GOTCHAEXE).exe 61 71 62 72 dll: .symbolic … … 78 88 $(CHDIR) .. 79 89 80 gotcha.lnk: gotcha.lnk.tpl90 $(GOTCHAEXE).lnk: $(GOTCHAEXE).lnk.tpl 81 91 $(SED) -e "s;(GOTMAJOR);$(GOTMAJOR);g" & 82 92 -e "s;(GOTMINOR);$(GOTMINOR);g" & … … 86 96 -e "s;Sun \|Mon \|Tue \|Wed \|Thu \|Fri \|Sat ;;g" & 87 97 -e "s;(GOTBUILDMACHINE);$(GOTBUILDMACHINE);g" & 88 gotcha.lnk.tpl > gotcha.lnk98 $(GOTCHAEXE).lnk.tpl > $(GOTCHAEXE).lnk 89 99 90 gotcha.exe: gotcha.lnk gotcha.obj about.obj helper.obj rstring.obj settings.obj gotcha.res91 $(LINK) $(LFLAGS) @ gotcha.lnk f &100 $(GOTCHAEXE).exe: $(GOTCHAEXE).lnk gotcha.obj about.obj helper.obj rstring.obj settings.obj gotcha.res 101 $(LINK) $(LFLAGS) @$(GOTCHAEXE).lnk f & 92 102 gotcha.obj, & 93 103 about.obj, & … … 96 106 settings.obj & 97 107 lib dll\gotchdll.lib lib mmpm2.lib lib $(GBMPATH)\gbm.lib lib $(SRCDIR)\tools\gbmmemw.lib lib $(PMPRINTFPATH)\pmprintf.lib 98 $(RC) $(RFLAGS) $(SRCDIR)\gotcha.res gotcha.exe99 $(PERL) $(MAPSYMW) gotcha.map100 mapxqs.exe gotcha.map101 lxlite gotcha.exe /x- /b-102 lxlite gotcha.exe /c:minstub108 $(RC) $(RFLAGS) $(SRCDIR)\gotcha.res $(GOTCHAEXE).exe 109 $(PERL) $(MAPSYMW) $(GOTCHAEXE).map 110 mapxqs.exe $(GOTCHAEXE).map 111 lxlite $(GOTCHAEXE).exe /x- /b- 112 lxlite $(GOTCHAEXE).exe /c:minstub 103 113 $(COPY) *.exe *.sym *.xqs *.map* readme* bin 104 114 -
trunk/settings.cpp
r28 r30 92 92 93 93 Settings :: Settings (VOID) : 94 ththSettings(apse, "gotcha.ini", L_PROFILEVERSION) 94 #ifdef _QUIET_ 95 //#if 1 96 ththSettings(apse, "gotchaq.ini", L_PROFILEVERSION) 97 #else 98 ththSettings(apse, "gotcha.ini", L_PROFILEVERSION) 99 #endif 95 100 { 96 101 if( ! QueryFlag( SEI_UPDATE178DONE ) ) { … … 213 218 MPFROMLONG (idPage[i]), MPFROMP (pszPageTab[i])); 214 219 } 215 //#ifndef _QUIET_216 #if 0220 #ifndef _QUIET_ 221 //#if 0 217 222 // open and assign dialogs to pages 218 223 hwndPage[0] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page1Procedure, 219 224 GETMODULE, ID_DLG_SETTINGSPAGE1, this); 220 hwndPage[1] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) WindowProcedure, //Page2Procedure,225 hwndPage[1] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page2Procedure, 221 226 GETMODULE, ID_DLG_SETTINGSPAGE2, this); 222 227 hwndPage[2] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page3Procedure, … … 492 497 WinSendDlgItemMsg( hwnd, WID_LB_FILEFORMAT, LM_SELECTITEM, 493 498 MPFROMSHORT(0), MPFROMSHORT(TRUE) ); 494 //#ifdef _QUIET_495 #if 1499 #ifdef _QUIET_ 500 //#if 1 496 501 // set play sound button 497 502 pset->AdjustButton (hwnd, WID_CB_DOSOUND, … … 539 544 else 540 545 pset->SetFileSaveStyle (FSS_PROMPT); 541 //#ifdef _QUIET_542 #if 1546 #ifdef _QUIET_ 547 //#if 1 543 548 pset->DoSound(WinQueryButtonCheckstate 544 549 (hwnd, WID_CB_DOSOUND)); … … 640 645 pset->AdjustButton (hwnd, WID_CB_SSWALWAYSONTOP, 641 646 pset->SSWAlwaysOnTop ()); 642 //#ifdef _QUIET_643 #if 1647 #ifdef _QUIET_ 648 //#if 1 644 649 pset->AdjustButton (hwnd, WID_CB_SERIALCAPTURE, 645 650 pset->SerialCapture ()); … … 695 700 LogDebug( "Page2Procedure: start UM_ADJUST" ); 696 701 #endif 697 //#ifndef _QUIET_698 #if 0702 #ifndef _QUIET_ 703 //#if 0 699 704 // query state of checkbuttons and set flags 700 705 pset->SSWHide(WinQueryButtonCheckstate(hwnd, WID_CB_SSWHIDE)); … … 730 735 else 731 736 pset->SetSSWCaptureType (CAP_SCREEN); 732 //#ifdef _QUITE_733 #if 1737 #ifdef _QUIET_ 738 //#if 1 734 739 // delay time 735 740 ULONG ul; … … 1126 1131 1127 1132 ResourceString::Module(g_hmod); 1128 //#ifdef _QUIET_1129 #if 11133 #ifdef _QUIET_ 1134 //#if 1 1130 1135 pszPageTab[0] = RSTR (IDS_MAINWIN); 1131 1136 pszPageTab[1] = RSTR (IDS_PAGESAVE); … … 1150 1155 // set this to some default, as we must open the settings dialog for 1151 1156 // selecting a language 1152 //#ifdef _QUIET_1153 #if 11157 #ifdef _QUIET_ 1158 //#if 1 1154 1159 pszPageTab[0] = RSTR (IDS_MAINWIN); 1155 1160 pszPageTab[1] = RSTR (IDS_PAGESAVE); … … 1181 1186 hdir = HDIR_CREATE; 1182 1187 c = 1; 1183 rc = DosFindFirst ("*.dll", &hdir, fl, &findbuf, 1188 #ifdef _QUIET_ 1189 rc = DosFindFirst ("goqre*.dll", &hdir, fl, &findbuf, 1184 1190 sizeof (findbuf), &c, FIL_STANDARD); 1191 #else 1192 rc = DosFindFirst ("gotre*.dll", &hdir, fl, &findbuf, 1193 sizeof (findbuf), &c, FIL_STANDARD); 1194 #endif 1185 1195 while (!rc) 1186 1196 {
Note:
See TracChangeset
for help on using the changeset viewer.