Changeset 9563 for trunk/src


Ignore:
Timestamp:
Dec 29, 2002, 6:17:16 PM (23 years ago)
Author:
sandervl
Message:

Fix for painting a completely ownerdrawn menu (owner window was wrong); don't do anything in DoNCPaint if window is invisible

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r9491 r9563  
    1 /* $Id: menu.cpp,v 1.53 2002-12-12 13:55:41 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.54 2002-12-29 17:17:15 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    15111511      {
    15121512        OffsetRect(&lppop->items[i].rect,-lprect->left,-lprect->top);
    1513         MENU_DrawMenuItem( hwnd,GetMenu(hwnd), GetWindow(hwnd,GW_OWNER),
     1513        MENU_DrawMenuItem( hwnd,GetMenu(hwnd), hwnd,
    15141514                         memDC, &lppop->items[i], lppop->Height, TRUE, ODA_DRAWENTIRE );
    15151515        OffsetRect(&lppop->items[i].rect,lprect->left,lprect->top);
  • trunk/src/user32/oslibwin.cpp

    r9463 r9563  
    1 /* $Id: oslibwin.cpp,v 1.130 2002-12-04 15:23:38 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.131 2002-12-29 17:17:16 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    162162  static int minmaxwidth  = 0;
    163163  static int minmaxheight = 0;
     164
     165  dprintf(("OSLibWinPositionFrameControls %x (%x,%x) %x %d", hwndFrame, dwStyle, dwExStyle, hSysMenuIcon, drawCloseButton));
    164166
    165167  if(minmaxwidth == 0) {
     
    10981100BOOL OSLibChangeCloseButtonState(HWND hwndFrame, BOOL State)
    10991101{
     1102    dprintf(("OSLibChangeCloseButtonState %x %d", hwndFrame, State));
    11001103    return WinEnableMenuItem(WinWindowFromID(hwndFrame, FID_SYSMENU), SC_CLOSE, State);
    11011104}
  • trunk/src/user32/win32wbasenonclient.cpp

    r9345 r9563  
    1 /* $Id: win32wbasenonclient.cpp,v 1.44 2002-10-15 09:18:12 sandervl Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.45 2002-12-29 17:17:16 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    10671067    dprintf(("DoNCPaint %x %x %d", getWindowHandle(), clip, suppress_menupaint));
    10681068
     1069    if ( getStyle() & WS_MINIMIZE ||
     1070         !IsWindowVisible( getWindowHandle() )) {
     1071        return; /* Nothing to do */
     1072    }
     1073
    10691074    rect.top    = rect.left = 0;
    10701075    rect.right  = rectWindow.right - rectWindow.left;
Note: See TracChangeset for help on using the changeset viewer.