Programm in Taskleiste bei C++Builder XE plötzlich wieder da



  • Hallo,

    folgender Code funktionierte bei C++Builder 2007 noch einwandfrei. Hier wurde das Programm während des SplashScreens NICHT in der Taskleiste angezeigt:

    WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)//Bei CB2007 WinMain.....LPSTR
    {
    	DWORD dwExStyle = GetWindowLong(Application->Handle, GWL_EXSTYLE);
    	dwExStyle |= WS_EX_TOOLWINDOW;
    	SetWindowLong(Application->Handle, GWL_EXSTYLE, dwExStyle);
    	try {
    
    		Application->Initialize();
    
    		SplashForm = new TSplashForm(Application);//Splash erzeugen
    		SplashForm->Show();
    		Application->ProcessMessages();
    
    		Application->ShowMainForm = false;
    		Application->CreateForm(__classid(TForm1), &Form1);
    		Application->Run();
    
    	}
    	catch (Exception &exception) {
    		Application->ShowException(&exception);
    	}
    	catch (...) {
    		try {
    			throw Exception("");
    		}
    		catch (Exception &exception) {
    			Application->ShowException(&exception);
    		}
    	}
    	return 0;
    }
    

    Aber unter C++ Builder XE wird wieder das Fenster angezeigt. Der Name in der Taskleiste ist der Dateiname der Anwendung. Wenn die SplashForm geschlossen wird, verschwindet auch der Eintrag in der Taskleiste. Ich denke es liegt an der SplashForm, denn ohne dieser funktioniert es ja.
    Weis jemand woran es liegen könnte? Mir ist es ein Rätsel...


Anmelden zum Antworten