How can i find the frame color of a window?

For example at this screenshot, i want this "open" green color
http://i.imgur.com/v5n0cvg.png

It changes automatically everytime you change the wallpaper according to the wallpaper's colors.

I tried with GetSysColor

1
2
3
int Elements[1] = {COLOR_BACKGROUND};
    DWORD currentColors[1];
    currentColors[0] = GetSysColor(Elements[0]);


but COLOR_MENUBAR, COLOR_WINDOW, COLOR_WINDOWFRAME for example, are something completely different from the color i want (the open green)...
Have your tried GetThemeColor() with WP_FRAME ??

(I assume you were using GetSysColor with COLOR_WINDOW, ...)

Andy

GetThemeColor function
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773397.aspx
Topic archived. No new replies allowed.