Changeset 89
- Timestamp:
- Aug 24, 2020, 11:57:26 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NLS/en/goqresen.rc
r87 r89 37 37 /* "English", /* Language to be used for online help */ 38 38 /* "Gotcha_en", /* Name of the help file */ 39 }40 41 MENU IDM_SSWPOPUP42 {43 SUBMENU "~Capture", WID_CAPTURETYPE,MS_CONDITIONALCASCADE44 {45 MENUITEM "~Screen", WID_SSWSCREEN46 MENUITEM "Screen ~region", WID_SSWSCREENREGION47 MENUITEM "~Window", WID_SSWWINDOW48 MENUITEM "Window ~interior", WID_SSWWINDOWINT49 }50 MENUITEM "Hide when capturing", WID_CB_SSWHIDE51 MENUITEM "Always on top", WID_CB_SSWALWAYSONTOP52 MENUITEM SEPARATOR53 MENUITEM "Close", WID_CB_SSWENABLE54 39 } 55 40 … … 289 274 IDS_MAINWIN "Gotcha!" 290 275 IDS_PAGESAVE "Saving" 291 IDS_PAGESNAPSHOT "Snapshot"292 276 IDS_CAPTURE "Capture" 293 277 IDS_PAGELANGUAGE "Language" … … 304 288 IDS_BMF_DIB "Device Independent Bitmap (dib)" 305 289 306 IDS_SNAPLABEL "Snap!"307 290 IDS_GENERALHELP "Gotcha! ~help\tF1" 308 291 … … 310 293 IDS_CANCEL "~Cancel" 311 294 IDS_WISHCONTINUE "Do you wish to continue?" 295 296 IDS_ERROR_ALREADYRUNNING "GOTCHA QUIET Already running" 297 IDS_ERROR_ALREADYRUNNINGMSG "Another instance of Gotcha Quiet is running. Open Gotcha Quiet's settings by pressing Alt+PrintScreen" 312 298 } -
trunk/gotcha.cpp
r65 r89 114 114 HMQ hmq = WinCreateMsgQueue (hab, 0); 115 115 116 // Load settings move up here so the string table is available for the already running error 117 pset = new SETTINGS; 116 118 //DisplayError("DEBUG", "%d", Version()); 117 119 #ifdef _QUIET_ … … 127 129 int rc; 128 130 HMTX hmtx = NULLHANDLE; 129 // running multiple instances orphans all but the first closedhook unloaded131 // running multiple instances orphans all but the first hook unloaded 130 132 rc = DosOpenMutexSem("\\SEM32\\GOTCHA", &hmtx); 131 133 if (!rc) { 132 DisplayError("GOTCHA QUIET Already running", 133 "Another instance of Gotcha Quiet is running. You can " 134 "open Gotcha Quiet's settings using the Alt+PrintScreen " 135 "key combination"); 134 DisplayError(RSTR (IDS_ERROR_ALREADYRUNNING), 135 RSTR (IDS_ERROR_ALREADYRUNNINGMSG)); 136 136 exit (0); 137 137 } … … 147 147 WinRegisterClass (hab, "thth.wc.gotcha.main", WindowProcedure, 0L, 148 148 sizeof (ULONG)*2L); 149 #ifndef _QUIET_ 149 150 WinRegisterClass (hab, "thth.wc.gotcha.snapshot", wpSnapshot, 150 151 CS_SIZEREDRAW, sizeof (ULONG)*2L); 151 152 #endif 152 153 // load the settings 153 pset = new SETTINGS;154 //pset = new SETTINGS; 154 155 155 156 pset->idleSetInIni = pset->QueryFlag(SEI_IDLEPRIORITY); … … 175 176 // create the windows 176 177 hwndFrame = CreateMainWindow (); 178 #ifndef _QUIET_ 177 179 hwndSnapshot = CreateSnapshotWindow (); 178 180 #endif 179 181 SWP swp; 180 182 USHORT us[7]; … … 196 198 StartInputHook (); 197 199 #endif 198 200 #ifndef _QUIET_ 199 201 // position snapshot window 200 202 pset->QueryWindowData (&swp, us); … … 207 209 else 208 210 WinShowWindow (hwndSnapshot, TRUE); 209 211 #endif 210 212 WinSetWindowPos (hwndFrame, NULLHANDLE, 0,0, 0,0, SWP_SHOW); 211 213 WinSetWindowPos (WinWindowFromID (hwndFrame, FID_CLIENT), NULLHANDLE, … … 231 233 pset->SetNumSaveDir (pset->pNumSaveDir); 232 234 } 235 #ifndef _QUIET_ 233 236 // save size, etc. of snapshot window 234 237 WinQueryWindowPos (hwndSnapshot, &swp); 235 238 pset->SetWindowData (&swp); 236 239 #endif 237 240 // save size, etc. of main window 238 241 WinQueryWindowPos (hwndFrame, &swp); … … 240 243 241 244 // goodbye windows! 245 #ifndef _QUIET_ 242 246 WinDestroyWindow (hwndSnapshot); 247 #endif 243 248 WinDestroyWindow (hwndFrame); 244 249 -
trunk/id.h
r55 r89 167 167 #define IDS_CANCEL 38 168 168 #define IDS_WISHCONTINUE 39 169 #define IDS_ERROR_ALREADYRUNNING 40 170 #define IDS_ERROR_ALREADYRUNNINGMSG 41 169 171 170 172 #define MAIN_HELP_TABLE 1 -
trunk/settings.cpp
r55 r89 651 651 LogDebug( "Page2Procedure: start UM_SETTINGS2DIALOG" ); 652 652 #endif 653 #ifndef _QUIET_ 653 654 // set state of checkbuttons 654 655 pset->AdjustButton (hwnd, WID_CB_SSWENABLE, … … 658 659 pset->AdjustButton (hwnd, WID_CB_SSWALWAYSONTOP, 659 660 pset->SSWAlwaysOnTop ()); 660 # ifdef _QUIET_661 #else 661 662 //#if 1 662 663 pset->AdjustButton (hwnd, WID_CB_SERIALCAPTURE, … … 698 699 break; 699 700 } 700 701 #ifndef _QUIET_ 701 702 // show or hide snapshot window 702 703 if (! WinSendDlgItemMsg (hwnd, WID_CB_SSWENABLE, … … 705 706 else 706 707 WinShowWindow (hwndSnapshot, TRUE); 707 708 #endif 708 709 #ifdef _DOLOGDEBUG_ 709 710 LogDebug( "Page1Procedure: end UM_SETTINGS2DIALOG" ); … … 785 786 switch (SHORT1FROMMP (mp1)) 786 787 { 788 #ifndef _QUIET_ 787 789 case WID_CB_SSWENABLE: 788 790 if (! WinSendDlgItemMsg (hwnd, WID_CB_SSWENABLE, … … 792 794 WinShowWindow (hwndSnapshot, TRUE); 793 795 break; 796 #endif 794 797 case WID_CB_DELAYEDCAPTURE: 795 798 -
trunk/snapshot.cpp
r2 r89 19 19 20 20 // ** CreateSnapshotWindow ************************************************ /*FOLD00*/ 21 21 #ifndef _QUIET_ 22 22 HWND CreateSnapshotWindow (VOID) 23 23 { … … 206 206 return WinDefWindowProc (hwnd, msg, mp1, mp2); 207 207 } 208 208 #endif 209 209 // ************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.