Commit graph

65 commits

Author SHA1 Message Date
Kang Yu
a84b5f07bc simplify window recovery procedure 2020-01-29 10:58:30 -08:00
Kang Yu
c82aaa3c59 remove dos new line 2020-01-29 10:55:32 -08:00
Kang Yu
7e4f3820b1 reject false window placement change when real screen position does not 2020-01-29 09:37:38 -08:00
Kang Yu
39fdc0cace overwrite label text with dynamic content during form load event, dynamic text is not allowed during form design 2020-01-28 16:26:24 -08:00
Kang Yu
f2e86f0878 refined string construction 2020-01-28 16:17:56 -08:00
Kang Yu
dd0a31dfc7 remove obsolete code 2020-01-28 12:39:49 -08:00
Kang Yu
eda1839e4a rename local var to emphasize current and previous value 2020-01-28 12:30:21 -08:00
Kang Yu
fddbb85279 only release version has the limit of singleton running instance 2020-01-28 02:21:24 -08:00
Kang Yu
4bda3525db avoid taking invalid value in WindowPlacement by focusing only on normal position part 2020-01-28 01:00:39 -08:00
Kang Yu
9f0680b8d4 allow only one instance to run in release mode. update version to 2.5.xx 2020-01-27 22:05:31 -08:00
Kang Yu
107b82c33e use standard method to get release version 2020-01-27 21:02:01 -08:00
Kang Yu
52fed8b1c8 use process id to resolve hash key (hwnd) conflict 2020-01-27 20:26:20 -08:00
Kang Yu
fe4fd6f8d0 safe guard hash collision between destroyed window and new window 2020-01-27 01:20:10 -08:00
Kang Yu
0d708214a1 refine text format in splash screen 2020-01-27 00:04:12 -08:00
kangyu
a3803a9164 start program with a splash screen 2020-01-26 23:57:38 -08:00
kangyu
9406f220d4 rename variable name to indicate screen coordinate instead of workspace coordinate 2020-01-26 12:59:17 -08:00
kangyu
357756d384 reduce the amount of MoveWindow() call 2020-01-26 12:55:57 -08:00
kangyu
b7fcca2df6 reliably restore window position by calling SetWindowPlacement() first, followed by MoveWindow(). Required for release build 2020-01-26 01:51:16 -08:00
kangyu
f3f414797a smooth window location update using 3 second window to reduce noise across timer boundary 2020-01-26 01:06:29 -08:00
kangyu
b2216a3a9e refix failure to restore snapped window using GetWindowRect()/MoveWindow() API in addition to GetWindowPlacement()/SetWindowPlacement() 2020-01-26 00:06:29 -08:00
kangyu
49aedbde38 rename variable and magic const 2020-01-25 14:26:45 -08:00
kangyu
d148fa4119 fix inconsistent snap window recovery 2020-01-25 14:00:44 -08:00
kangyu
e45577fa6b update to version 2.3, show version number in tool tip 2020-01-25 01:54:19 -08:00
kangyu
50fdf0c0f1 tag version 2.2 2020-01-25 01:09:05 -08:00
kangyu
a632877ee4 fix failure to restore snapped window 2020-01-25 01:03:39 -08:00
kangyu
22e9f4cc84 change program title to PersistentWindows, update version and copyright info 2020-01-23 22:39:54 -08:00
kangyu
c132f80c2b recapture all window position right after restore, also clear waiting counter to avoid hazard with next restore 2020-01-23 20:42:14 -08:00
kangyu
33b6fd26de enhance window position comparison 2020-01-23 20:17:06 -08:00
kangyu
78ac961f4d avoid generate log file in release mode 2020-01-23 20:16:10 -08:00
kangyu-california
1eae5895f5
Update README.md 2019-12-25 15:50:10 -08:00
kangyu-california
e95f60aec3
Update README.md 2019-12-25 15:46:26 -08:00
kangyu-california
ce99a3153c
Update README.md 2019-12-25 15:45:33 -08:00
kangyu-california
45bdecdc2b
Update README.md 2019-12-25 15:44:08 -08:00
kangyu-california
8037a265a2
Update README.md 2019-12-25 15:39:54 -08:00
kangyu-california
3109a41bac
Update README.md 2019-12-25 15:36:12 -08:00
kangyu-california
e4ee245114
Update README.md 2019-12-25 15:33:14 -08:00
kangyu-california
bd4a8af1c5
Update README.md 2019-12-25 15:25:28 -08:00
kangyu-california
9524d10ead
Update README.md 2019-12-25 15:05:40 -08:00
kangyu-california
faef8af0d4
Update README.md 2019-12-25 14:43:13 -08:00
kangyu-california
fe90ff0385
Update README.md 2019-12-24 14:33:25 -08:00
kangyu
b42b29005d tag build version 2.0 2019-12-23 23:06:53 -08:00
kangyu
0c075ab4b2 postpone goofy window movement update by waiting as long as 60 seconds. Refine coding style 2019-12-23 22:47:46 -08:00
kangyu
589989844d resolve issue when switching between rdp sessions with different monitor configuration 2019-12-22 21:40:21 -08:00
kangyu
93b905ed00 simplify code, update comment 2019-12-22 19:59:32 -08:00
kangyu
d3633e26a8 limit 2 window position update per second 2019-12-22 19:59:32 -08:00
kangyu
a09f07b17a add comment on runtime fix 2019-12-22 19:59:31 -08:00
kangyu
a9d14eee07 keep compatibility with legacy windows 7/8 2019-12-22 19:59:31 -08:00
kangyu-california
6a57bf4ff1
update readme.md 2019-12-21 22:36:53 -08:00
kangyu-california
38b5ff2571
create readme.md 2019-12-21 22:35:32 -08:00
kangyu
2e65bd3d46 remove ManagedWinapi dll from source tree, use NuGet (from within MSVC tools menu) to download it before build 2019-12-21 21:57:31 -08:00