Commit Graph
296 Commits
Author SHA1 Message Date
Vincent Wei e1c44ebaa9 add mapLocalData fields for all kinds of window 2020-03-02 11:15:16 +08:00
Vincent Wei 08506e3cbb remove unnecessary kernel_GetGCRgnInfo functions 2020-03-01 17:34:21 +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 e0b89ef232 add dump_window_details 2020-02-29 17:39:37 +08:00
Vincent Wei 8151cc2428 add message strings for MSG_MOVEWINDOW and MSG_DUMPZORDER 2020-02-29 16:03:23 +08:00
Vincent Wei 92a20d4cb8 add macros MG_IS_APP_WINDOW, MG_IS_CONTROL_WINDOW, MG_IS_DESTROYED_MAIN_WINDOW, and MG_IS_DESTROYED_VIRT_WINDOW; tune all macros for window type; add inline functions: checkAndGetMainWindowPtrOfMainWin and checkAndGetMainWindowPtrOfControl 2020-02-28 17:11:18 +08:00
Vincent Wei d9e14139cf cleanup 2020-02-28 17:09:45 +08:00
Vincent Wei ba2e8358b2 declare internal function __mg_throw_away_messages 2020-02-27 21:02:31 +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 366bbb1ff0 always call ReleaseDC even if it is a private CDC in release_valid_dc 2020-02-27 10:36:11 +08:00
Vincent Wei 7c914cdca4 fix a bug: uninitialize the callback functions for the map of system bitmaps; add __mg_map_get_size 2020-02-27 00:47:09 +08:00
Vincent Wei e50c8424e0 Only call SyncUpdateDC in EndPaint 2020-02-27 00:25:50 +08:00
Vincent Wei e76dcef46e add gui_ prefix to AddNewControlClass and so on 2020-02-26 22:06:37 +08:00
Vincent Wei d6645c1ff7 string for MSG_REINITDESKOPS 2020-02-26 21:33:46 +08:00
Vincent Wei 5873faa559 include dependent headers 2020-02-26 21:33:28 +08:00
Vincent Wei 2191e6ea1a add new files: rbtree.h, rbtree.c, map.h, map.c 2020-02-26 21:32:54 +08:00
Vincent Wei 7355a55610 removed 2020-02-26 21:28:28 +08:00
Vincent Wei ecdfabe41d implement a map based on rbtree 2020-02-26 21:28:00 +08:00
Vincent Wei aceae83f93 implement a red-black tree 2020-02-26 21:27:41 +08:00
Vincent Wei e16419183b define DEF_OVERLAPPED_OFFSET_X and DEF_OVERLAPPED_OFFSET_Y 2020-02-26 12:24:11 +08:00
Vincent Wei 8fab85b8c1 move typedef CALCPOSINFO to minigui.h 2020-02-26 12:23:50 +08:00
Vincent Wei e9950cf6a9 add REQID_CALCPOSITION and CALCPOSINFO; check REQID_SYS_LAST is not larger than MAX_SYS_REQID 2020-02-26 11:09:53 +08:00
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 91246c8771 remove some deprecated code 2020-02-25 18:28:37 +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 2d9b3a68b5 add UL postfix 2020-02-25 16:21:00 +08:00
Vincent Wei 0ec15b624f isWindowInThisThread -> getMainWinIfWindowInThisThread 2020-02-23 19:05:03 +08:00
Vincent Wei 44ea69baea pAdd of _MSG struct renamed to pSyncMsg 2020-02-23 15:37:03 +08:00
Vincent Wei 630a6046a6 add message string for MSG_NOTIFICATION 2020-02-23 15:34:01 +08:00
Vincent Wei c560fa9daf add MG_IS_MAIN_VIRT_WINDOW 2020-02-23 15:33:00 +08:00
Vincent Wei d36be5fb7f remove delcaration of __mg_desktop, __mg_parsor, __mg_timer 2020-02-22 19:34:33 +08:00
Vincent Wei 8d8d5143ea cleanup 2020-02-22 17:18:01 +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 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 f3b1401a90 tune field name of TIMER structure 2020-02-21 20:06:22 +08:00
Vincent Wei f9a1525421 bugfix: use 0x01UL instead of 0x01 2020-02-21 20:03:57 +08:00
Vincent Wei 864be6b36d tune code for no timer thread for MiniGUI-Threads runmode; remove mg_InstallIntervalTimer and mg_UninstallIntervalTimer, always use mg_InitTimer and mg_TerminateTimer instead 2020-02-21 12:54:24 +08:00
Vincent Wei 2d8d6f0ba8 cleanup 2020-02-21 11:44:13 +08:00
Vincent Wei e33b61fcbb undef _DEBUG_DEVFONT 2020-02-21 10:12:52 +08:00
Vincent Wei df61109fc5 cleanup 2020-02-21 09:53:44 +08:00
Vincent Wei 042c1f19b6 use _MG_PRINTF instead of _WRN_PRINTF for dumpers 2020-02-21 09:53:19 +08:00
Vincent Wei aa2d13c5a2 message strings for new messages 2020-02-20 22:09:33 +08:00
Vincent Wei c846af5a2a fix conditional compilation errors 2020-02-20 22:08:27 +08:00
Vincent Wei b6a2fb3263 always use QS_DESKTIMER for desktop timer 2020-02-20 19:35:48 +08:00
Vincent Wei d484102dae add +dump_message_queue 2020-02-20 18:31:57 +08:00
Vincent Wei 8a63b551f6 tune macros 2020-02-20 17:41:57 +08:00
Vincent Wei 5c248bb669 define IS_INVALID_ZIDX_LOOSE for not checking idx < 0 2020-02-20 15:49:20 +08:00