Ignore:
Timestamp:
May 27, 2003, 11:46:30 AM (22 years ago)
Author:
sandervl
Message:

Do not send WM_STYLECHANGING/ED messages when the scrollbar control is shown or hidden.

File:
1 edited

Legend:

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

    r9994 r10119  
    1 /* $Id: scroll.cpp,v 1.49 2003-04-08 13:45:04 sandervl Exp $ */
     1/* $Id: scroll.cpp,v 1.50 2003-05-27 09:46:30 sandervl Exp $ */
    22/*
    33 * Scrollbar control
     
    1717#include <os2win.h>
    1818#include "controls.h"
     19#include "ctrlconf.h"
    1920#include "scroll.h"
    2021#include "win32wbase.h"
     
    16541655        {
    16551656            fShowH = !(dwStyle & WS_HSCROLL);
    1656             SetWindowLongA(hwnd, GWL_STYLE, dwStyle | WS_HSCROLL);
     1657            dwStyle |= WS_HSCROLL;
    16571658        }
    16581659        else  /* hide it */
    16591660        {
    16601661            fShowH = (dwStyle & WS_HSCROLL);
    1661             SetWindowLongA(hwnd, GWL_STYLE, dwStyle & ~WS_HSCROLL);
     1662            dwStyle &= ~WS_HSCROLL;
    16621663        }
    16631664        if( nBar == SB_HORZ )
     
    16721673        {
    16731674            fShowV = !(dwStyle & WS_VSCROLL);
    1674             SetWindowLongA(hwnd, GWL_STYLE, dwStyle | WS_VSCROLL);
     1675            dwStyle |= WS_VSCROLL;
    16751676        }
    16761677        else  /* hide it */
    16771678        {
    16781679            fShowV = (dwStyle & WS_VSCROLL);
    1679             SetWindowLongA(hwnd, GWL_STYLE, dwStyle & ~WS_VSCROLL);
     1680            dwStyle &= ~WS_VSCROLL;
    16801681        }
    16811682        if ( nBar == SB_VERT )
     
    16891690    if( fShowH || fShowV ) /* frame has been changed, let the window redraw itself */
    16901691    {
     1692        WIN_SetStyle( hwnd, dwStyle );
    16911693        SetWindowPos( hwnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE
    16921694                    | SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED );
Note: See TracChangeset for help on using the changeset viewer.