I may be misunderstanding what you want but, on Win32 at least, can't you simply use GetSysColor(COLOR_3DFACE) for this?
I've used it for disabled colour picker gadgets, which are just coloured panels, and it works a treat.
I've used it for disabled colour picker gadgets, which are just coloured panels, and it works a treat.