Ignore:
Timestamp:
Jan 12, 2000, 1:41:20 PM (26 years ago)
Author:
sandervl
Message:

menu, resize/move fixes + ported Wine messagebox code

File:
1 edited

Legend:

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

    r2410 r2415  
    1 /* $Id: menu.cpp,v 1.7 2000-01-11 17:34:42 cbratschi Exp $*/
     1/* $Id: menu.cpp,v 1.8 2000-01-12 12:40:43 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    24022402        if( hNewWnd != pmt->hOwnerWnd )
    24032403        {
    2404             ReleaseCapture();
     2404            ReleaseCapture(); 
    24052405            pmt->hOwnerWnd = hNewWnd;
     2406            SetCapture(pmt->hOwnerWnd); //SvL: Don't know if this is good enough
    24062407            //EVENT_Capture( pmt->hOwnerWnd, HTMENU ); //CB: todo
    24072408        }
     
    25942595
    25952596    //EVENT_Capture( mt.hOwnerWnd, HTMENU ); //CB: todo
     2597    //SvL: Set keyboard & mouse event capture
     2598    SetCapture(mt.hOwnerWnd);
    25962599
    25972600    while (!fEndMenu)
     
    26022605        /* we have to keep the message in the queue until it's
    26032606         * clear that menu loop is not over yet. */
    2604         if (!GetMessageA(&msg,msg.hwnd,0,0)) break;
     2607//        if (!GetMessageA(&msg,msg.hwnd,0,0)) break;
     2608        //SvL: Getting messages for only the menu delays background paints (i.e. VPBuddy logo)
     2609        if (!GetMessageA(&msg,0,0,0)) break;
    26052610        TranslateMessage( &msg );
    26062611        mt.pt = msg.pt;
     
    26102615
    26112616        fRemove = FALSE;
    2612         if ((msg.message >= WM_MOUSEFIRST) && (msg.message <= WM_MOUSELAST))
     2617        if((msg.message >= WM_MOUSEFIRST) && (msg.message <= WM_MOUSELAST))
    26132618        {
    26142619            /* Find a menu for this mouse event */
Note: See TracChangeset for help on using the changeset viewer.