Ignore:
Timestamp:
Aug 29, 2001, 12:37:25 PM (24 years ago)
Author:
phaller
Message:

Fix for ACMSetup, don't draw invisible buttons

File:
1 edited

Legend:

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

    r6586 r6605  
    1 /* $Id: button.cpp,v 1.42 2001-08-25 10:54:18 sandervl Exp $ */
     1/* $Id: button.cpp,v 1.43 2001-08-29 10:37:25 phaller Exp $ */
    22/* File: button.cpp -- Button type widgets
    33 *
     
    7979};
    8080
     81
     82// 2001-08-29 PH
     83// Microsoft ACMSETUP has a OWNERDRAW pushbutton dialog. After finishing
     84// the dialog, the pushbuttons are de-initialized immediately.
     85// However, OSLibWinDestroyWindow sent WM_SETFOCUS causing the (invisible)
     86// buttons to be drawn, resulting in immediate crash.
     87// -> IsWindowVisible() check introduced as is in WINE.
     88
    8189#define PAINT_BUTTON(hwnd,style,action) \
    82      if (btnPaintFunc[style]) { \
     90     if (btnPaintFunc[style] && IsWindowVisible(hwnd) ) { \
    8391         HDC hdc = GetDC(hwnd); \
    8492         (btnPaintFunc[style])(hwnd,hdc,action); \
Note: See TracChangeset for help on using the changeset viewer.