The second issue I'm facing is that the keyboard focus seems to be incorrect with my HWND inside HwndHost inside DockSite.
I have implemented command handlers inside my HwndHost derived class.
When I click inside the HwndHost derived window, the routed commands are received by my HwndHost derived class and are properly enabled/disabled and executed.
When I click on the tab displaying the title of my tabbed document, all commands are grayed out on the ribbon, presumably because they are no longer routed to my HwndHost derived class. I assume that is because the keyboard focus is set to some other window in this case.
I'm wondering how I can fix this?