Ignore:
Timestamp:
May 24, 2000, 9:30:08 PM (25 years ago)
Author:
sandervl
Message:

experimental WM_NCHITTEST generation (disabled) + MDI fixes

File:
1 edited

Legend:

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

    r3587 r3603  
    1 /* $Id: win32wbase.cpp,v 1.193 2000-05-22 19:05:58 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.194 2000-05-24 19:30:06 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    11421142//******************************************************************************
    11431143//******************************************************************************
     1144LONG Win32BaseWindow::sendHitTest(ULONG lParam)
     1145{
     1146    lastHitTestVal = SendInternalMessageA(WM_NCHITTEST, 0, lParam);
     1147    return lastHitTestVal;
     1148}
     1149//******************************************************************************
     1150//******************************************************************************
    11441151BOOL Win32BaseWindow::isMDIClient()
    11451152{
     
    13871394
    13881395    case WM_ACTIVATE:
    1389       return 0;
     1396        /* The default action in Windows is to set the keyboard focus to
     1397         * the window, if it's being activated and not minimized */
     1398        if (LOWORD(wParam) != WA_INACTIVE) {
     1399                if(!(getStyle() & WS_MINIMIZE))
     1400                        SetFocus(getWindowHandle());
     1401        }
     1402        return 0;
    13901403
    13911404    case WM_SETCURSOR:
     
    21312144   Win32BaseWindow *window;
    21322145   HWND hParent = 0;
    2133    BOOL fShow = FALSE;
    21342146
    21352147    if (fuFlags &
     
    22452257    rc = OSLibWinSetMultWindowPos(&swp, 1);
    22462258
    2247 #ifdef DEBUG
    2248     if(fShow) {
    2249         dprintf(("Frame style 0x%08x, client style 0x%08x", OSLibQueryWindowStyle(OS2HwndFrame), OSLibQueryWindowStyle(OS2Hwnd)));
    2250     }
    2251 #endif
    2252     if (rc == FALSE)
     2259    if(rc == FALSE)
    22532260    {
    22542261        dprintf(("OSLibWinSetMultWindowPos failed! Error %x",OSLibWinGetLastError()));
    2255     }
     2262        return 0;
     2263    }
     2264
    22562265    if((fuFlags & SWP_FRAMECHANGED) && (fuFlags & (SWP_NOMOVE | SWP_NOSIZE) == (SWP_NOMOVE | SWP_NOSIZE)))
    22572266    {
Note: See TracChangeset for help on using the changeset viewer.