I am in need of assistance again.

I automated a small app that was never designed to be automated via a thread. To hide it I had it call a function that moved the window off-screen.

However this isn't satisfactory as it still flashes on screen, however briefly.

I kept moving the message to hide the app as far back as it could go - it resides at the very start of OnInitDialog but it still flickers.

I first tried to override PreCreateWindow to change the window parameters but that seemingly doesn't get called in a dialog, so I turned my attention to OnCreate and modifying the CREATESTRUCT there before it is passed to the CWnd. However while that function gets called the code had no effect - the dialog is still shown.

So I need some way of hiding the window before it is visible, but still interactive to the thread that performs the automation.

Thanks, G.