Changeset 47

Show
Ignore:
Timestamp:
05/15/07 13:36:59 (2 years ago)
Author:
lindquist
Message:

minor win32 update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/bughunt/minwin/geometry.d

    r33 r47  
    184184 
    185185    Color systemBackgroundColor() { 
    186         return toColor(GetSysColor(COLOR_MENU)); 
     186        return toColor(GetSysColor(COLOR_WINDOW)); 
    187187    } 
    188188 
  • branches/bughunt/minwin/window.d

    r40 r47  
    153153        MenuBar menubar; 
    154154        BackgroundPeer backgroundPeer; 
    155         private bool ownsBackgroundPeer; 
    156155 
    157156        mixin CommonWindowImpl!(); 
     
    187186            } 
    188187            hasPeer = NO_PEER; 
    189             if (backgroundPeer && ownsBackgroundPeer
     188            if (backgroundPeer
    190189                DeleteObject(backgroundPeer); 
    191190            backgroundPeer = null; 
    192             ownsBackgroundPeer = false; 
    193191            //delete WindowList[this]; // remove global reference 
    194192            WindowList.remove(this); // remove global reference 
     
    219217                cast(int)c.green, 
    220218                cast(int)c.blue); 
    221             if (backgroundPeer && ownsBackgroundPeer
     219            if (backgroundPeer
    222220                DeleteObject(backgroundPeer); 
    223221            backgroundPeer = CreateSolidBrush(c.native); 
    224             ownsBackgroundPeer = true; 
    225222            // use GetSysColorBrush? 
    226223        } 
     
    398395            this.name = name; 
    399396            setWindowPeer(this,peer,OWNS_PEER); 
    400             backgroundPeer = cast(HBRUSH)COLOR_WINDOW;//GetSysColorBrush(COLOR_WINDOW);//GetStockObject(WHITE_BRUSH)
    401             ownsBackgroundPeer = false
     397            //backgroundPeer = cast(HBRUSH)COLOR_WINDOW
     398            backgroundPeer = GetStockObject(WHITE_BRUSH)
    402399            WindowList[this] = this; // prevent garbage collection 
    403400        }