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/windowword.cpp

    r7241 r10119  
    1 /* $Id: windowword.cpp,v 1.12 2001-10-28 10:38:14 sandervl Exp $ */
     1/* $Id: windowword.cpp,v 1.13 2003-05-27 09:46:30 sandervl Exp $ */
    22
    33/*
     
    1111 */
    1212#include <os2win.h>
    13 #include <misc.h>
     13#include <dbglog.h>
     14#include <ctrlconf.h>
    1415
    1516#include <win32wbase.h>
     
    1819#include "dbglocal.h"
    1920
     21//******************************************************************************
     22//Update the window style without sending WM_STYLECHANGING/ED
     23//******************************************************************************
     24void WIN_SetStyle(HWND hwnd, DWORD dwStyle)
     25{
     26 Win32BaseWindow *window;
     27
     28    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     29    if(window)
     30    {
     31        window->setStyle(dwStyle);
     32        RELEASE_WNDOBJ(window);
     33        return;
     34    }
     35    else {
     36        dprintf(("WIN_SetStyle window %x not found!", hwnd));
     37        return;
     38    }
     39}
    2040//******************************************************************************
    2141//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.