CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2001
    Location
    USA
    Posts
    298

    dialog control colors

    Is there a color chart somewhere that shows the RGB numbers for different dialog control colors?

    Thanks.

    drc

  2. #2
    Join Date
    Nov 2003
    Location
    Central Florida
    Posts
    44
    I usually grab a screenshot with Alt+PrntScrn, paste it into Paint, use the color picker to grab the color, then go to Colors/Edit Colors to get the RGB values. You could probably also write a very simple utility that uses a global hook on WM_MOUSEMOVE, get the pixel position of the mouse with GetCursorPos(), then GetPixel() on the device context of the screen via GetDC(GetDesktopWindow()) ... but that's something of a drastic step
    But... but... I'll set the building on fire.

    How many keys do YOU press?

  3. #3
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    What are you trying to achieve? If you want to know the
    standard system colors then use GetSysColor
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured