Ignore:
Timestamp:
Oct 14, 1999, 8:27:59 PM (26 years ago)
Author:
sandervl
Message:

Lots of window fixes & changes

File:
1 edited

Legend:

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

    r1281 r1297  
    1 /* $Id: listbox.cpp,v 1.5 1999-10-14 09:22:39 sandervl Exp $ */
     1/* $Id: listbox.cpp,v 1.6 1999-10-14 18:27:55 sandervl Exp $ */
    22/*
    33 * Listbox controls
     
    322322static void LISTBOX_UpdateSize( HWND hwnd, LB_DESCR *descr )
    323323{
    324     RECT rect;
    325 
     324    RECT rect, rectWindow;
     325
     326    GetWindowRect( hwnd, &rectWindow );
     327    OffsetRect(&rectWindow, -rectWindow.left, -rectWindow.top);
    326328    GetClientRect( hwnd, &rect );
     329
    327330    descr->width  = rect.right - rect.left;
    328331    descr->height = rect.bottom - rect.top;
     
    336339                    descr->height - descr->height%descr->item_height));
    337340            SetWindowPos( hwnd, 0, 0, 0,
    338                             descr->width,
    339                             descr->height -
     341                            rectWindow.right - rectWindow.left,
     342                            rectWindow.bottom - rectWindow.top -
    340343                                (descr->height % descr->item_height),
    341344                            SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOMOVE );
Note: See TracChangeset for help on using the changeset viewer.