Changeset 4658 for trunk/src/user32/pmframe.cpp
- Timestamp:
- Nov 21, 2000, 12:36:09 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmframe.cpp
r3603 r4658 1 /* $Id: pmframe.cpp,v 1.5 5 2000-05-24 19:30:05sandervl Exp $ */1 /* $Id: pmframe.cpp,v 1.56 2000-11-21 11:36:08 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 68 68 PFNWP OldFrameProc; 69 69 MRESULT rc; 70 T HDB *thdb;70 TEB *teb; 71 71 MSG *pWinMsg,winMsg; 72 72 73 73 SetWin32TIB(); 74 74 75 t hdb = GetThreadTHDB();75 teb = GetThreadTEB(); 76 76 win32wnd = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwnd); 77 77 78 if (!t hdb || (win32wnd == NULL) || !win32wnd->getOldFrameProc())78 if (!teb || (win32wnd == NULL) || !win32wnd->getOldFrameProc()) 79 79 { 80 80 dprintf(("Invalid win32wnd pointer for frame %x!!", hwnd)); … … 82 82 } 83 83 84 if((t hdb->msgstate & 1) == 0)84 if((teb->o.odin.msgstate & 1) == 0) 85 85 {//message that was sent directly to our window proc handler; translate it here 86 86 QMSG qmsg; … … 90 90 qmsg.mp1 = mp1; 91 91 qmsg.mp2 = mp2; 92 qmsg.time = WinQueryMsgTime(t hdb->hab);93 WinQueryMsgPos(t hdb->hab, &qmsg.ptl);92 qmsg.time = WinQueryMsgTime(teb->o.odin.hab); 93 WinQueryMsgPos(teb->o.odin.hab, &qmsg.ptl); 94 94 qmsg.reserved = 0; 95 95 96 if(OS2ToWinMsgTranslate((PVOID)t hdb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE)96 if(OS2ToWinMsgTranslate((PVOID)teb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE) 97 97 {//message was not translated 98 98 memset(&winMsg, 0, sizeof(MSG)); … … 101 101 } 102 102 else { 103 pWinMsg = &t hdb->msg;104 t hdb->msgstate++;103 pWinMsg = &teb->o.odin.msg; 104 teb->o.odin.msgstate++; 105 105 } 106 106 … … 357 357 //TODO: Get rid of SWP_SHOW; needed for winhlp32 button bar for now 358 358 swpClient.fl = (pswp->fl & ~SWP_ZORDER) | SWP_MOVE | SWP_SHOW; 359 WinSetMultWindowPos(t hdb->hab, &swpClient, 1);359 WinSetMultWindowPos(teb->o.odin.hab, &swpClient, 1); 360 360 361 361 //update child positions: rectWindow is in window coordinates
Note:
See TracChangeset
for help on using the changeset viewer.