Steven, I'm trying to play around with MB_CreateBackgroundTask function. Actually I didn't start from scratch and maybe my existing code interfere with new API, but I found some strange things:
1. ~50% of commands in my plugin depends on form's data (especially on generated preview, so I cant dispose/destroy/close command window), but if I didn't call Hide() method for form, then clicking on statusbar hangs MB UI.
2. If I hide form, then clicking on 'X' button on statusbar terminates background process, but double-clicking on rotating circle or statusbar text (single-clicking does nothing) hangs MB.
What I would want is to handle single-clicking on 'X' button (if possible - to correctly exit the file querying loop - but this is not very important) and that single-clicking on rotating circle should invoke Show() method of form, i.e I want to have 'Hide' button that should hide command window and clicking on rotating circle should restore the window.