Hi,
I am created a rebar control using this
if(hwndParent == NULL)
return E_FAIL;
m_hwndParent = hwndParent;
RECT rparent;
::GetWindowRect(hwndParent, &rparent);
INITCOMMONCONTROLSEX control_ex;
control_ex.dwSize = sizeof(INITCOMMONCONTROLSEX);
control_ex.dwICC = ICC_COOL_CLASSES | ICC_BAR_CLASSES;
InitCommonControlsEx(&control_ex);
DWORD dwStyle =
WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDRE N|RBS_VARHEIGHT
|RBS_BANDBORDERS|RBS_AUTOSIZE|RBS_DBLCLKTOGGLE|RBS _REGISTERDROP|CCS_NODIVIDER;
m_hwndRB = CreateWindowEx(WS_EX_TOOLWINDOW /*| WS_EX_COMPOSITED*/,
REBARCLASSNAME,
NULL,
dwStyle,
0,0,0,0,
hwndParent,
NULL,
_AtlBaseModule.GetResourceInstance(),
NULL);
if(m_hwndRB == NULL)
{
_ASSERT(FALSE);
return E_FAIL;
}
and then I add toolbar to it. This works fine on windows XP but on
windows 2000 WS_EX_COMPOSITED is not defined and my rebar flickers. I
cannot display all the toolbar windows which appear if I click on the
rebar.
Is there a way I can use double buffering or same functionality as
WS_EX_COMPOSITED does on XP ?
Please help me with this. I have deadline to meet and just realized
this problem
Thanks,