
Determining current system color setting
I've add liminted success with the following code. Win95 is fine, but
Win3.x causes all kinds of problems (graphics tend to start appearing at
location 0,0 of the screen!). I haven't worked out the latter, but if you
get a better solution or fix this one, please let me know!
Const PLANES = 14
Const BITSPIXEL = 12
hDC = GetWindowDC(hWndSrc) ' Get device context for entire window
ScreenColorDepth = GetDeviceCaps(hDC, PLANES) * 2 ^ GetDeviceCaps(hDC,
BITSPIXEL)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dave Diehl
Full Service Networking, Cincinnati, OH
"...no job is too big, no fee is too big..."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~