Commit Graph
1494 Commits
Author SHA1 Message Date
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 1d577c248f declare GetRootWindow and GetMainVirtWindowById; tune CreateMainWindowEx2 to pass identifier of the main window; cleanup the description words 2020-02-23 19:02:48 +08:00
Vincent Wei 44ea69baea pAdd of _MSG struct renamed to pSyncMsg 2020-02-23 15:37:03 +08:00
Vincent Wei 51d7ba8f7d declare NotifyWindow and MSG_NOTIFICATION; tune description words 2020-02-23 15:36:34 +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 308464b5d3 make updateregion enabled by default 2020-02-23 15:31:50 +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 1192bba572 cleanup 2020-02-22 15:53:24 +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
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 a3b76f2f9d cleanup handler of MSG_TIMER of desktop for threads mode 2020-02-21 20:04:33 +08:00
Vincent Wei f9a1525421 bugfix: use 0x01UL instead of 0x01 2020-02-21 20:03:57 +08:00
Vincent Wei 07106925c6 tune implmentation of timer 2020-02-21 20:03:26 +08:00
Vincent Wei c015eff8f0 call __mg_check_expired_timers in the idle handler 2020-02-21 20:02:28 +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 0519637d62 Call SetActiveWindow in OpenAboutDialog if there is already a about dialog instance 2020-02-21 11:49:43 +08:00
Vincent Wei 17ba967eb2 fix a bug: check again after calling sem_wait in PeekMesageEx 2020-02-21 11:48:53 +08:00
Vincent Wei 246809f46e allocate and free mssage queue for main thread 2020-02-21 11:46:42 +08:00
Vincent Wei 32dc8c3f57 use dump_message; cleanup 2020-02-21 11:44:48 +08:00
Vincent Wei 2d8d6f0ba8 cleanup 2020-02-21 11:44:13 +08:00
Vincent Wei 9b4c325ba2 fix bug of CreateThreadForMessaging 2020-02-21 11:43:53 +08:00
Vincent Wei e33b61fcbb undef _DEBUG_DEVFONT 2020-02-21 10:12:52 +08:00
Vincent Wei 03774e2fa4 always initialize vector font engines for all runtime modes 2020-02-21 09:54:25 +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 ec6c22f666 fix bug of bad traveling the hosted windows 2020-02-21 09:52:50 +08:00
Vincent Wei 240e9e05dc use _MG_PRINTF instead of _WRN_PRINTF for dumpers; disable InitVectorialFonts and TermVectorialFonts functions 2020-02-21 09:51:51 +08:00
Vincent Wei b971ca6d80 define a dummy implementation of JoinLayer for non-threads runtime modes 2020-02-21 09:49:57 +08:00