Ignore:
Timestamp:
Feb 11, 2003, 3:20:01 PM (23 years ago)
Author:
sandervl
Message:

When a window is activated by a mouse click, we must set focus to the client window (and not the frame..)

File:
1 edited

Legend:

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

    r9781 r9785  
    1 /* $Id: pmwindow.cpp,v 1.196 2003-02-10 18:31:45 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.197 2003-02-11 14:20:01 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    257257} /* End of main */
    258258//******************************************************************************
    259 #ifdef NEW_WGSS
    260259HBITMAP OPEN32API _O32_CreateBitmapFromPMHandle(HBITMAP hPMBitmap);
    261260
     
    270269    return yyrc;
    271270}
    272 #endif
    273271//******************************************************************************
    274272static void QueryPMMenuBitmaps()
     
    300298        hbmFrameMenu[PMMENU_CLOSEBUTTONDOWN] = GpiLoadBitmap(hdc, hModDisplay, SBMP_CLOSEDEP, 0, 0);
    301299
    302 #ifdef NEW_WGSS
    303300        //Create win32 bitmap handles of the OS/2 min, max and restore buttons
    304301        hBmpMinButton     = O32_CreateBitmapFromPMHandle(hbmFrameMenu[PMMENU_MINBUTTON]);
     
    310307        hBmpCloseButton   = O32_CreateBitmapFromPMHandle(hbmFrameMenu[PMMENU_CLOSEBUTTON]);
    311308        hBmpCloseButtonDown   = O32_CreateBitmapFromPMHandle(hbmFrameMenu[PMMENU_CLOSEBUTTONDOWN]);
    312 #endif
    313309        DevCloseDC(hdc);
    314310    }
     
    714710      HWND hwndFocus = (HWND)mp1;
    715711
    716         dprintf(("OS2: WM_SETFOCUS %x %x (%x) %d", win32wnd->getWindowHandle(), mp1, OS2ToWin32Handle(hwndFocus), mp2));
     712        dprintf(("OS2: WM_SETFOCUS %x %x (%x) %d cur focus %x", win32wnd->getWindowHandle(), mp1, OS2ToWin32Handle(hwndFocus), mp2, WinQueryFocus(HWND_DESKTOP)));
    717713
    718714        //PM doesn't allow SetFocus calls during WM_SETFOCUS message processing;
     
    808804
    809805    case WM_CHAR:
    810         dprintf(("OS2: WM_CHAR %x %x %x, %x %x", win32wnd->getWindowHandle(), mp1, mp2, pWinMsg->wParam, pWinMsg->lParam));
     806        dprintf(("OS2: WM_CHAR %x %x %x, %x %x focus wnd %x", win32wnd->getWindowHandle(), mp1, mp2, pWinMsg->wParam, pWinMsg->lParam, WinQueryFocus(HWND_DESKTOP)));
    811807        win32wnd->MsgChar(pWinMsg);
    812808        break;
     
    15781574                    //    -> problems with update region if we don't do it
    15791575                    //       todo: rewrite whole handling
     1576                    dprintf(("PMFRAME: WM_WINDOWPOSCHANGED invalidate all"));
    15801577                    WinInvalidateRect(hwnd,NULL,TRUE);
    15811578                }
     
    17641761    case WM_SETFOCUS:
    17651762    {
    1766         dprintf(("PMFRAME: WM_SETFOCUS %x %x", win32wnd->getWindowHandle(), hwnd));
     1763        dprintf(("PMFRAME: WM_SETFOCUS %x %x %d -> %x", win32wnd->getWindowHandle(), hwnd, mp2, mp1));
    17671764        goto RunDefFrameWndProc;
    17681765    }
Note: See TracChangeset for help on using the changeset viewer.