Commit Graph
110 Commits
Author SHA1 Message Date
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
Vincent Wei 32939cf0af cleanup 2020-02-21 20:06:50 +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 c77d618b7d WINDOWINFO structure changed, do not assume the first field of the structure is the position of the window 2020-02-20 12:36:30 +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 6f132886c3 4.2.0 -> 5.0.0 2020-02-18 18:44:42 +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 21160fb01d rename internal symbols for better coding style 2020-02-14 12:54:54 +08:00
Vincent Wei 3bbdd9d647 UPDATERGIN -> -UPDATERGN 2020-02-13 21:54:29 +08:00
Vincent Wei 96a90aa73b Use client DC instead of HDC_SCREEN_SYS to get the caret bitmaps 2020-02-13 21:53:48 +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 ba1bf265a2 always call SyncUpdateDC for change of popup menus 2020-02-12 21:49:15 +08:00
Vincent Wei df2d74fb0a use GetWindowElementPixelEx instead of GetWindowElementPixel or GetWindowElementColor 2020-02-12 13:26:01 +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 b7965b3940 use dwBkColor for compositing schema 2020-02-11 18:09:30 +08:00
Vincent Wei 76efcc3d3e tune code for change of GAL_CreateSurfaceForZNode 2020-02-11 18:03:46 +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 2442ccc6ca tune format 2020-02-10 22:47:39 +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 bc62083911 call SyncUpdateDC for all showing popup menus 2020-02-06 12:40:08 +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 e4bb441f1d call SyncUpdateDC after handle use input events 2020-02-03 16:06:10 +08:00
Vincent Wei 14d020cccf cleanup: convert tab to spaces and trim tail spaces 2020-02-02 10:53:31 +08:00