|
hi all,
i want to get window color that is appear on window border,start menu and taskbar.
how can i do this?
thanks in advance.
|
|
|
|
|
|
yes i already use this .
i am using windows 7, and set Leaf color here "Control Panel\Appearance and Personalization\Personalization\Window Color and Appearance"
but using GetSysColor this color cant get even i chk this for all values.
please help me which value is use to get this color?
thanks.
|
|
|
|
|
|
HTHEME hTheme = ::OpenThemeData(NULL, VSCLASS_TASKBAND);
ATLASSERT(hTheme);
COLORREF clrText = 0;
if(hTheme)
{
const HRESULT hr = ::GetThemeColor(hTheme, TDP_GROUPCOUNT, 0,
TMT_BORDERCOLOR, &clrText);
ATLASSERT(SUCCEEDED(hr));
::CloseThemeData(hTheme);
}
::FillRect(pDC->m_hDC, &banner_rect, ::GetSysColorBrush(CTLCOLOR_DLG));
::DrawThemeParentBackground(obj_RecProfDlg->GetSafeHwnd(), pDC->m_hDC, &banner_rect);
but its not useful
so please help me ,what values i can use GetThemeColor
thanks.
|
|
|
|