Changeset 9941 for trunk/src


Ignore:
Timestamp:
Mar 27, 2003, 11:42:42 AM (22 years ago)
Author:
sandervl
Message:

Don't change focus when processing mouse button message if the top parent is a fake window

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r9933 r9941  
    1 /* $Id: win32wbase.cpp,v 1.363 2003-03-22 20:27:12 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.364 2003-03-27 10:42:41 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    11561156
    11571157                    //SvL: Calling OSLibSetActiveWindow(hwndTop); causes focus problems
    1158                     if (win32top) {
     1158                    if (win32top && !win32top->isFakeWindow()) {
    11591159                        //Must use client window handle (not frame!!)
    11601160                        SetFocus(win32top->getWindowHandle());
     
    14611461//******************************************************************************
    14621462BOOL Win32BaseWindow::isDesktopWindow()
     1463{
     1464  return FALSE;
     1465}
     1466//******************************************************************************
     1467//******************************************************************************
     1468BOOL Win32BaseWindow::isFakeWindow()
    14631469{
    14641470  return FALSE;
  • trunk/src/user32/win32wbase.h

    r9933 r9941  
    1 /* $Id: win32wbase.h,v 1.150 2003-03-22 20:27:12 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.151 2003-03-27 10:42:42 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    177177virtual  BOOL   isMDIChild();
    178178virtual  BOOL   isDesktopWindow();
     179virtual  BOOL   isFakeWindow();
    179180
    180181         BOOL   fHasParentDC()                  { return fParentDC; };
  • trunk/src/user32/win32wfake.cpp

    r9930 r9941  
    1 /* $Id: win32wfake.cpp,v 1.1 2003-03-20 13:20:46 sandervl Exp $ */
     1/* $Id: win32wfake.cpp,v 1.2 2003-03-27 10:42:42 sandervl Exp $ */
    22/*
    33 * Win32 Fake Window Class for OS/2
     
    124124//******************************************************************************
    125125//******************************************************************************
     126BOOL Win32FakeWindow::isFakeWindow()
     127{
     128    return TRUE;
     129}
     130//******************************************************************************
     131//******************************************************************************
  • trunk/src/user32/win32wfake.h

    r9930 r9941  
    1 /* $Id: win32wfake.h,v 1.1 2003-03-20 13:20:46 sandervl Exp $ */
     1/* $Id: win32wfake.h,v 1.2 2003-03-27 10:42:42 sandervl Exp $ */
    22/*
    33 * Win32 Fake Window Class for OS/2
     
    2424virtual  PRECT  getWindowRect();
    2525
     26virtual  BOOL   isFakeWindow();
     27
    2628protected:
    2729private:
Note: See TracChangeset for help on using the changeset viewer.