Changeset 101


Ignore:
Timestamp:
Jul 23, 2006, 10:30:17 PM (19 years ago)
Author:
dmik
Message:

Widgets:

  • Default .EXE icon, when present, is used as the default widget icon for top-level widgets with the standard title bar.
  • Moving a non-toplevel widget partly placed outside screen bounds could produce garbage.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel/qwidget_pm.cpp

    r100 r101  
    865865            fcData.hmodResources = NULL;
    866866            fcData.idResources = 0;
     867            // check whether a default icon is present in .EXE and use it if so
     868            ULONG sz = 0;
     869            if ( DosQueryResourceSize( NULL, RT_POINTER, 1, &sz ) == 0 ) {
     870                fcData.flCreateFlags |= FCF_ICON;
     871                fcData.idResources = 1;
     872            }
    867873#if !defined(QT_NO_DEBUG) && defined(QT_DEBUGWINCREATEDESTROY)
    868874            qDebug ( "|Creating top level window [%s/%s] (frame):\n"
     
    19101916                qt_WinProcessWindowObstacles( winId(), &rclAff, hrgnObst, CRGN_OR,
    19111917                                              PWO_Sibings | PWO_Ancestors |
    1912                                               PWO_TopLevel );
     1918                                              PWO_Screen | PWO_TopLevel );
    19131919                // shift region of obstacles and affected region back to
    19141920                // parent coords
Note: See TracChangeset for help on using the changeset viewer.