Changeset 6243 for trunk/src


Ignore:
Timestamp:
Jul 8, 2001, 10:06:15 AM (24 years ago)
Author:
sandervl
Message:

changed menu & scrollbar behaviour in os/2 mode

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r6183 r6243  
    1 /* $Id: menu.cpp,v 1.34 2001-07-06 13:46:59 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.35 2001-07-08 08:06:14 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    3333#ifdef __WIN32OS2__
    3434#include <objhandle.h>
     35#include "pmwindow.h"
    3536
    3637#define DBG_LOCALLOG    DBG_menu
     
    23722373            {
    23732374                pmt->hCurrentMenu = MENU_ShowSubPopup(pmt->hOwnerWnd,hPtMenu,FALSE,wFlags,&pmt->pt);
     2375
     2376#ifdef __WIN32OS2__
     2377                if(fOS2Look)
     2378                    ptmenu->bTimeToHide = FALSE;                   
     2379#else
     2380                /* In win31, a newly popped menu always remains opened for the next buttonup */
     2381                if(TWEAK_WineLook == WIN31_LOOK)
     2382                    ptmenu->bTimeToHide = FALSE;                   
     2383#endif
    23742384            }
    23752385
     
    28932903                    /* In win95 winelook, the selected menu item must be changed every time the
    28942904                       mouse moves. In Win31 winelook, the mouse button has to be held down */
    2895 
    2896                     fEndMenu |= !MENU_MouseMove( &mt, hmenu, wFlags );
     2905#ifdef __WIN32OS2__
     2906                    if ( !fOS2Look ||
     2907                         ( (msg.wParam & MK_LBUTTON) ||
     2908                           ((wFlags & TPM_RIGHTBUTTON) && (msg.wParam & MK_RBUTTON))) )
     2909                       fEndMenu |= !MENU_MouseMove( &mt, hmenu, wFlags );
     2910#else
     2911                    if ( (TWEAK_WineLook > WIN31_LOOK) ||
     2912                         ( (msg.wParam & MK_LBUTTON) ||
     2913                           ((wFlags & TPM_RIGHTBUTTON) && (msg.wParam & MK_RBUTTON))) )
     2914                       fEndMenu |= !MENU_MouseMove( &mt, hmenu, wFlags );
     2915#endif
     2916
    28972917            } /* switch(msg.message) - mouse */
    28982918        }
  • trunk/src/user32/scroll.cpp

    r6043 r6243  
    1 /* $Id: scroll.cpp,v 1.41 2001-06-18 09:00:50 sandervl Exp $ */
     1/* $Id: scroll.cpp,v 1.42 2001-07-08 08:06:15 sandervl Exp $ */
    22/*
    33 * Scrollbar control
     
    2121#include "oslibwin.h"
    2222#include "initterm.h"
     23#include "pmwindow.h"
    2324
    2425#define DBG_LOCALLOG    DBG_scroll
     
    994995            UINT pos;
    995996
     997#ifdef __WIN32OS2__
     998            if (!SCROLL_PtInRectEx( &rect, pt, vertical ) && !fOS2Look) pos = lastClickPos;
     999#else
    9961000            if (!SCROLL_PtInRectEx( &rect, pt, vertical )) pos = lastClickPos;
     1001#endif
    9971002            else
    9981003            {
Note: See TracChangeset for help on using the changeset viewer.