Ignore:
Timestamp:
Feb 13, 2003, 11:12:27 AM (23 years ago)
Author:
sandervl
Message:

Handle SetFocus(0) correctly: keystrokes are converted into WM_SYSKEYDOWN/(WM_SYSCHAR)/WM_SYSKEYUP messages

File:
1 edited

Legend:

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

    r9785 r9791  
    1 /* $Id: win32wbase.cpp,v 1.357 2003-02-11 14:20:01 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.358 2003-02-13 10:12:25 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    10971097ULONG Win32BaseWindow::MsgSetFocus(HWND hwnd)
    10981098{
     1099    //Notify that focus has changed (necessary for SetFocus(0) handling)
     1100    SetFocusChanged();
     1101
    10991102    //SvL: Don't send WM_(NC)ACTIVATE messages when the window is being destroyed
    11001103    if(fDestroyWindowCalled) {
     
    11131116ULONG Win32BaseWindow::MsgKillFocus(HWND hwnd)
    11141117{
     1118    //Notify that focus has changed (necessary for SetFocus(0) handling)
     1119    SetFocusChanged();
     1120
    11151121    //SvL: Don't send WM_(NC)ACTIVATE messages when the window is being destroyed
    11161122    if(fDestroyWindowCalled) {
     
    11831189                    if (win32top) {
    11841190                        //Must use client window handle (not frame!!)
    1185                         OSLibWinSetFocus(win32top->getOS2WindowHandle());
     1191                        SetFocus(win32top->getWindowHandle());
    11861192                        RELEASE_WNDOBJ(win32top);
    11871193                    }
Note: See TracChangeset for help on using the changeset viewer.