How can i find the frame color of a window?

For example at this screenshot, i want this "open" green color

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

I tried with GetSysColor

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, ...)


GetThemeColor function
Topic archived. No new replies allowed.