How to read the RGB color of any point on the screen
This one includes the somewhat tricky method needed to get window titlebar
colors.
Uses the following API functions:
- BitBlt
- GetCursorPos
- GetDC
- GetPixel
- ReleaseDC
- ScreenToClient
- WindowFromPoint
Back to Code Samples
Copyright © 2000 by Matt E. Hart, All Rights Reserved Worldwide.
Nothing on this web site may be reproduced, in any form, without express written consent.