Programm-Button während der Laufzeit aus Taskleiste entfernen
-
Hallo,
habe folgendes Problem:
Ich möchte gerne den Programm-Button während der Laufzeit aus der Taskleiste entfernen.
Dieses Vorgehen:DWORD dwExStyle=GetWindowLong(Application->Handle, GWL_EXSTYLE); dwExStyle |= WS_EX_TOOLWINDOW; SetWindowLong(Application->Handle, GWL_EXSTYLE, dwExStyle);funktioniert nur direkt am Programmanfang.
Ich hoffe mir kann jemand weiterhelfen.
-
Certain window data is cached, so changes you make using SetWindowLong will not take effect until you call the SetWindowPos function. Specifically, if you change any of the frame styles, you must call SetWindowPos with the SWP_FRAMECHANGED flag for the cache to be updated properly.
-
ShowWindow(Application->Handle, SW_HIDE);
-
Leider funktionieren beide Lösungen nicht...
-
ups, da habe ich wohl etwas vorschnell geantwortet.
Die Sache mit ShowWindow(Application->Handle,SW_HIDE) hats gebracht.
Vielen Dank für die Hilfe !