[V8i C++ MDL] NET docking position handles remain after detaching window

Hi folks,

I just discovered the joys of using the DIALOGATTRX_NETDOCKABLE attribute. I now have a dialog that is nicely pinnable on the side of the MicroStation window where it doesn't hog screen real-estate. There are only two problems that enabling this attribute causes in my application:

  1. If the dialog was previously pinned, then on a fresh start of my application, MicroStation is making the window background black until I resize the panel to force a screen refresh, whereupon it returns to the system default of light grey.
  2. When I go to dock my window, the four docking handles appear temporarily to anchor on each side of the window, but disappear as you would expect after docking is complete. However, on undocking, the docking icons appear and remain on top of every window until MicroStation is exited, regardless of what I do after undocking. This seems to be a visual glitch, as the icons themselves are not functional.

I can't find a workaround to these problems, and needless to say, they are show-stoppers for me using .NET docking. If I turn off this attribute in the resource file so I have normal window docking, then these problems both go away, but I lose the advantage of pinnable docking. Has anyone seen either of these problems before? Problem #2 is the big one. I've tried calling mdlWindow_organizeApplicationArea() to no avail, but I suspect this function is not .NET docking-aware.

Cheers.