- Timestamp:
- Sep 26, 1999, 6:09:04 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r1057 r1066 1 # $Id: Makefile,v 1.2 2 1999-09-26 10:09:59 sandervlExp $1 # $Id: Makefile,v 1.23 1999-09-26 16:09:04 dengert Exp $ 2 2 3 3 # … … 34 34 oslibutil.obj oslibmsg.obj dib.obj oslibdos.obj win32wmdichild.obj \ 35 35 winprop.obj wingdi.obj oslibgdi.obj winaccel.obj \ 36 nativerc.obj oslibres.obj dummy.obj oslibmenu.obj dc.obj \36 nativerc.obj oslibres.obj dummy.obj oslibmenu.obj dc.obj timer.obj \ 37 37 windlgmsg.obj windlg.obj win32wdesktop.obj 38 38 … … 106 106 win32wbase.obj: win32wbase.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h dc.h 107 107 win32wnd.obj: win32wnd.cpp win32class.h win32wbase.h win32wnd.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h oslibmenu.h 108 win32dlg.obj: win32dlg.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h oslibmsg.h 109 win32wndchild.obj: win32wndchild.cpp win32wndchild.h gen_object.h 110 win32wmdiclient.obj: win32wmdiclient.cpp win32wbase.h win32wmdiclient.h win32wmdichild.h gen_object.h 111 win32wmdichild.obj: win32wmdichild.cpp win32wbase.h win32wmdiclient.h win32wmdichild.h gen_object.h 112 win32wdesktop.obj: win32wdesktop.cpp win32wbase.h win32wdesktop.h gen_object.h 108 win32dlg.obj: win32dlg.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h oslibmsg.h 109 win32wndchild.obj: win32wndchild.cpp win32wndchild.h gen_object.h 110 win32wmdiclient.obj: win32wmdiclient.cpp win32wbase.h win32wmdiclient.h win32wmdichild.h gen_object.h 111 win32wmdichild.obj: win32wmdichild.cpp win32wbase.h win32wmdiclient.h win32wmdichild.h gen_object.h 112 win32wdesktop.obj: win32wdesktop.cpp win32wbase.h win32wdesktop.h gen_object.h 113 113 gen_object.obj: gen_object.cpp gen_object.h heapshared.h 114 114 oslibwin.obj: oslibwin.cpp oslibwin.h oslibutil.h oslibgdi.h $(PDWIN32_INCLUDE)\winconst.h 115 115 oslibutil.obj: oslibutil.cpp oslibutil.h $(PDWIN32_INCLUDE)\wprocess.h oslibmsg.h 116 oslibmsg.obj: oslibmsg.cpp oslibmsg.h 116 oslibmsg.obj: oslibmsg.cpp oslibmsg.h timer.h 117 117 oslibmenu.obj: oslibmenu.cpp oslibmenu.h 118 118 oslibgdi.obj: oslibgdi.cpp oslibgdi.h win32wbase.h … … 120 120 oslibdos.obj: oslibdos.cpp oslibdos.h 121 121 dc.obj: dc.cpp win32wbase.h dc.h 122 timer.obj: timer.cpp win32wbase.h timer.h 122 123 123 124 clipboard.obj: clipboard.cpp -
trunk/src/user32/oslibmsg.cpp
r949 r1066 1 /* $Id: oslibmsg.cpp,v 1. 1 1999-09-15 23:18:54 sandervlExp $ */1 /* $Id: oslibmsg.cpp,v 1.2 1999-09-26 16:09:04 dengert Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 22 22 #include <win32wnd.h> 23 23 #include "oslibutil.h" 24 #include "timer.h" 24 25 25 26 QMSG *MsgThreadPtr = 0; … … 29 30 BOOL OSLibInitMsgQueue() 30 31 { 31 if(DosAllocThreadLocalMemory(sizeof(QMSG)/sizeof(ULONG), (PULONG *)&MsgThreadPtr) != 0) 32 if(DosAllocThreadLocalMemory(sizeof(QMSG)/sizeof(ULONG), (PULONG *)&MsgThreadPtr) != 0) 32 33 { 33 34 35 34 dprintf(("OSLibInitMsgQueue: local thread memory alloc failed!!")); 35 DebugInt3(); 36 return FALSE; 36 37 } 37 38 return TRUE; … … 70 71 //TODO: What to do if app changed msg? (translate) 71 72 // WinToOS2MsgTranslate(msg, &qmsg, isUnicode); 72 73 73 74 return (LONG)WinDispatchMsg(GetThreadHAB(), MsgThreadPtr); 74 75 } 75 76 //****************************************************************************** 76 77 //****************************************************************************** 77 BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 78 BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 78 79 BOOL isUnicode) 79 80 { 80 BOOL rc ;81 BOOL rc, eaten; 81 82 82 rc = WinGetMsg(GetThreadHAB(), MsgThreadPtr, TranslateWinMsg(uMsgFilterMin), TranslateWinMsg(uMsgFilterMax), 0); 83 do { 84 eaten = FALSE; 85 rc = WinGetMsg(GetThreadHAB(), MsgThreadPtr, TranslateWinMsg(uMsgFilterMin), TranslateWinMsg(uMsgFilterMax), 0); 86 if (MsgThreadPtr->msg == WM_TIMER) 87 eaten = TIMER_HandleTimer (MsgThreadPtr); 88 } while (eaten); 89 83 90 OS2ToWinMsgTranslate(MsgThreadPtr, pMsg, isUnicode); 84 91 return rc; … … 86 93 //****************************************************************************** 87 94 //****************************************************************************** 88 BOOL OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 95 BOOL OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 89 96 BOOL fRemove, BOOL isUnicode) 90 97 { 91 98 BOOL rc; 92 99 93 rc = WinPeekMsg(GetThreadHAB(), MsgThreadPtr, hwnd, TranslateWinMsg(uMsgFilterMin), 100 rc = WinPeekMsg(GetThreadHAB(), MsgThreadPtr, hwnd, TranslateWinMsg(uMsgFilterMin), 94 101 TranslateWinMsg(uMsgFilterMax), (fRemove == MSG_REMOVE) ? PM_REMOVE : PM_NOREMOVE); 95 102 OS2ToWinMsgTranslate(MsgThreadPtr, pMsg, isUnicode); -
trunk/src/user32/user32.cpp
r1057 r1066 1 /* $Id: user32.cpp,v 1.3 2 1999-09-26 10:10:00 sandervlExp $ */1 /* $Id: user32.cpp,v 1.33 1999-09-26 16:09:03 dengert Exp $ */ 2 2 3 3 /* … … 878 878 //****************************************************************************** 879 879 //****************************************************************************** 880 #if 0 880 881 UINT WIN32API SetTimer( HWND hwnd, UINT idTimer, UINT uTimeout, TIMERPROC tmprc) 881 882 { … … 900 901 return O32_KillTimer(hWnd,uIDEvent); 901 902 } 903 #endif 902 904 //****************************************************************************** 903 905 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.