Preparing to fix CDialog key propagation problem.
Fixing bug in DestroyWindow/OnDestroy that caused graphic aliasing from leftover widget in instrument dialog.