Commit Graph
1758 Commits
Author SHA1 Message Date
Vincent Wei e8a26956d7 tune 2020-02-27 09:56:53 +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 18ca90eb37 conver to upper before hashing 2020-02-27 00:25:19 +08:00
Vincent Wei b9d71cd489 tune order of terminating functions 2020-02-26 23:02:24 +08:00
Vincent Wei bdb4bbefe4 use Str2Key for hash function of class name 2020-02-26 23:01:53 +08:00
Vincent Wei ba65912bb1 fix a bug in __mg_map_insert 2020-02-26 22:13:42 +08:00
Vincent Wei e76dcef46e add gui_ prefix to AddNewControlClass and so on 2020-02-26 22:06:37 +08:00
Vincent Wei fde80cdb1b define __mg_sys_bmp_map 2020-02-26 22:05:59 +08:00
Vincent Wei 5c5a33afd5 fix conditional compilation errors 2020-02-26 22:05:44 +08:00
Vincent Wei 6ab06b320f implement GetSystemBitmapEx2; tune RegisterSystemBitmap and UnregisterSystemBitmap by using the map for system bitmaps 2020-02-26 21:37:32 +08:00
Vincent Wei d9bac8ca6d declare __mg_sys_bmp_map 2020-02-26 21:36:09 +08:00
Vincent Wei d089ba70aa add resource operations for MYBITMAP; initialize/terminate map for system bitmaps; cleanup code 2020-02-26 21:35:45 +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 6ee2617eb7 use GetSystemBitmapEx2 instead of GetSystemBitmapEx 2020-02-26 21:32:11 +08:00
Vincent Wei 3627f32f25 declare GetSystemBitmapEx2; cleanup APIs for system bitmaps 2020-02-26 21:31:44 +08:00
Vincent Wei 28a4843b40 tune code for change of init operation of _DESKTOPOPS; use GetSystemBitmapEx2 instead of GetSystemBitmapEx; add a new desktop message MSG_REINITDESKOPS 2020-02-26 21:30:30 +08:00
Vincent Wei c5ff5ff992 add HDC for init operation of _DESKTOPOPS 2020-02-26 21:29:06 +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 5849ce8e04 implementation calc_mainwin_pos for fallback compositor 2020-02-26 12:33:46 +08:00
Vincent Wei dce4dadebf implement calculate default position for main windows 2020-02-26 12:25:54 +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 17b92420f1 tune implementation for MSG_CALC_POSITION message 2020-02-26 12:23:19 +08:00
Vincent Wei 43cc858d58 fix a typo 2020-02-26 12:22:30 +08:00
Vincent Wei a6790b2ca7 move typedef CALCPOSINFO from window.h to minigui.h; tune interface of calc_mainwin_pos 2020-02-26 12:22:11 +08:00
Vincent Wei 3fde7981ed fix typos: Checks -> Check, Determines -> Determine 2020-02-26 11:13:11 +08:00
Vincent Wei 53f8be5826 add request handler for REQID_CALCPOSITION 2020-02-26 11:12:38 +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 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 ff779368d6 add calc_mainwin_pos to struct _CompositorOps 2020-02-26 11:08:27 +08:00
Vincent Wei 6ae96a3f96 tune styles; add WS_EX_AUTOPOSITION; add MSG_CALC_POSITION; fix typos: Checks -> Check, Determines -> Determine 2020-02-26 11:07:48 +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 0b72715b8c tune description text 2020-02-25 23:41:50 +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