Changeset 8901 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Jul 21, 2002, 5:55:51 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r8892 r8901 1 /* $Id: pmwindow.cpp,v 1.18 1 2002-07-18 21:54:59achimha Exp $ */1 /* $Id: pmwindow.cpp,v 1.182 2002-07-21 15:55:51 achimha Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 444 444 SetWin32TIB(); 445 445 446 // BEGIN NOTE-------------->>>>>> If this is changed, also change Win32 WindowProc!! <<<<<<<<<<<-------------------- BEGIN446 // BEGIN NOTE-------------->>>>>> If this is changed, also change Win32FrameWindowProc!! <<<<<<<<<<<-------------------- BEGIN 447 447 teb = GetThreadTEB(); 448 448 win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd); … … 463 463 464 464 // check if the message state counter in the TEB is odd 465 // this means that DispatchMessage has been called 465 // This means the message has been sent directly from PM to our message 466 // handler (so it is the first time we know about this PM message). 467 // If this is the case, we have to translate it here to a Win32 468 // message first. The other case is that the message is the result of a 469 // WinDispatchMsg call and therefore has already been translated. 466 470 if((teb->o.odin.msgstate & 1) == 0) 467 471 { … … 484 488 } 485 489 else { 490 // message has already been translated before (GetMessage/PeekMessage). 491 // Use the translated information. Flip the translation flag. 486 492 pWinMsg = &teb->o.odin.msg; 487 493 teb->o.odin.msgstate++; 488 494 } 489 // END NOTE-------------->>>>>> If this is changed, also change Win32 WindowProc!! <<<<<<<<<<<-------------------- END495 // END NOTE-------------->>>>>> If this is changed, also change Win32FrameWindowProc!! <<<<<<<<<<<-------------------- END 490 496 491 497 if(msg >= WIN32APP_POSTMSG) { … … 1018 1024 1019 1025 // check if the message state counter in the TEB is odd 1026 // This means the message has been sent directly from PM to our message 1027 // handler (so it is the first time we know about this PM message). 1028 // If this is the case, we have to translate it here to a Win32 1029 // message first. The other case is that the message is the result of a 1030 // WinDispatchMsg call and therefore has already been translated. 1020 1031 if((teb->o.odin.msgstate & 1) == 0) 1021 1032 {//message that was sent directly to our window proc handler; translate it here … … 1037 1048 } 1038 1049 else { 1050 // message has already been translated before (GetMessage/PeekMessage). 1051 // Use the translated information. Flip the translation flag. 1039 1052 pWinMsg = &teb->o.odin.msg; 1040 1053 teb->o.odin.msgstate++;
Note:
See TracChangeset
for help on using the changeset viewer.