I want to delay initialization of a CDockablePane derived window until the window is actually shown. If the window is simply docked then WM_SHOWWINDOW is pretty effective but when the window is in AutoHideMode WM_SHOWWINDOW is unpredictable and I can't see an event that indicates that the slide out has finished.
Any advice?
The solution I've chosen is to override the virtual methods CDockablePane::ShowPane
for when IsAutoHideMode()
is FALSE
and CDockablePane::OnSlide
for when it's not.