kbbar toolband example problem



in the kbbar example when the toolbar gets created for the first time
the call to
GetClientRect(m_hwndParent, &rc);

returns different co-ordinates as compared to the co-ordinates returned
when launched from second time onwards.

By first time I mean, go to the the registry key
HKCU/software/microsoft/internet explorer/webexplorer and delete the
key ITBarLayout. Now run the sample you see a proper toolband, however
once this key is created, the call to
GetClientRect(m_hwndParent, &rc); returns junk co-ordinates so the
size of the toolband reduces. How do I fix this problem?

Regards
Chimanrao

.