/* * Unit test suite for brushes * * Copyright 2004 Kevin Koltzau * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include "windef.h" #include "winbase.h" #include "wingdi.h" #include "wine/test.h" typedef struct _STOCK_BRUSH { COLORREF color; int stockobj; const char *name; } STOCK_BRUSH; static void test_solidbrush(void) { static const STOCK_BRUSH stock[] = { {RGB(255,255,255), WHITE_BRUSH, "white"}, {RGB(192,192,192), LTGRAY_BRUSH, "ltgray"}, {RGB(128,128,128), GRAY_BRUSH, "gray"}, {RGB(0,0,0), BLACK_BRUSH, "black"}, {RGB(0,0,255), -1, "blue"} }; HBRUSH solidBrush; HBRUSH stockBrush; LOGBRUSH br; size_t i; INT ret; for(i=0; i