Commit Graph

163 Commits

Author SHA1 Message Date
Vincent Wei
7ef6c14f3f relay MSG_IDLE to active child in PreDefControlProc 2022-09-27 21:54:30 +08:00
Vincent Wei
cbb4e32992 Call UpdateInvalidClient in ScrollWindow; Only delaying MSG_IDLE to the child control if the main window is active 2022-09-27 13:20:18 +08:00
Vincent Wei
b2dee57f4f tune relaying of MSG_IDLE 2022-09-27 11:44:26 +08:00
Vincent Wei
a926754a6b Tuning: the MSG_IDLE message will be relayed to the descendant control if the control captured the mouse currently 2022-09-26 20:03:20 +08:00
Vincent Wei
e293cf03ba fix bugs when virtual window enabled for sa and procs runmodes 2022-09-26 14:06:09 +08:00
Vincent Wei
9a124dec50 fix a bug in search_win_tree_bfs; send MSG_MANAGE_MSGTHREAD messages only in message.c 2022-09-24 13:42:02 +08:00
Vincent Wei
7f44e948d0 fix a bug mentioned in Issue #89 2022-09-23 16:04:11 +08:00
Vincent Wei
9141e13640 suppress some warnings reported by GCC 12 2022-09-15 15:01:30 +08:00
Vincent Wei
e2ba3681a1 cleanup: bad usage of __TARGET_UNKNOWN__ 2021-06-07 14:49:31 +08:00
Vincent Wei
ac769be3cb fix a minor bug 2021-05-05 18:03:10 +08:00
Vincent Wei
cdf4ca3612 fix wrong implementation of search_win_tree_bfs 2021-04-25 14:52:49 +08:00
Vincent Wei
285a8e1101 Implement SetMainWindowGestureFlags and MSG_SETGESTUREFLAGS 2021-04-01 15:42:58 +08:00
Vincent Wei
4e0cd74552 fix a bug of GetNextMainWindow 2020-12-15 17:02:16 +08:00
Vincent Wei
bbda500121 cleanup 2020-03-26 18:10:51 +08:00
Vincent Wei
f662f45e86 no need to free surface explicitly 2020-03-22 19:48:51 +08:00
Vincent Wei
4144065fb8 tune comments 2020-03-22 17:35:54 +08:00
Vincent Wei
8e79449de1 fix a memory leak: we must free the surface for popup menu when delete the memdc, or it can not be freed actually due to the referenced count. 2020-03-11 10:23:31 +08:00
Vincent Wei
76ca7b53dd change datatype to TYPE_WINTODEL before throwing away messages 2020-03-10 15:29:55 +08:00
Vincent Wei
f0414cddc1 Tune implementation of SetAutoRepeatMessage. We use mechanism like caret 2020-03-06 21:51:12 +08:00
Vincent Wei
da0cf8be8a restore the behavior of IncludeWindowStyle, ExcludeWindowStyle, IncludeExWindowStyle, and ExcludeWindowExStyle 2020-03-06 17:53:27 +08:00
Vincent Wei
ae56fea196 tune IncludeWindowStyle, ExcludeWindowStyle, IncludeExWindowStyle, and ExcludeWindowExStyle to not allow change the system styles 2020-03-06 17:43:10 +08:00
Vincent Wei
38053abaa6 cleanup 2020-03-06 17:30:20 +08:00
Vincent Wei
f8b939766a fix a bug: under compositing schema, for the secondary DC, we need to offset more based on the origin of the main window when updating the secondary DC 2020-03-06 15:53:19 +08:00
Vincent Wei
7f58a1775e tune 2020-03-06 11:08:44 +08:00
Vincent Wei
243f24d0a3 fix memory leaks in VirtualWindwoCleanup and MainWindowCleanup 2020-03-06 10:31:31 +08:00
Vincent Wei
283c4e4bc4 mark a window as TODEL after calling ThrowAwayMessages; tune name of some internal inline functions 2020-03-05 13:04:31 +08:00
Vincent Wei
5812c11f7c tune GetRootWindow to return the number of windows 2020-03-04 22:52:36 +08:00
Vincent Wei
5224e31084 cleanup 2020-03-04 21:54:28 +08:00
Vincent Wei
627a71346b cleanup 2020-03-04 20:57:09 +08:00
Vincent Wei
38e189ad17 Always use CeratePrivateClientDC for private CDC; use __mg_delete_secondary_dc when destroying a window; call __mg_update_dc_on_secondary_dc_changed if secondary DC changed; cleanup code 2020-03-04 15:23:34 +08:00
Vincent Wei
06b783e0a8 cleanup 2020-03-03 15:38:38 +08:00
Vincent Wei
262bf68807 move gui_Control to ctrlclass.h as inline function 2020-03-03 15:38:17 +08:00
Vincent Wei
a6a9388fdf destroy local data map in DestroyMainWindow, DestroyVirtualWindow, and DestroyWindow; implement SetWindowLocalData, RemoveWindowLocalData, and GetWindowLocalData 2020-03-02 14:36:54 +08:00
Vincent Wei
c0869dc898 tune implementation of CreateMainWindowEx2 2020-03-02 11:14:37 +08:00
Vincent Wei
513618d4ca rename notif_proc to NotifProc in CONTROL structure; fix conditional compilation errors 2020-02-29 17:52:40 +08:00
Vincent Wei
df03ad014f Improve implementation of DumpWindow and moved to window.c 2020-02-29 17:44:01 +08:00
Vincent Wei
f789ea719d allow HWND_NULL for GetNextChild and GetNextMainWindow 2020-02-29 17:13:04 +08:00
Vincent Wei
dd34cd58a5 tune CreateMainWindowEx2 for error handling; Call SendNotifyMessage in the end of MoveWindow 2020-02-29 16:03:01 +08:00
Vincent Wei
04535d691f use new inline functions for checking and returning the window ptr 2020-02-28 17:12:05 +08:00
Vincent Wei
2d8fda08e7 cleanup the checking of window type for various window APIs 2020-02-28 17:08:14 +08:00
Vincent Wei
e2e2b1ef94 check length of class name and reserved names 2020-02-28 17:07:40 +08:00
Vincent Wei
dfe6c026ef fix a fatal bug: call __mg_throw_away_messages in CreateMainWindowEx2, CreateVirtualWindow, and CreateWindowEx2 when failed to create a new window. 2020-02-27 21:10:23 +08:00
Vincent Wei
16d3a63fbb rename get_valid_dc to get_effective_dc; rename release_valid_dc to release_effective_dc 2020-02-27 10:40:17 +08:00
Vincent Wei
98cdfd9bfb Call SyncUpdate in ReleaseDC instead of EndPaint 2020-02-27 10:38:05 +08:00
Vincent Wei
283d421721 tune 2020-02-27 09:57:49 +08:00
Vincent Wei
e50c8424e0 Only call SyncUpdateDC in EndPaint 2020-02-27 00:25:50 +08:00
Vincent Wei
18ca90eb37 conver to upper before hashing 2020-02-27 00:25:19 +08:00
Vincent Wei
bdb4bbefe4 use Str2Key for hash function of class name 2020-02-26 23:01:53 +08:00
Vincent Wei
e76dcef46e add gui_ prefix to AddNewControlClass and so on 2020-02-26 22:06:37 +08:00
Vincent Wei
6ee2617eb7 use GetSystemBitmapEx2 instead of GetSystemBitmapEx 2020-02-26 21:32:11 +08:00