>> 1. The application's Caption and one of the controls on the
>> main window are momentarily displayed on the screen (for a fraction
>> second), and
Make sure you are not passing WS_VISIBLE to CreateWindow (and that it is
not included as part of "style" in the WNDCLASS for that window).