Changeset 92
- Timestamp:
- Oct 7, 2020, 5:00:30 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
gotcha.cpp (modified) (6 diffs)
-
mainwin.cpp (modified) (2 diffs)
-
settings.cpp (modified) (1 diff)
-
settings.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gotcha.cpp
r91 r92 156 156 pset->pForceSaveFile = pset->QueryForceSaveFile(); 157 157 pset->bSerialCapture = pset->SerialCapture (); 158 158 #ifndef _QUIET_ 159 159 // check cmd line args and if "-a" found take screenshot and exit 160 160 if (CheckCmdlineArgs (argc, argv)) … … 168 168 exit (0); 169 169 } 170 170 #endif 171 171 SetIdlePriority(pset->QueryFlag(SEI_IDLEPRIORITY)); 172 172 … … 175 175 #ifndef _QUIET_ 176 176 hwndSnapshot = CreateSnapshotWindow (); 177 #endif178 177 SWP swp; 179 178 USHORT us[7]; … … 183 182 WinSetWindowPos (hwndFrame, HWND_DESKTOP, swp.x,swp.y, 0,0, 184 183 SWP_SHOW | SWP_MOVE); 185 184 #endif 186 185 187 186 #ifdef _QUIET_ … … 206 205 else 207 206 WinShowWindow (hwndSnapshot, TRUE); 208 #endif 207 209 208 WinSetWindowPos (hwndFrame, NULLHANDLE, 0,0, 0,0, SWP_SHOW); 210 209 WinSetWindowPos (WinWindowFromID (hwndFrame, FID_CLIENT), NULLHANDLE, 211 210 0,0, 0,0, SWP_SHOW); 211 #endif 212 212 213 213 g_phelp = new Helper(hwndFrame); … … 234 234 WinQueryWindowPos (hwndSnapshot, &swp); 235 235 pset->SetWindowData (&swp); 236 #endif 236 237 237 // save size, etc. of main window 238 238 WinQueryWindowPos (hwndFrame, &swp); 239 239 pset->SetWindowData (&swp, FALSE); 240 240 #endif 241 241 // goodbye windows! 242 242 #ifndef _QUIET_ -
trunk/mainwin.cpp
r69 r92 574 574 case UM_CAPTURE: 575 575 usState = STATE_WAITFORHIDE2; 576 #ifndef _QUIET_ 576 577 if (pset->SSWHide () && WinIsWindowVisible (hwndSnapshot)) 577 578 WinShowWindow (hwndSnapshot, FALSE); 578 579 else 580 #endif 579 581 WinSendMsg (hwnd, UM_CAPTURE2, 0,0); 580 582 return MRESULT (FALSE); … … 605 607 { 606 608 WinStopTimer (hab, hwnd, ulTimer); 609 #ifndef _QUIET_ 607 610 if (! WinIsWindowVisible (hwndSnapshot) && pset->SnapshotWindow ()) 608 611 WinShowWindow (hwndSnapshot, TRUE); 609 612 #endif 610 613 if (hbm) 611 614 { -
trunk/settings.cpp
r89 r92 67 67 new THTH_SEF (SEI_SERIALCAPTURE, "Extras", "SerialCapture", FALSE), 68 68 new THTH_SEL (SEI_SERIALTIME, "Extras", "SerialTime", 10), 69 69 #ifdef _QUIET_ 70 new THTH_SEL (SEI_SSWCAPTURETYPE, "Extras", "CaptureType", CAP_SCREEN), 71 new THTH_SEF (SEI_SNAPSHOTWINDOW, "Snapshot", NULL, NULL), 72 #else 70 73 new THTH_SEF (SEI_SNAPSHOTWINDOW, "Snapshot", "Enable", FALSE), 71 74 new THTH_SEL (SEI_SSWCAPTURETYPE, "Snapshot", "CaptureType", CAP_SCREEN), 72 75 new THTH_SEF (SEI_SSWHIDE, "Snapshot", "Hide", TRUE), 73 76 new THTH_SEF (SEI_SSWALWAYSONTOP, "Snapshot", "AlwaysOnTop", TRUE), 74 77 #endif 75 78 new THTH_SEF (SEI_IDLEPRIORITY, "Extras", "IdlePriority", FALSE), 76 79 77 80 new THTH_SEB (SEI_SWP, "Window", "SWP", &swpDef, sizeof (swpDef)), 78 81 new THTH_SEB (SEI_US, "Window", "US", &ausDef, sizeof (ausDef)), 79 82 #ifndef _QUIET_ 80 83 new THTH_SEB (SEI_SWPSSW, "Snapshot", "SWP", &swpDefSSW, sizeof (swpDefSSW)), 81 84 new THTH_SEB (SEI_USSSW, "Snapshot", "US", &ausDefSSW, sizeof (ausDefSSW)), 82 85 #endif 83 86 new THTH_SES (SEI_LANGUAGE, "Language", "Program", PSZ_DEFAULTLANGUAGEMOD), 84 87 new THTH_SES (SEI_LANGUAGEHELP, "Language", "Help", PSZ_DEFAULTLANGUAGEHELP), -
trunk/settings.h
r37 r92 96 96 USHORT QueryDelayTime (VOID) { return QueryLong (SEI_DELAYTIME); } 97 97 VOID SetDelayTime (USHORT us) { SetLong (SEI_DELAYTIME, us); } 98 98 #ifndef _QUIET_ 99 99 BOOL SnapshotWindow (VOID) { return QueryFlag (SEI_SNAPSHOTWINDOW); } 100 100 VOID SnapshotWindow (BOOL f) { SetFlag (SEI_SNAPSHOTWINDOW, f); } … … 105 105 BOOL SSWAlwaysOnTop (VOID) { return QueryFlag (SEI_SSWALWAYSONTOP); } 106 106 VOID SSWAlwaysOnTop (BOOL f) { SetFlag (SEI_SSWALWAYSONTOP, f); } 107 107 #endif 108 108 BYTE QuerySSWCaptureType (VOID) { return QueryLong (SEI_SSWCAPTURETYPE); } 109 109 VOID SetSSWCaptureType (BYTE b) { SetLong (SEI_SSWCAPTURETYPE, b); }
Note:
See TracChangeset
for help on using the changeset viewer.
