Changeset 109 for trunk/src/user32/SYSCLR.CPP
- Timestamp:
- Jun 16, 1999, 5:29:27 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/SYSCLR.CPP
r96 r109 1 /* $Id: SYSCLR.CPP,v 1. 3 1999-06-10 16:50:36 phallerExp $ */1 /* $Id: SYSCLR.CPP,v 1.4 1999-06-16 15:29:27 cbratschi Exp $ */ 2 2 3 3 /* … … 5 5 * 6 6 * Copyright 1998 Sander van Leeuwen 7 * Copyright 1999 Christoph Bratschi 7 8 * 8 9 * … … 24 25 25 26 switch(winIndex) { 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 os2Index = SYSCLR_HILITEBACKGROUND;94 95 96 97 98 99 100 101 27 case COLOR_SCROLLBAR: 28 os2Index = SYSCLR_SCROLLBAR; 29 break; 30 case COLOR_BACKGROUND: 31 os2Index = SYSCLR_BACKGROUND; 32 break; 33 case COLOR_ACTIVECAPTION: 34 os2Index = SYSCLR_ACTIVETITLETEXT; 35 break; 36 case COLOR_INACTIVECAPTION: 37 os2Index = SYSCLR_INACTIVETITLETEXT; 38 break; 39 case COLOR_MENU: 40 os2Index = SYSCLR_MENU; 41 break; 42 case COLOR_WINDOW: 43 os2Index = SYSCLR_WINDOW; 44 break; 45 case COLOR_WINDOWFRAME: 46 os2Index = SYSCLR_WINDOWFRAME; 47 break; 48 case COLOR_MENUTEXT: 49 os2Index = SYSCLR_MENUTEXT; 50 break; 51 case COLOR_WINDOWTEXT: 52 os2Index = SYSCLR_WINDOWTEXT; 53 break; 54 case COLOR_CAPTIONTEXT: 55 os2Index = SYSCLR_TITLETEXT; 56 break; 57 case COLOR_ACTIVEBORDER: 58 os2Index = SYSCLR_ACTIVEBORDER; 59 break; 60 case COLOR_INACTIVEBORDER: 61 os2Index = SYSCLR_INACTIVEBORDER; 62 break; 63 case COLOR_APPWORKSPACE: 64 os2Index = SYSCLR_APPWORKSPACE; 65 break; 66 case COLOR_HIGHLIGHT: 67 os2Index = SYSCLR_HILITEBACKGROUND; 68 break; 69 case COLOR_HIGHLIGHTTEXT: 70 os2Index = COLOR_WINDOWTEXT; 71 break; 72 case COLOR_BTNFACE: 73 os2Index = SYSCLR_HILITEBACKGROUND; 74 break; 75 case COLOR_BTNSHADOW: 76 os2Index = SYSCLR_SHADOW; 77 break; 78 case COLOR_GRAYTEXT: 79 os2Index = SYSCLR_MENUDISABLEDTEXT; 80 break; 81 case COLOR_BTNTEXT: 82 os2Index = SYSCLR_BUTTONDEFAULT; 83 break; 84 case COLOR_INACTIVECAPTIONTEXT: 85 os2Index = SYSCLR_INACTIVETITLETEXT; 86 break; 87 case COLOR_BTNHIGHLIGHT: 88 os2Index = SYSCLR_HILITEBACKGROUND; 89 break; 90 case COLOR_3DDKSHADOW: 91 os2Index = SYSCLR_SHADOW; 92 break; 93 case COLOR_3DLIGHT: 94 os2Index = SYSCLR_SHADOWHILITEBGND; 95 break; 96 case COLOR_INFOTEXT: 97 os2Index = SYSCLR_HELPTEXT; 98 break; 99 case COLOR_INFOBK: 100 os2Index = SYSCLR_HELPBACKGROUND; 101 break; 102 default: 102 103 #ifdef DEBUG 103 104 WriteLog("GetSysColor UNKNOWN index %d!!\n", winIndex); 104 105 #endif 105 106 return(0); 106 107 } 107 108 rgb = WinQuerySysColor(HWND_DESKTOP, os2Index, 0);
Note:
See TracChangeset
for help on using the changeset viewer.