Commit Graph
76 Commits
Author SHA1 Message Date
Vincent Wei 2d8fda08e7 cleanup the checking of window type for various window APIs 2020-02-28 17:08:14 +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 17b92420f1 tune implementation for MSG_CALC_POSITION message 2020-02-26 12:23:19 +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 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 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
Vincent Wei 3e3a7c92e1 use WS_EX_DIALOGBOX style for IsDialog() instead of sending message to window procedure 2020-02-21 20:05:44 +08:00
Vincent Wei 9b4c325ba2 fix bug of CreateThreadForMessaging 2020-02-21 11:43:53 +08:00
Vincent Wei ec6c22f666 fix bug of bad traveling the hosted windows 2020-02-21 09:52:50 +08:00
Vincent Wei 1b598de5cc tune 2020-02-20 12:37:00 +08:00
Vincent Wei 0f416f990c convert style WS_EX_TOPMOST to WS_EX_WINTYPE_HIGHER 2020-02-19 19:36:34 +08:00
Vincent Wei f4f711e660 register/unregister message thread to desktop 2020-02-18 22:20:30 +08:00
Vincent Wei 231985fce3 fix condiitonal compilation errors 2020-02-18 20:27:35 +08:00
Vincent Wei 5f3b100f19 implement RegisterEventHookFunc, RegisterEventHookWindow, and UnregisterEventHookWindow; tune implementation of old hook APIs 2020-02-18 18:43:14 +08:00
Vincent Wei 3e9847ab13 declare IsWindowInThisThread, PreDefVirtualWinProc, DefaultVirtualWinProc, and IsVirtualWindow; tune some description words 2020-02-17 16:19:15 +08:00
Vincent Wei 9c9bd2fe2b handle hosting of virtual windows and main windows 2020-02-16 22:38:48 +08:00
Vincent Wei df10bf5ae0 call mg_GetMsgQueueForThisThread and mg_FreeMsgQueueForThisThread only for _MGHAVE_VIRTUAL_WINDOW 2020-02-16 18:44:08 +08:00
Vincent Wei 0ee62da119 tune code for virtual window 2020-02-15 22:51:56 +08:00
Vincent Wei c5df42a44b implement CreateThreadForMessaging, GetThreadByWindow, CreateVirtualWindow, DestroyVirtualWindow, and VirtualWindowCleanup; move GetMainWinThread from desktop-ths.c to window.c 2020-02-15 18:22:14 +08:00
Vincent Wei 3b639d59d7 cleanup 2020-02-14 22:43:13 +08:00
Vincent Wei 3bbdd9d647 UPDATERGIN -> -UPDATERGN 2020-02-13 21:54:29 +08:00
Vincent Wei 1347fa020b Use pWin->pMainWin->left and pWin->pMainWin->top to calculate 2020-02-13 20:52:46 +08:00
Vincent Wei a0d747fcc6 call SyncUpdateDC in __mg_update_secondary_dc 2020-02-12 23:41:41 +08:00
Vincent Wei c27afc62dd do not use dwBkColor if surf_flag has ST_PIXEL_DEFAULT 2020-02-11 23:58:38 +08:00
Vincent Wei 36fbbdecda Enhance CreateMainWindowEx2 to handle surface flag.
Implement DWORD2PixelByWindow.
Use dwBkColor for compositing schema.
2020-02-11 18:01:45 +08:00
Vincent Wei 0cb02d4c34 exclude the special window type style if failed; refuse to create global controls in a special main window 2020-02-07 23:01:29 +08:00
Vincent Wei dd6793b27b cleanup 2020-02-07 19:02:37 +08:00
Vincent Wei 9c3c6481c7 cleanup 2020-02-07 17:10:08 +08:00
Vincent Wei 32c5c3c58f cleanup; use MSG_SETWINDOWMASK instead of __kernel_change_z_node_mask_rect 2020-02-07 10:18:30 +08:00
Vincent Wei 5e5101ea38 check the return value of message MSG_MOVEMAINWIN 2020-02-06 21:51:10 +08:00
Vincent Wei 921036a3f2 tune for change of window mask 2020-02-06 18:16:39 +08:00
Vincent Wei e77410462b __kernel_change_z_order_mask_rect -> __kernel_change_z_node_mask_rect 2020-02-06 17:49:35 +08:00
Vincent Wei 10971de518 create shared surface for WS_EX_CTRLASMAINWIN 2020-02-05 12:06:28 +08:00
Vincent Wei 61b4b4adf9 check shared_header 2020-02-03 17:57:29 +08:00
Vincent Wei 8dbe2c63f1 cleanup code, see cleanup-code.sh 2020-02-02 10:46:29 +08:00
Vincent Wei 32d8260430 cleanup 2020-01-16 18:08:45 +08:00
Vincent Wei 46621017c8 enhance to support compositing type and argument for CreateMainWindowEx2 2020-01-16 12:15:34 +08:00
Vincent Wei 4f6a0aebf5 implement SetMainWindowAlwaysTop and SetMainWindowCompositing 2020-01-16 11:45:19 +08:00
Vincent Wei f22b545315 CreateMainWindowEx -> CreateMainWindowEx2 2020-01-15 18:37:05 +08:00
Vincent Wei d4e066cbc9 cleanup 2020-01-15 17:32:22 +08:00
Vincent Wei 944b3fd116 cleanup 2020-01-14 18:21:15 +08:00