Article View: comp.windows.ms.programmer
Article #453GetSysColor() returs bogus values
From: David J. Lee
Date: Fri, 17 Apr 1992 00:25
Date: Fri, 17 Apr 1992 00:25
14 lines
1040 bytes
1040 bytes
Why is it that GetSysColor() returns 0x10xxxxxx for some colors? I looked in my control.ini and sure enough, some of the colors (including those shipped with Win 3.1 like Black Leather Jacket and The Blues) are 0x10E0E0. I thought GetSysColor() would only return an RGB, with the high-order byte set to 0. I've heard of the high-order byte being 0x01 or 0x02 (for purposes other than GetSysColor()), but never 0x10. What gives? This there some special significance to this value? Many of my company's customers have such values in their control.ini as well. This is bad because it breaks our product. Thanks for any response.
Technical Details
Message-ID:
<kus6o3INN9ll@aludra.usc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!chaph.usc.edu!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!chaph.usc.edu!news From: dlee@usc.edu (David J. Lee) Newsgroups: comp.windows.ms.programmer Subject: GetSysColor() returs bogus values Date: 16 Apr 1992 17:25:39 -0700 Organization: The Island of Misfit Toys Lines: 14 Sender: dlee@aludra.usc.edu (David J. Lee) Distribution: world Message-ID: <kus6o3INN9ll@aludra.usc.edu> NNTP-Posting-Host: aludra.usc.edu