Search code examples
windowsvisual-c++mfcmfc-feature-pack

MFC: Is there an event to detect when a CDockablePane derived window has been opened either by sliding out or showing?


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?


Solution

  • 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.