Commit Graph
1177 Commits
Author SHA1 Message Date
Vincent Wei 81fd2ee5d5 add string for MSG_CALC_POSITION 2020-02-26 11:08:59 +08:00
Vincent Wei 881776c7a9 fix typos: Gets -> Get, Sets -> Set, Retrieves -> Retrieve 2020-02-26 08:55:38 +08:00
Vincent Wei db9ed261d8 use size_t instead of int for the size of one memroy area 2020-02-25 23:46:34 +08:00
Vincent Wei 571867720b load icon from bitmap files 2020-02-25 23:46:01 +08:00
Vincent Wei 0f0effc37e return size of memory res if user param is not null 2020-02-25 23:45:09 +08:00
Vincent Wei 882bc9d821 remove bad code 2020-02-25 23:44:39 +08:00
Vincent Wei 20f44981dd fix a old bug in load_cursor_from_mem: imageh must be 64 2020-02-25 23:43:33 +08:00
Vincent Wei f59fe557f3 cleanup 2020-02-25 19:07:45 +08:00
Vincent Wei 91246c8771 remove some deprecated code 2020-02-25 18:28:37 +08:00
Vincent Wei fc2c171d96 fix a bug of __mg_update_tick_count; remove some deprecated code; tune SetTimerEx to allow duplicated call for same timer 2020-02-25 18:27:57 +08:00
Vincent Wei a64292a926 use __mg_os_get_time_ticks instead of __mg_os_get_elapsed_ms; update __mg_tick_counter in GetTickCount 2020-02-25 17:18:49 +08:00
Vincent Wei 8a362818de rename __mg_os_start_time_ms to __mg_os_start_time; remove __mg_os_get_elapsed_ms; add __mg_os_get_time_ticks 2020-02-25 17:17:10 +08:00
Vincent Wei 0e9b23efec always check timers in the idle handler 2020-02-25 17:16:09 +08:00
Vincent Wei 2d9b3a68b5 add UL postfix 2020-02-25 16:21:00 +08:00
Vincent Wei 6dd8235d90 tune 2020-02-25 16:20:31 +08:00
Vincent Wei 0777c34039 two version of ExitGUISafely for different runmods 2020-02-25 08:22:12 +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 0336fa1670 use _DBG_PRINTF instead of _WRN_PRINTF for no UpdateRects method of a video driver 2020-02-24 15:01:34 +08:00
Vincent Wei 16503269fb detailed debug info for no free znode slot 2020-02-24 15:00:55 +08:00
Vincent Wei 08d1b85e10 tune CreateVirtualWindow and GetMainVirtWindowById; implement GetWindowId and SetWindowId 2020-02-24 15:00:13 +08:00
Vincent Wei afa4b891e0 tuen for change of CreateMainWindowEx2 2020-02-23 19:07:09 +08:00
Vincent Wei ec5eec69ef isWindowInThisThread -> getMainWinIfWindowInThisThread 2020-02-23 19:06:33 +08:00
Vincent Wei cef9216dd8 cleanup 2020-02-23 19:05:33 +08:00
Vincent Wei 0ec15b624f isWindowInThisThread -> getMainWinIfWindowInThisThread 2020-02-23 19:05:03 +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 44ea69baea pAdd of _MSG struct renamed to pSyncMsg 2020-02-23 15:37:03 +08:00
Vincent Wei 8ceee008b0 implement NotifyWindow and tune DispatchMessage for MSG_NOTIFICATION 2020-02-23 15:35:18 +08:00
Vincent Wei 630a6046a6 add message string for MSG_NOTIFICATION 2020-02-23 15:34:01 +08:00
Vincent Wei c54c05ce57 use MG_IS_NOT_VIRT_WINDOW for GetParent 2020-02-23 15:33:28 +08:00
Vincent Wei c560fa9daf add MG_IS_MAIN_VIRT_WINDOW 2020-02-23 15:33:00 +08:00
Vincent Wei d2a5bea737 use NotifyWindow to implement NotifyParentEx 2020-02-23 15:32:24 +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 2b55d9d0e5 donot use quiting stage 2020-02-22 19:35:11 +08:00
Vincent Wei d36be5fb7f remove delcaration of __mg_desktop, __mg_parsor, __mg_timer 2020-02-22 19:34:33 +08:00
Vincent Wei 523ceb4dc5 fix conditional compilation errors 2020-02-22 19:32:59 +08:00
Vincent Wei 8d8d5143ea cleanup 2020-02-22 17:18:01 +08:00
Vincent Wei 097dcc2af7 donot use inline function to set/remove timer flags 2020-02-22 17:17:43 +08:00
Vincent Wei cf7cb4c831 timer_count -> tick_count; use __mg_update_tick_count; cleanup MSG_TIMER handling of desktop 2020-02-22 16:06:57 +08:00
Vincent Wei 98cc4ce10b change the idle handler of main thread with a tailored version 2020-02-22 16:05:27 +08:00
Vincent Wei 26a94f541e tune std_idle_handler; cleanup 2020-02-22 16:04:18 +08:00
Vincent Wei 3fe0294782 tune __mg_update_tick_count and post MSG_TIMER to desktop 2020-02-22 16:03:11 +08:00
Vincent Wei 1f98843053 implement __mg_os_get_elapsed_ms by using clock_gettime and for WIN32 2020-02-22 16:01:41 +08:00
Vincent Wei 298db53fb1 declare __mg_os_get_elapsed_ms 2020-02-22 15:54:30 +08:00
Vincent Wei c74c515b63 cleanup 2020-02-22 15:54:11 +08:00
Vincent Wei 41c709b1c8 add MAX_IDLE_COUNTER and DESKTOP_TIMER_INERTVAL 2020-02-22 15:53:50 +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 6fee78e3d7 use __mg_update_tick_count 2020-02-22 15:52:13 +08:00
Vincent Wei 32939cf0af cleanup 2020-02-21 20:06:50 +08:00
Vincent Wei f3b1401a90 tune field name of TIMER structure 2020-02-21 20:06:22 +08:00