Ignore:
Timestamp:
Jul 21, 2002, 5:55:51 PM (23 years ago)
Author:
achimha
Message:

more documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmwindow.cpp

    r8892 r8901  
    1 /* $Id: pmwindow.cpp,v 1.181 2002-07-18 21:54:59 achimha Exp $ */
     1/* $Id: pmwindow.cpp,v 1.182 2002-07-21 15:55:51 achimha Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    444444    SetWin32TIB();
    445445
    446     // BEGIN NOTE-------------->>>>>> If this is changed, also change Win32WindowProc!! <<<<<<<<<<<-------------------- BEGIN
     446    // BEGIN NOTE-------------->>>>>> If this is changed, also change Win32FrameWindowProc!! <<<<<<<<<<<-------------------- BEGIN
    447447    teb = GetThreadTEB();
    448448    win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
     
    463463
    464464    // 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.
    466470    if((teb->o.odin.msgstate & 1) == 0)
    467471    {
     
    484488    }
    485489    else {
     490        // message has already been translated before (GetMessage/PeekMessage).
     491        // Use the translated information. Flip the translation flag.
    486492        pWinMsg = &teb->o.odin.msg;
    487493        teb->o.odin.msgstate++;
    488494    }
    489     // END NOTE-------------->>>>>> If this is changed, also change Win32WindowProc!! <<<<<<<<<<<-------------------- END
     495    // END NOTE-------------->>>>>> If this is changed, also change Win32FrameWindowProc!! <<<<<<<<<<<-------------------- END
    490496
    491497    if(msg >= WIN32APP_POSTMSG) {
     
    10181024
    10191025    // 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.
    10201031    if((teb->o.odin.msgstate & 1) == 0)
    10211032    {//message that was sent directly to our window proc handler; translate it here
     
    10371048    }
    10381049    else {
     1050        // message has already been translated before (GetMessage/PeekMessage).
     1051        // Use the translated information. Flip the translation flag.
    10391052        pWinMsg = &teb->o.odin.msg;
    10401053        teb->o.odin.msgstate++;
Note: See TracChangeset for help on using the changeset viewer.