I have written a standard MFC dialog box application that also displays an icon in the taskbar next to the time in the lower right-hand corner of the screen. When the application is started, I do not want to display the dialog box.
What I have done so far is to put a call to ShowWindow( SW_HIDE) in the OnPaint() routine. It works pretty good here but when the application is started, I still see a flicker of the dialog box before it is hidden.
How do I write code so that the dialog box isn't displayed at all when the application is started?