[V8i C++] NETDockableWindow external application

Hello,

I would like to integrate in my application a window external MDI, to be able to dock in Microstation.

I have the handle of the window, and was inspired by the CBNETDockableDialog class.
Aside from a few changes that I had to because my external application was not receiving some events (WM_COMMAND ...), the result is ok.
However, I have a problem with other Microstation's windows, they pass behind Microstation when I moved, or gives them the focus, I must then give focus Microstation to pass the on the top.

If the external window is docked, the problem does not occur.
If the external window is hidden the problem does not occur either

Any idea?
The code below to capture external window :
mdlNativeWindow_createMSWindow(&G_preselForm, m_hWndExternalWindox, FALSE, TRUE, 44444);
DialogHookInterests interests;
memset (&interests, 0xff, sizeof interests);

mdlNativeWindow_getNETDockableWindow (&G_pParent, 56745, _T("External Window"), TRUE, CExternalWindow_SecondaryDialogHook, &interests);
 
mdlNativeWindow_setAsChild( G_preselForm, 0, FALSE);
 
mdlNativeWindow_addToWindowList(G_preselForm);

 m_hHook = ::SetWindowsHookEx( WH_GETMESSAGE, CExternalWindow_GetMsgProc, NULL, GetCurrentThreadId());

mdlNativeWindow_setAsContent(m_hWndExternalWindox, CWnd::FromHandle(m_hWndExternalWindox), G_pParent);
mdlNativeWindow_attachContent(G_pParent, FALSE);
mdlNativeWindow_getNETDockedExtents (G_pParent);
 
 
Regards,
Goubier Sébastien