1 *** /home/julians/microwindows/original/microwin/src/mwin/winuser.c Wed Jul 5 00:36:42 2000
2 --- winuser.c Tue May 22 00:42:01 2001
9 ! PeekMessage(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
15 /* check if no messages in queue*/
16 if(mwMsgHead.head == NULL) {
18 /* check all windows for pending paint messages*/
19 for(wp=listwp; wp; wp=wp->next) {
25 + * A helper function for sharing code between PeekMessage and GetMessage
29 ! PeekMessageHelper(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
30 ! UINT wRemoveMsg, BOOL returnIfEmptyQueue)
35 /* check if no messages in queue*/
36 if(mwMsgHead.head == NULL) {
37 + /* Added by JACS so it doesn't reach MwSelect */
38 + if (returnIfEmptyQueue)
42 /* check all windows for pending paint messages*/
43 for(wp=listwp; wp; wp=wp->next) {
49 GetMessage(LPMSG lpMsg,HWND hwnd,UINT wMsgFilterMin,UINT wMsgFilterMax)
52 * currently MwSelect() must poll for VT switch reasons,
53 * so this code will work
55 ! while(!PeekMessage(lpMsg, hwnd, wMsgFilterMin, wMsgFilterMax,PM_REMOVE))
57 return lpMsg->message != WM_QUIT;
63 + PeekMessage(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
66 + /* Never wait in MwSelect: pass TRUE */
67 + return PeekMessageHelper(lpMsg, hwnd, uMsgFilterMin, uMsgFilterMax, wRemoveMsg, TRUE);
71 GetMessage(LPMSG lpMsg,HWND hwnd,UINT wMsgFilterMin,UINT wMsgFilterMax)
74 * currently MwSelect() must poll for VT switch reasons,
75 * so this code will work
77 ! /* Always wait in MwSelect if there are messages: pass FALSE */
78 ! while(!PeekMessageHelper(lpMsg, hwnd, wMsgFilterMin, wMsgFilterMax,PM_REMOVE, FALSE))
80 return lpMsg->message != WM_QUIT;