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 |
|
Vincent Wei
|
17b92420f1
|
tune implementation for MSG_CALC_POSITION message
|
2020-02-26 12:23:19 +08:00 |
|
Vincent Wei
|
3fde7981ed
|
fix typos: Checks -> Check, Determines -> Determine
|
2020-02-26 11:13:11 +08:00 |
|
Vincent Wei
|
ca85b950fe
|
send MSG_CALC_POSITION messge to desktop for calculating default position
|
2020-02-26 11:11:28 +08:00 |
|
Vincent Wei
|
881776c7a9
|
fix typos: Gets -> Get, Sets -> Set, Retrieves -> Retrieve
|
2020-02-26 08:55:38 +08:00 |
|
Vincent Wei
|
76cd3d6f27
|
GetMainVirtWindowById -> GetHostedById
|
2020-02-25 08:21:25 +08:00 |
|
Vincent Wei
|
2cbf9b25c9
|
tune search_win_tree; bugfix: forget removing the virtual window from hosting tree in DestroyVirtualWindow
|
2020-02-24 21:20:59 +08:00 |
|
Vincent Wei
|
08d1b85e10
|
tune CreateVirtualWindow and GetMainVirtWindowById; implement GetWindowId and SetWindowId
|
2020-02-24 15:00:13 +08:00 |
|
Vincent Wei
|
05bc9e9b3c
|
implement GetRootWindow and GetMainVirtWindowById; tune implementation of GetHosting, GetFirstHosted, and GetNextHosted to support virtual window
|
2020-02-23 19:03:35 +08:00 |
|
Vincent Wei
|
c54c05ce57
|
use MG_IS_NOT_VIRT_WINDOW for GetParent
|
2020-02-23 15:33:28 +08:00 |
|
Vincent Wei
|
aaa6b1379d
|
include WS_EX_DIALOGBOX before create main window for dialog box
|
2020-02-23 11:25:14 +08:00 |
|
Vincent Wei
|
523ceb4dc5
|
fix conditional compilation errors
|
2020-02-22 19:32:59 +08:00 |
|
Vincent Wei
|
90636dd869
|
bugfix: wrong WinType for virtual window; bad counting of nrWindows
|
2020-02-22 15:53:09 +08:00 |
|