Changeset 4856 for trunk/src


Ignore:
Timestamp:
Dec 30, 2000, 2:27:55 PM (25 years ago)
Author:
sandervl
Message:

export functions for checking system brushes & pens

Location:
trunk/src/user32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/USER32.DEF

    r4848 r4856  
    1 ; $Id: USER32.DEF,v 1.46 2000-12-29 18:39:58 sandervl Exp $
     1; $Id: USER32.DEF,v 1.47 2000-12-30 13:27:55 sandervl Exp $
    22
    33LIBRARY USER32 INITINSTANCE TERMINSTANCE
     
    668668    _BITMAP_GetWidthBytes@8                                      @2024
    669669    _selectClientArea@4                                          @2025
    670 
     670    _IsSystemBrush@4                                             @2026
     671    _IsSystemPen@4                                               @2027
  • trunk/src/user32/syscolor.cpp

    r4674 r4856  
    1 /* $Id: syscolor.cpp,v 1.24 2000-11-22 13:44:50 sandervl Exp $ */
     1/* $Id: syscolor.cpp,v 1.25 2000-12-30 13:27:55 sandervl Exp $ */
    22
    33/*
     
    326326//******************************************************************************
    327327//******************************************************************************
     328BOOL WIN32API IsSystemPen(HPEN hPen)
     329{
     330    for(int i=0;i<NUM_SYS_COLORS;i++) {
     331        if(SysColorPens[i] == hPen) {
     332            return TRUE;
     333        }
     334    }
     335    return FALSE;
     336}
     337//******************************************************************************
     338//******************************************************************************
     339BOOL WIN32API IsSystemBrush(HBRUSH hBrush)
     340{
     341    for(int i=0;i<NUM_SYS_COLORS;i++) {
     342        if(SysColorBrushes[i] == hBrush) {
     343            return TRUE;
     344        }
     345    }
     346    return FALSE;
     347}
     348//******************************************************************************
     349//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.